Template:Infobox/Mode: Difference between revisions

From Inkipedia, the Splatoon wiki
(Restyled using Infobox template)
(Adding logo parameter)
Line 1: Line 1:
<includeonly>{{Infobox|open|color={{{color|}}}|style={{{style|}}}|title={{{title|}}}|image={{{image|}}}|caption={{{caption|}}}}}
<includeonly>{{Infobox|open|color={{{color|}}}|style={{{style|}}}|title={{{title|}}}|logo={{{logo|}}}|image={{{image|}}}|caption={{{caption|}}}}}
{| style="border-spacing: 4px;"
{| style="border-spacing: 4px;"
{{InfoboxProperty|color={{{color|}}}|Type|{{{type}}}}}
{{InfoboxProperty|color={{{color|}}}|Type|{{{type}}}}}
Line 20: Line 20:
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>title</code>||Optional.||The mode's title. If absent, the page name is used.
|<code>title</code>||Optional.||The mode's title. If absent, the page name is used.
|- style="vertical-align: top;"
|<code>image</code>||Optional.||The filename of the logo to display. Nothing appears if unspecified.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>image</code>||Optional.||The filename to display. If not specified, an [[:File:Example.png|example image]] is used.
|<code>image</code>||Optional.||The filename to display. If not specified, an [[:File:Example.png|example image]] is used.
Line 25: Line 27:
|<code>caption</code>||Optional.||Text displayed below the image.
|<code>caption</code>||Optional.||Text displayed below the image.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>players||Optional||How many players can play in a match in this mode
|<code>players||Optional.||How many players can play in a match in this mode
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>ranked</code>||Optional||Is the mode [[Ranked]]?
|<code>ranked</code>||Optional.||Is the mode [[Ranked]]?
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>weapons</code>||Optional||The weapon(s) allowed in this mode.
|<code>weapons</code>||Optional.||The weapon(s) allowed in this mode.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>controllers</code>||Optional||The available controllers for this mode.
|<code>controllers</code>||Optional.||The available controllers for this mode.
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>release</code>||Optional.||The date(s) this mode was made available. Defaults to "Launch"
|<code>release</code>||Optional.||The date(s) this mode was made available. Defaults to "Launch"

Revision as of 07:37, 21 July 2017

Produces an infobox for a mode.

Parameters

color Optional. An RGB triplet to use as the base color for formatting. The default color is {{SiteColor|<Generic>}}.
style Optional. A CSS property list to apply to the top-level container.
title Optional. The mode's title. If absent, the page name is used.
image Optional. The filename of the logo to display. Nothing appears if unspecified.
image Optional. The filename to display. If not specified, an example image is used.
caption Optional. Text displayed below the image.
players Optional. How many players can play in a match in this mode
ranked Optional. Is the mode Ranked?
weapons Optional. The weapon(s) allowed in this mode.
controllers Optional. The available controllers for this mode.
release Optional. The date(s) this mode was made available. Defaults to "Launch"

Example

Markup

{{InfoboxMode
| color   = {{SiteColor|Splatoon}}
| title   = Turf War
| image   = Turf_War_Flounder_Heights.png
| caption = Turf War
| type    = Online multiplayer [[mode]]
| players = 8 (4v4)
| ranked  = No
| weapons = All
| controllers = {{GP}} GamePad
}}

Output

Template:InfoboxMode