Template:GearList/Header: Difference between revisions

From Inkipedia, the Splatoon wiki
m (GuyPerfect moved page User:GuyPerfect/GearListHeader to Template:GearList/Header without leaving a redirect: Implementing in mainspace)
m (changed background to use site color instead of hardcoded white)
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{BubbleBox
<includeonly>{{BubbleBox
|background={{#if:{{{color|}}}|rgba({{{color}}}, 0.25)|rgba({{SiteColor|{{#if:{{{game|}}}|{{{game}}}|Generic}}}}, 0.25)}}
|border={{#if:{{{color|}}}|{{{color}}}|{{SiteColor|{{#if:{{{game|}}}|{{{game}}}|Generic}}}}}}
|border={{#if:{{{color|}}}|{{{color}}}|{{SiteColor|{{#if:{{{game|}}}|{{{game}}}|Generic}}}}}}
|collapsed={{{collapsed|true}}}
|style=padding: 16px; margin-top: 12px; {{{style|}}}
|style=padding: 16px; margin-top: 12px; {{{style|}}}
|{{#tag:div|{{{1}}}|style=text-align: center; font-size: 20px; font-weight: bold;}}
|collapsed={{{collapsed|}}}
|{{#if:{{{collapsed|}}}|{{#tag:div|{{{1}}}|style=text-align: center; font-size: 20px; font-weight: bold;}}|open}}
}}
}}
{| 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;"
{{#if:{{{collapsed|}}}||{{#tag:div|{{{1}}}|style=text-align: center; font-size: 20px; font-weight: bold;}}}}
{| class="sortable darkmode-table" align="center" width="100%" cellpadding="1px"; style="background-color: inherit; border-radius: 20px; 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 14:
!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</includeonly><noinclude>__NOTOC__
!style="text-align: center; width: 50px;"|Star power
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]].
!style="text-align: center;"|Added in
</includeonly><noinclude>__NOTOC__
Opens a table element for lists of [[Gear]] items. Intended to be used in conjunction with [[Template:GearList/Item|GearList/Item]] and [[Template:GearList/Footer|GearList/Footer]].


== Parameters ==
== Parameters ==
Line 20: Line 24:
|<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".

Latest revision as of 11:04, 2 October 2023

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

Example List