Template:GearList/Header: Difference between revisions
From Inkipedia, the Splatoon wiki
GuyPerfect (talk | contribs) m (You can now name the type of Gear being displayed) |
m (changed background to use site color instead of hardcoded white) |
||
(22 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <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}}}}}} | |||
{| class="sortable" align="center" width="100%" cellpadding="1px" style="background: | |style=padding: 16px; margin-top: 12px; {{{style|}}} | ||
!class="unsortable" style="text-align: center;" | | |collapsed={{{collapsed|}}} | ||
!style="text-align: center;" | | |{{#if:{{{collapsed|}}}|{{#tag:div|{{{1}}}|style=text-align: center; font-size: 20px; font-weight: bold;}}|open}} | ||
!style="text-align: center;" | | }} | ||
!style="text-align: center;" | | {{#if:{{{collapsed|}}}||{{#tag:div|{{{1}}}|style=text-align: center; font-size: 20px; font-weight: bold;}}}} | ||
!style="text-align: center;" | | {| 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;" | ||
!style="text-align: center;" | | |- | ||
!class="unsortable" style="width: 75px;"| | |||
!style="text-align: center;"|Name | |||
!style="text-align: center;"|Brand | |||
!style="text-align: center;"|Availability | |||
!style="text-align: center;"|Ability | |||
!style="text-align: center; width: 50px;"|Star power | |||
!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 == | |||
{| | |||
|- 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". If absent, the list will not be collapsible. | |||
|- 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> | </noinclude> |
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
Name | Brand | Availability | Ability | Star power | Added in
| |
---|---|---|---|---|---|---|
Armor Helmet Replica | Cuttlegear | Marie | Tenacity |
| ||
FishFry Visor | Firefin | 500 | Special Charge Up |
| ||
Headlamp Helmet | Grizzco | Salmon Run |