Template:Infobox game mechanic: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
TheOnlyZac (talk | contribs) (Added category helpers) |
TheOnlyZac (talk | contribs) (Update title and image parameters, added TemplateData) |
||
Line 1:
<includeonly>{{Infobox
| bodystyle= width: {{{width|360px}}}
| title= {{{name|{{
| above= Game Mechanic
| image= {{
| caption= {{{caption|}}}
| label1= Game
Line 20 ⟶ 14:
{{ns0|[[Category:Game mechanics]]}}</includeonly><noinclude>
{{Infobox game mechanic
| image= File:ITM anticrack firewall.png
| caption= caption
Line 29 ⟶ 22:
}}
{{Documentation}}
<templatedata>
</noinclude>▼
{
"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></noinclude>
|
Revision as of 23:37, 1 August 2022
Game Mechanic | |
---|---|
![]() caption | |
Game | Sly 1, Sly 2, Sly 3 |
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}}
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 |