Template:Infobox subsystem: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
(Update title and image parameters, added TemplateData)
(Added namespace detection, moved templatedata to doc)
Line 5: Line 5:
| caption= {{{caption|}}}
| caption= {{{caption|}}}
| label1= Game
| label1= Game
| data1= {{Csv|
| data1= {{Sly other
{{#ifeq: {{{sly1}}} | y | [[Sly 1]]{{ns0|[[Category:Subsystems in Sly 1]]}} | }} |
| sly1= [[Sly 1|{{Sly 1}}]][[Category:Subsystems in Sly 1]]
{{#ifeq: {{{sly2}}} | y | [[Sly 2]]{{ns0|[[Category:Subsystems in Sly 2]]}} | }} |
| sly2= [[Sly 2|{{Sly 2}}]][[Category:Subsystems in Sly 2]]
{{#ifeq: {{{sly3}}} | y | [[Sly 3]]{{ns0|[[Category:Subsystems in Sly 3]]}} | }}
| sly3= [[Sly 3|{{Sly 3}}]][[Category:Subsystems in Sly 3]]
| sly4= [[Sly 4|{{Sly 4}}]][[Category:Subsystems in Sly 4]]
}}
}}
| label2= {{#if: {{{startup}}} | Startup Function | }}
| label2= {{#if: {{{startup}}} | Startup Function | }}
| data2= {{{startup|}}}
| data2= {{{startup|}}}
}}{{Article only|[[Category:Subsystems]]}}</includeonly><noinclude>
}}
{{ns0|[[Category:Subsystems]]}}</includeonly><noinclude>
{{Infobox subsystem
{{Infobox subsystem
| startup= 0x00123456
| sly1= y
| sly2= y
| sly3= y
| startup= 0x01234567
}}
}}
{{Documentation}}
{{Documentation}}
</noinclude>
[[Category:SlyMods templates]]
<templatedata>
{
"params": {
"name": {
"type": "string"
},
"image": {
"type": "wiki-file-name"
},
"width": {},
"caption": {
"type": "string"
},
"sly1": {},
"sly2": {},
"sly3": {},
"startup": {}
},
"description": "An infobox for use on subsystem articles.",
"paramOrder": [
"name",
"image",
"caption",
"width",
"sly1",
"sly2",
"sly3",
"startup"
]
}
</templatedata></noinclude>

Revision as of 00:25, 3 August 2022

Infobox subsystem
Subsystem
Click here to upload a new image.[[Media:|Dummy link]]
Startup Function0x00123456