Template:Infobox game mechanic/doc: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
m (Removed whitespace)
(Updated doc)
Line 4: Line 4:
== Usage ==
== Usage ==
The template supports the following parameters.
The template supports the following parameters.
* <code>name</code> - The title above the infobox. Default is the full page name.
* <tt>name</tt> - The title above the infobox. Default is the full page name.
* <code>image</code> - An image to be displayed in the infobox. Default is {{tl|No image}}.
* <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>}}
* <code>caption</code> - The caption below the image.
* <tt>caption</tt> - The caption below the image.
* <code>width</code> - Width of the image/infobox body. Default is 360px.
* <tt>width</tt> - Width of the image/infobox body. Default is 360px.
* <code>sly1=y</code> - Adds the article to [[:Category:Game mechanics in Sly 1]]
* <tt>sly1=y</tt> - Adds the article to [[:Category:Game mechanics in Sly 1]]
* <code>sly2=y</code> - Adds the article to [[:Category:Game mechanics in Sly 2]]
* <tt>sly2=y</tt> - Adds the article to [[:Category:Game mechanics in Sly 2]]
* <code>sly3=y</code> - Adds the article to [[:Category:Game mechanics in Sly 3]]
* <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

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.

Template parameters

ParameterDescriptionTypeStatus
namename

no description

Stringoptional
imageimage

no description

Fileoptional
captioncaption

no description

Stringoptional
widthwidth

no description

Unknownoptional
sly1sly1

no description

Unknownoptional
sly2sly2

no description

Unknownoptional
sly3sly3

no description

Unknownoptional

See also