Template:Infobox/Mode: Difference between revisions

From Inkipedia, the Splatoon wiki
(Restyled using Infobox template)
m (Text replacement - "InfoboxProperty" to "Infobox/Property")
 
(4 intermediate revisions by 4 users not shown)
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}}}}}
{{Infobox/Property|color={{{color|}}}|Type|{{{type}}}}}
{{InfoboxProperty|color={{{color|}}}|Players|{{{players}}}}}
{{Infobox/Property|color={{{color|}}}|Players|{{{players}}}}}
{{InfoboxProperty|color={{{color|}}}|Ranked|{{{ranked}}}}}
{{Infobox/Property|color={{{color|}}}|Ranked|{{{ranked}}}}}
{{InfoboxProperty|color={{{color|}}}|Weapons|{{{weapons}}}}}
{{Infobox/Property|color={{{color|}}}|Weapons|{{{weapons}}}}}
{{InfoboxProperty|color={{{color|}}}|Controllers|{{{controllers|}}}}}
{{Infobox/Property|color={{{color|}}}|Controllers|{{{controllers|}}}}}
{{InfoboxProperty|color={{{color|}}}|Release Date|{{{release|Launch}}}}}
{{Infobox/Property|color={{{color|}}}|Release Date|{{{release|Launch}}}}}
|}
|}
</div>
</div>
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"
Line 38: Line 40:
=== Example ===
=== Example ===
==== Markup ====
==== Markup ====
  <nowiki>{{InfoboxMode
  <nowiki>{{Infobox/Mode
| color  = {{SiteColor|Splatoon}}
| color  = {{SiteColor|Splatoon}}
| title  = Turf War
| title  = Turf War
| image  = Turf_War_Flounder_Heights.png
| image  = FlounderHeights4.jpg
| caption = Turf War
| caption = Turf War
| type    = Online multiplayer [[mode]]
| type    = Online multiplayer [[mode]]
Line 51: Line 53:


==== Output ====
==== Output ====
{{InfoboxMode
{{Infobox/Mode
| color  = {{SiteColor|Splatoon}}
| color  = {{SiteColor|Splatoon}}
| title  = Turf War
| title  = Turf War
| image  = Turf_War_Flounder_Heights.png
| image  = FlounderHeights4.jpg
| caption = Turf War
| caption = Turf War
| type    = Online multiplayer [[mode]]
| type    = Online multiplayer [[mode]]

Latest revision as of 22:12, 1 September 2023

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

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

Output

Turf War
FlounderHeights4.jpg
Turf War
Type Online multiplayer mode
Players 8 (4v4)
Ranked No
Weapons All
Controllers width=auto GamePad
Release Date Launch