Template:Infobox subsystem/doc: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
(Cleanup, added example)
(Added doc for description param)
 
Line 4: Line 4:
{{Infobox subsystem
{{Infobox subsystem
| title=
| title=
| description= A sample subsystem
| startup= 0x00123456
| startup= 0x123456
| update= 0x002468C0
| update= 0x2468C0
}}
}}
<pre>
<pre>
{{Infobox subsystem
{{Infobox subsystem
| title=
| title=
| description= A sample subsystem
| startup= 0x00123456
| startup= 0x123456
| update= 0x002468C0
| update= 0x2468C0
}}
}}
</pre>
</pre>
Line 17: Line 19:
The template takes the following optional parameters:
The template takes the following optional parameters:
* <tt>title</tt> - Title of the infobox. Default is the page name.
* <tt>title</tt> - Title of the infobox. Default is the page name.
* <tt>description</tt> - A brief description of the subsystems purpose/function
* <tt>startup</tt> - Memory offset of the startup function for the system in the executable.
* <tt>startup</tt> - Memory offset of the startup function for the system in the executable.
* <tt>update</tt> - Memory offset of the update function for the system in the executable.
* <tt>update</tt> - Memory offset of the update function for the system in the executable.
Line 42: Line 45:
"type": "number",
"type": "number",
"suggested": true
"suggested": true
},
"update": {
"label": "update function",
"description": "Offset of the update function in the elf",
"example": "0x123456",
"type": "string"
},
"description": {
"description": "A brief description of the system's function/purpose",
"type": "string"
}
}
},
},
Line 49: Line 62:
"image",
"image",
"caption",
"caption",
"description",
"width",
"width",
"startup"
"startup",
"update"
]
]
}
}

Latest revision as of 22:23, 23 November 2022

This is the infobox template for subsystems. It will automatically categorize the article based on its namespace.

Usage

Infobox subsystem/doc
Subsystem
Click here to upload a new image.[[Media:|Dummy link]]
DescriptionA sample subsystem
Startup Function0x123456
Update Function0x2468C0
{{Infobox subsystem
| title=
| description= A sample subsystem
| startup= 0x123456
| update= 0x2468C0
}}

The template takes the following optional parameters:

  • title - Title of the infobox. Default is the page name.
  • description - A brief description of the subsystems purpose/function
  • startup - Memory offset of the startup function for the system in the executable.
  • update - Memory offset of the update function for the system in the executable.

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for Infobox subsystem

An infobox for use on subsystem articles.

Template parameters

ParameterDescriptionTypeStatus
namename

no description

Stringoptional
imageimage

no description

Fileoptional
captioncaption

no description

Stringoptional
descriptiondescription

A brief description of the system's function/purpose

Stringoptional
widthwidth

no description

Unknownoptional
startup functionstartup

The memory address of the startup function in the ELF

Example
0x00123456
Numbersuggested
update functionupdate

Offset of the update function in the elf

Example
0x123456
Stringoptional