Template:GearList/Header: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Bummer. Guess prices will be listed alphanumerically)
(Prepping for mainspace implementation)
Line 1: Line 1:
{{BubbleBox
<includeonly>{{BubbleBox
|border={{#if:{{{color|}}}|{{{color}}}|{{SiteColor|{{#if:{{{game|}}}|{{{game}}}|Generic}}}}}}
|border={{#if:{{{color|}}}|{{{color}}}|{{SiteColor|{{#if:{{{game|}}}|{{{game}}}|Generic}}}}}}
|collapsed={{{collapsed|true}}}
|collapsed={{{collapsed|true}}}
|style=padding: 16px;
|style=padding: 16px; margin-top: 12px; {{{style|}}}
|{{#tag:div|{{{1}}}|style=text-align: center; font-size: 20px; font-weight: bold;}}
|{{#tag:div|{{{1}}}|style=text-align: center; font-size: 20px; font-weight: bold;}}
}}
}}
{| class="sortable" align="center" width="100%" cellpadding="1px"; style="background-color: white; {{roundy}}; box-shadow: 0 0 8px white, 0 0 8px white; margin-top: 20px; padding: 4px;"
{| class="sortable" align="center" width="100%" cellpadding="1px"; style="background-color: white; {{roundy}}; box-shadow: 0 0 8px white, 0 0 8px white; margin-top: 16px; padding: 4px;"
|-
|-
!class="unsortable" style="width: 75px;"|
!class="unsortable" style="width: 75px;"|
Line 12: Line 12:
!style="text-align: center;"|Availability
!style="text-align: center;"|Availability
!style="text-align: center;"|Ability
!style="text-align: center;"|Ability
!style="text-align: center; width: 50px;"|Rarity
!style="text-align: center; width: 50px;"|Rarity</includeonly><noinclude>__NOTOC__
Opens a table element for lists of [[Gear]] items. Intended to be use in conjunction with [[Template:GearList/Item|GearList/Item]] and [[Template:GearList/Footer|GearList/Footer]].
 
== Parameters ==
{|
|- style="vertical-align: top;"
|<code>title</code>||Unnamed.||Text to display at the top of the table.
|- style="vertical-align: top;"
|<code>collapsed</code>||Optional.||Determines whether the collapsible region of the list is collapsed by default. Must be "true" or "false", and the default value is "true".
|- style="vertical-align: top;"
|<code>game</code>||Optional.||The game that the list belongs to. Used to determine the base color for formatting. If absent, the table's base color will be {{SiteColor|Generic}}, defined in [[Template:SiteColor|SiteColor]] as "Generic".
|- style="vertical-align: top;"
|<code>color</code>||Optional.||An RGB triplet of the base color to use for formatting. If absent, the color is determined based on the value of <code>game</code>.
|- style="vertical-align: top;"
|<code>style</code>||Optional.||A list of CSS values to apply to the outermost element.
|}
 
{{GearList/Example}}
</noinclude>

Revision as of 01:30, 5 August 2017

Opens a table element for lists of Gear items. Intended to be use in conjunction with GearList/Item and GearList/Footer.

Parameters

title Unnamed. Text to display at the top of the table.
collapsed Optional. Determines whether the collapsible region of the list is collapsed by default. Must be "true" or "false", and the default value is "true".
game Optional. The game that the list belongs to. Used to determine the base color for formatting. If absent, the table's base color will be 0, 153, 255, defined in SiteColor as "Generic".
color Optional. An RGB triplet of the base color to use for formatting. If absent, the color is determined based on the value of game.
style Optional. A list of CSS values to apply to the outermost element.

Example

Markup

{{GearList/Header|Example List|game=Splatoon 2|collapsed=false}}
{{GearList/Item|game=Splatoon 2|category=Headgear
  |name=Armor Helmet Replica|brand=Cuttlegear|amiibo=Marie|ability=Tenacity|stars=3}}
{{GearList/Item|game=Splatoon 2|category=Headgear
  |name=FishFry Visor|brand=Firefin|cost=500|ability=Special Charge Up|stars=1}}
{{GearList/Item|game=Splatoon 2|category=Headgear
  |name=Headlamp Helmet|brand=Grizzco|availability=Salmon Run|stars=3}}
{{GearList/Footer}}

Output