Template:GearList/Header: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Removing default collapsed state)
(Leaving out the collapsed parameter no longer makes the table collapsible)
Line 1: Line 1:
<includeonly>{{BubbleBox
<includeonly>{{BubbleBox
|border={{#if:{{{color|}}}|{{{color}}}|{{SiteColor|{{#if:{{{game|}}}|{{{game}}}|Generic}}}}}}
|border={{#if:{{{color|}}}|{{{color}}}|{{SiteColor|{{#if:{{{game|}}}|{{{game}}}|Generic}}}}}}
|style=padding: 16px; margin-top: 12px; {{{style|}}}
|collapsed={{{collapsed|}}}
|collapsed={{{collapsed|}}}
|style=padding: 16px; margin-top: 12px; {{{style|}}}
|{{#if:{{{collapsed|}}}|{{#tag:div|{{{1}}}|style=text-align: center; font-size: 20px; font-weight: bold;}}|open}}
|{{#tag:div|{{{1}}}|style=text-align: center; font-size: 20px; font-weight: bold;}}
}}
}}
{{#if:{{{collapsed|}}}||{{#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: 16px; 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;"
|-
|-
Line 20: Line 21:
|<code>title</code>||Unnamed.||Text to display at the top of the table.
|<code>title</code>||Unnamed.||Text to display at the top of the table.
|- style="vertical-align: top;"
|- 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".
|<code>collapsed</code>||Optional.||Determines whether the collapsible region of the list is collapsed by default. Must be "true" or "false". If absent, the list will not be collapsible.
|- style="vertical-align: top;"
|- 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".
|<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".

Revision as of 19:04, 6 August 2017

Opens a table element for lists of Gear items. Intended to be used 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". If absent, the list will not be collapsible.
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