Template:Infobox game mechanic/doc: Difference between revisions

no edit summary
(Updated documentation)
No edit summary
 
(4 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.
* <codett>name</codett> - The title above the infobox. Default is the full page name.
* <codett>image</codett> - An image to be displayed in the infobox. Default is {{tl|No image}}.
** Use '''just the name of the image''', eg. {{Color|limegreen|<nowiki>File:ITM anticrack firewall.png</nowiki>}}, not {{Color|red|<nowiki>[[File:ITM anticrack firewall]]</nowiki>}}
* <codett>widthcaption</codett> - WidthThe ofcaption below the image/infobox body. Default is 360px.
* <tt>width</tt> - Width of the image/infobox body. Default is 360px.
* <code>official</code> - Can by <code>y</code> or <code>n</code>. Denotes whether the title is the official name for the game mechanic.
 
* <code>sly1=y</code> - Adds the article to [[:Category:Game mechanics in Sly 1]]
== Template data ==
* <code>sly2=y</code> - Adds the article to [[:Category:Game mechanics in Sly 2]]
{{TemplateData header}}
* <code>sly3=y</code> - Adds the article to [[:Category:Game mechanics in Sly 3]]
<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>