Template:Infobox game mechanic/doc: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
(Updated documentation)
(Added caption parameter)
Line 8:
* <code>image</code> - 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>}}
* <code>caption</code> - The caption below the image.
* <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.

Revision as of 17:12, 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]]
  • caption - The caption below the image.
  • 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