Template:Infobox subsystem: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
TheOnlyZac (talk | contribs) (Added example) |
TheOnlyZac (talk | contribs) (Added category helper and updated image parameter) |
||
Line 2: | Line 2: | ||
| title= {{{name|{{FULLPAGENAME}}}}} |
| title= {{{name|{{FULLPAGENAME}}}}} |
||
| above= Subsystem |
| above= Subsystem |
||
| image= {{ |
| image= {{#if: {{{image}}} |
||
| {{#ifexist: {{{image}}} |
|||
| [[{{{image}}}|{{{width|360px}}}]] |
|||
| {{No image|{{{width|360px}}}|link={{{image|}}}}} |
|||
}} |
|||
| {{No image|{{{width|360px}}}}} |
|||
}} |
|||
| caption= {{{caption|}}} |
|||
| label1= Game(s) |
| label1= Game(s) |
||
| data1= {{#ifeq: {{{sly1}}} | y | [[Sly 1]][[Category:Subsystems in Sly 1]] | }} |
| data1= {{#ifeq: {{{sly1}}} | y | [[Sly 1]][[Category:Subsystems in Sly 1]] | }} |
||
Line 10: | Line 17: | ||
| data2= {{{ {{{startup}}} | }}} |
| data2= {{{ {{{startup}}} | }}} |
||
}} |
}} |
||
[[Category:Subsystems]]</includeonly><noinclude> |
{{ns0|[[Category:Subsystems]]}}</includeonly><noinclude> |
||
{{Infobox subsystem |
|||
{{{{FULLPAGENAME}} |
|||
| name= name |
| name= name |
||
| sly1= y |
| sly1= y |
Revision as of 17:37, 30 July 2022
Subsystem | |
---|---|
Game(s) | Sly 1 |
Startup Function | startup |
This is the infobox template for subsystems. It will automatically categorize the article based on its namespace.
Usage
Subsystem | |
---|---|
{{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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | no description | String | optional |
image | image | no description | File | optional |
caption | caption | no description | String | optional |
description | description | A brief description of the system's function/purpose | String | optional |
width | width | no description | Unknown | optional |
startup function | startup | The memory address of the startup function in the ELF
| Number | suggested |
update function | update | Offset of the update function in the elf
| String | optional |