Template:WeaponList/Header: Difference between revisions
From Inkipedia, the Splatoon wiki
m (added pts/depletion) |
(Changed "Added in" to "Introduced", since somebody changed the syntax of the Weapons templates without also changing these) |
||
(8 intermediate revisions by 4 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}}}}}} | ||
|style=padding: 16px; margin-top: 12px; {{{style|}}} | |style=padding: 16px; margin-top: 12px; {{{style|}}} | ||
Line 6: | Line 7: | ||
}} | }} | ||
{{#if:{{{collapsed|}}}||{{#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: | {| class="sortable" 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;"| | ||
!style="text-align: center;"|Main | !style="text-align: center;"|Main | ||
!style="text-align: center;"| | !style="text-align: center;"|#ID | ||
!style="text-align: center;"|Sub | !style="text-align: center;"|Sub | ||
!style="text-align: center;"|Special | !style="text-align: center;"|Special | ||
!style="text-align: center;"|{{#ifeq:{{{game|}}}|Splatoon|Special Depletion|Points | !style="text-align: center;"|{{#ifeq:{{{game|}}}|Splatoon|Special Depletion|Special Points}} | ||
!style="text-align: center;"|Level | !style="text-align: center;"|Level | ||
!style="text-align: center;"|Price | !style="text-align: center;"|Price | ||
!style="text-align: center;"|Class</includeonly><noinclude>__NOTOC__ | !style="text-align: center;"|Class | ||
!style="text-align: center;"|Introduced</includeonly><noinclude>__NOTOC__ | |||
Opens a table element for lists of [[weapon]] sets. Intended to be used in conjunction with [[Template:WeaponList/Item|WeaponList/Item]] and [[Template:WeaponList/Footer|WeaponList/Footer]]. | Opens a table element for lists of [[weapon]] sets. Intended to be used in conjunction with [[Template:WeaponList/Item|WeaponList/Item]] and [[Template:WeaponList/Footer|WeaponList/Footer]]. | ||
Latest revision as of 03:00, 17 November 2023
Opens a table element for lists of weapon sets. Intended to be used in conjunction with WeaponList/Item and WeaponList/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
{{WeaponList/Header|Example List|game=Splatoon}} {{WeaponList/Item|game=Splatoon|main=Aerospray MG|sub=Seeker|special=Inkzooka|depletion=Light|price=4,500|scroll=Octowhirl|level=7|class=Shooter|id=30}} {{WeaponList/Item|game=Splatoon|main=Dual Squelcher|sub=Splat Bomb|special=Echolocator|depletion=Light|price=9,800|level=16|class=Shooter|id=80}} {{WeaponList/Item|game=Splatoon|main=Hero Shot Replica|sub=Burst Bomb|special=Bomb Rush|depletion=Light|price=1,200|amiibo=Inkling Girl|level=3|class=Shooter|id=45}} {{WeaponList/Item||game=Splatoon|main=Splattershot Jr.|sub=Splat Bomb|special=Bubbler|depletion=Medium|level=1|class=Shooter|id=10}} {{WeaponList/Item|game=Splatoon|main=Tri-Slosher|sub=Disruptor|special=Bubbler|depletion=Medium|price=7,500|level=9|class=Slosher|id=3010}} {{WeaponList/Footer}}
Output
Example List
Main | #ID | Sub | Special | Special Depletion | Level | Price | Class | Introduced
| |
---|---|---|---|---|---|---|---|---|---|
Aerospray MG | 30 | Seeker | Inkzooka | Light | 7 | 4,500 | Shooter |
| |
Dual Squelcher | 80 | Splat Bomb | Echolocator | Light | 16 | 9,800 | Shooter |
| |
Hero Shot Replica | 45 | Burst Bomb | Bomb Rush | Light | 3 | 1,200 | Shooter |
| |
Splattershot Jr. | 10 | Splat Bomb | Bubbler | Medium | 1 | Shooter |
| ||
Tri-Slosher | 3010 | Disruptor | Bubbler | Medium | 9 | 7,500 | Slosher |