Template:Infobox game mechanic/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
TheOnlyZac (talk | contribs) (Updated doc) |
TheOnlyZac (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
* <tt>caption</tt> - The caption below the image. |
* <tt>caption</tt> - The caption below the image. |
||
* <tt>width</tt> - Width of the image/infobox body. Default is 360px. |
* <tt>width</tt> - Width of the image/infobox body. Default is 360px. |
||
* <tt>sly1=y</tt> - Adds the article to [[:Category:Game mechanics in Sly 1]] |
|||
* <tt>sly2=y</tt> - Adds the article to [[:Category:Game mechanics in Sly 2]] |
|||
* <tt>sly3=y</tt> - Adds the article to [[:Category:Game mechanics in Sly 3]] |
|||
== Template data == |
== Template data == |
||
Line 27: | Line 24: | ||
"caption": { |
"caption": { |
||
"type": "string" |
"type": "string" |
||
} |
} |
||
"sly1": {}, |
|||
"sly2": {}, |
|||
"sly3": {} |
|||
}, |
}, |
||
"description": "An infobox for use on game mechanic articles.", |
"description": "An infobox for use on game mechanic articles.", |
||
Line 37: | Line 31: | ||
"image", |
"image", |
||
"caption", |
"caption", |
||
"width" |
"width" |
||
"sly1", |
|||
"sly2", |
|||
"sly3" |
|||
] |
] |
||
} |
} |
Latest revision as of 18:20, 3 August 2022
This is a documentation subpage for Template:Infobox game mechanic It contains usage information, categories and other content that is not part of the original template page. |
Use this template to add an Infobox to an article for a game mechanic.
Usage
The template supports the following parameters.
- name - The title above the infobox. Default is the full page name.
- image - An image to be displayed in the infobox. Default is {{No image}}.
- Use just the name of the image, eg. File:ITM anticrack firewall.png, not [[File:ITM anticrack firewall]]
- caption - The caption below the image.
- width - Width of the image/infobox body. Default is 360px.
Template data
This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData for Infobox game mechanic
An infobox for use on game mechanic articles.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | no description | String | optional |
image | image | no description | File | optional |
caption | caption | no description | String | optional |
width | width | no description | Unknown | optional |
See also
- {{Infobox data structure}}
- {{Infobox subsystem}}
- {{Infobox map}}
- {{Infobox mod}}