Template:Infobox game mechanic/doc: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
m (Added template categories)
(Updated documentation)
Line 5:
== Usage ==
The template supports the following parameters.
* <code>name</code> - Optional,The defaulttitle above the infobox. Default is the full page name.
* <code>image</code> - Optional, anAn image representingto be displayed in the gameinfobox. mechanicDefault is {{tl|No image}}.
** Use '''just the fullname imageof syntaxthe image''', eg. {{Color|limegreen|<nowiki>[[File:SlyITM 1anticrack jt void zapfirewall.png</nowiki>}}, not {{Color|red|<nowiki>[[File:ITM anticrack firewall]]</nowiki>}}
* <code>width</code> - Width of the image/infobox body. Default is 360px.
* <code>official</code> - Can by `<code>y`</code> or `<code>n`</code>. Denotes whether the title is the official name for the game mechanic.
* sly1=y - Adds the article to [[:Category:Game mechanics in Sly 1]]
* sly2<code>sly1=y</code> - Adds the article to [[:Category:Game mechanics in Sly 21]]
* sly3<code>sly2=y</code> - Adds the article to [[:Category:Game mechanics in Sly 32]]
* sly1<code>sly3=y</code> - Adds the article to [[:Category:Game mechanics in Sly 13]]
 
<includeonly>

Revision as of 16:51, 28 July 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]]
  • width - Width of the image/infobox body. Default is 360px.
  • official - Can by y or n. Denotes whether the title is the official name for the game mechanic.
  • 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