Template:Infobox mod/doc: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
m (Deleted extra space)
(Update usage and templatedata)
 
Line 5: Line 5:
<pre>
<pre>
{{Infobox mod
{{Infobox mod
| title= Mod Name (optional, defaults to page title)
| name= Mod Name (optional, defaults to page title)
| image= File:Image file name.png
| image= File:Image file name.png
| caption= Image caption
| caption= Image caption
Line 16: Line 16:


The template supports the following optional parameters.
The template supports the following optional parameters.
* <tt>title</tt> - The title of the infobox. Default is the page name.
* <tt>name</tt> - The name of the mod (used for infobox title). Default is the page name.
* <tt>image</tt> - 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 file''', 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 file''', eg. {{Color|limegreen|<nowiki>File:ITM anticrack firewall.png</nowiki>}}, not {{Color|red|<nowiki>[[File:ITM anticrack firewall]]</nowiki>}}
Line 68: Line 68:
"description": "Download link for the mod",
"description": "Download link for the mod",
"type": "url"
"type": "url"
},
"style": {},
"title": {
"type": "string",
"deprecated": "Use `name` parameter instead"
}
}
},
},
Line 78: Line 83:
"releasedate",
"releasedate",
"version",
"version",
"download"
"download",
"style",
"title"
],
],
"description": "An infobox for mod infopages.",
"description": "An infobox for mod infopages.",

Latest revision as of 04:12, 26 September 2023

Use this template to add an Infobox to an article for a game mod.

Usage

{{Infobox mod
| name= Mod Name (optional, defaults to page title)
| image= File:Image file name.png
| caption= Image caption
| creator= Creator’s name
| releasedate= January 1 2000
| version= NTSC/PAL
| download= https://example.com
}}

The template supports the following optional parameters.

  • name - The name of the mod (used for infobox title). Default is the page name.
  • image - An image to be displayed in the infobox. Default is {{No image}}.
    • Use just the name of the file, eg. File:ITM anticrack firewall.png, not [[File:ITM anticrack firewall]]
  • caption - The caption text below the image.
  • width - Width of the image/infobox body. Default is 360px.
  • creator - The name of the mod creator.
  • version - The version of the game the mod was made for (e.g. NTSC, PAL, JP)
  • download - An external link to download the mod. Don't upload the mod to the wiki.

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for Infobox mod

An infobox for mod infopages.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename

The name of the mod (default is the page name)

Stringoptional
imageimage

no description

Fileoptional
image captioncaption

no description

Stringoptional
widthwidth

no description

Unknownoptional
creatorcreator author

The name of the person who created the mod

Stringoptional
release datereleasedate

The date the mod was first released

Example
January 1, 1969
Dateoptional
versionversion build

The version of the game the mod is for

Stringoptional
download linkdownload

Download link for the mod

URLoptional
stylestyle

no description

Unknownoptional
titletitle

no description

Stringdeprecated

See also