Template:Infobox game mechanic/doc: Difference between revisions

no edit summary
m (Added template categories)
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1:
{{Documentation subpage}}
 
Use this template to add an [[Template:Infobox|Infobox]] to an article for a game mechanic.
 
== Usage ==
The template supports the following parameters.
* <tt>name</tt> - Optional,The defaulttitle above the infobox. Default is the full page name.
* <tt>image</tt> - Optional, anAn image representingto be displayed in the gameinfobox. mechanicDefault is {{tl|No image}}.
** Use '''just the fullname imageof syntaxthe image''', eg. {{Color|limegreen|<nowiki>[[File:SlyITM 1anticrack jt void zapfirewall.png</nowiki>}}, not {{Color|red|<nowiki>[[File:ITM anticrack firewall]]</nowiki>}}
* <tt>caption</tt> - The caption below the image.
* official - Can by `y` or `n`. Denotes whether the title is the official name for the game mechanic.
* <tt>width</tt> - Width of the image/infobox body. Default is 360px.
* sly1=y - Adds the article to [[:Category:Game mechanics in Sly 1]]
 
* sly2=y - Adds the article to [[:Category:Game mechanics in Sly 2]]
== Template data ==
* sly3=y - Adds the article to [[:Category:Game mechanics in Sly 3]]
{{TemplateData header}}
<templatedata>
{
"params": {
"width": {},
"name": {
"type": "string"
},
"image": {
"type": "wiki-file-name"
},
"caption": {
"type": "string"
}
},
"description": "An infobox for use on game mechanic articles.",
"paramOrder": [
"name",
"image",
"caption",
"width"
]
}
</templatedata>
 
== See also ==
* {{tl|Infobox data structure}}
* {{tl|Infobox subsystem}}
* {{tl|Infobox map}}
* {{tl|Infobox mod}}
 
<includeonly>