Template:Infobox game mechanic: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
TheOnlyZac (talk | contribs) (Added template name parameter) |
TheOnlyZac (talk | contribs) (Only show missing image card if a file name was specified) |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
| title= {{{name|{{PAGENAME}}}}} |
| title= {{{name|{{PAGENAME}}}}} |
||
| above= Game Mechanic |
| above= Game Mechanic |
||
| image= {{ |
| image= {{#if:{{{image|}}}|{{Image exists|file={{{image|}}}|width={{{width|360px}}}}}}} |
||
| caption= {{{caption|}}} |
| caption= {{{caption|}}} |
||
| label1= Game |
| label1= Game |
||
Line 14: | Line 14: | ||
}} |
}} |
||
}} |
}} |
||
{{ns0|[[Category:Game mechanics]]}} |
{{ns0|[[Category:Game mechanics]]}} |
||
{{WikiSEO helper |
|||
| title={{PAGENAME}} in {{NAMESPACE}} |
| title={{Main other | {{PAGENAME}} in {{NAMESPACE}} | {{FULLPAGENAME}} }} |
||
| description={{PAGENAME}} is a game mechanic in {{Sly other|sly1={{Sly 1}}|sly2={{Sly 2}}|sly3={{Sly 3}}|sly4={{Sly 4}}|other=the Sly Cooper series}}. |
| description={{Main other|{{PAGENAME}} is a game mechanic in {{Sly other|sly1={{Sly 1}}|sly2={{Sly 2}}|sly3={{Sly 3}}|sly4={{Sly 4}}|other=the Sly Cooper series}}|}}. |
||
| image={{#if: {{{image|}}} | |
| image={{#if: {{{image|}}} | {{{image}}} |}} |
||
| keywords= engine, mechanics, game mechanics, logic |
|||
}}</includeonly><noinclude> |
}}</includeonly><noinclude> |
||
{{Infobox game mechanic |
{{Infobox game mechanic |
Latest revision as of 01:13, 3 May 2023
Game Mechanic | |
---|---|
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}}