Template:Infobox game mechanic/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
TheOnlyZac (talk | contribs) m (Removed whitespace) |
TheOnlyZac (talk | contribs) (Updated doc) |
||
Line 4: | Line 4: | ||
== Usage == |
== Usage == |
||
The template supports the following parameters. |
The template supports the following parameters. |
||
* < |
* <tt>name</tt> - The title above the infobox. Default is the full page name. |
||
* < |
* <tt>image</tt> - 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>}} |
** 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>}} |
||
* < |
* <tt>caption</tt> - The caption below the image. |
||
* < |
* <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 == |
|||
{{TemplateData header}} |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"width": {}, |
|||
"name": { |
|||
"type": "string" |
|||
}, |
|||
"image": { |
|||
"type": "wiki-file-name" |
|||
}, |
|||
"caption": { |
|||
"type": "string" |
|||
}, |
|||
"sly1": {}, |
|||
"sly2": {}, |
|||
"sly3": {} |
|||
}, |
|||
"description": "An infobox for use on game mechanic articles.", |
|||
"paramOrder": [ |
|||
"name", |
|||
"image", |
|||
"caption", |
|||
"width", |
|||
"sly1", |
|||
"sly2", |
|||
"sly3" |
|||
] |
|||
} |
|||
</templatedata> |
|||
== See also == |
|||
* {{tl|Infobox data structure}} |
|||
* {{tl|Infobox subsystem}} |
|||
* {{tl|Infobox map}} |
|||
* {{tl|Infobox mod}} |
|||
<includeonly> |
<includeonly> |
Revision as of 04:52, 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.
- sly1=y - Adds the article to Category:Game mechanics in Sly 1
- sly2=y - Adds the article to Category:Game mechanics in Sly 2
- sly3=y - Adds the article to Category:Game mechanics in Sly 3
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 |
sly1 | sly1 | no description | Unknown | optional |
sly2 | sly2 | no description | Unknown | optional |
sly3 | sly3 | no description | Unknown | optional |
See also
- {{Infobox data structure}}
- {{Infobox subsystem}}
- {{Infobox map}}
- {{Infobox mod}}