(Created page with "{{#switch: {{{1}}} <!-- RARITIES --> | common = colspan="{{{colspan|6}}}" style="background: #bfbfbf" {{!}} Common | rare = colspan="{{{colspan|3}}}" style="background: #f7ad8d" {{!}} Rare | legendary = colspan="{{{colspan|1}}}" style="background: #ac76de" {{!}} Legendary | ultra = colspan="{{{colspan|1}}}" style="background: #d9719e" {{!}} Ultra Beast | paradox = colspan="{{{colspan|1}}}" style="background: #cd2e2e; color: #fff" {{!}} Paradox <!...") |
No edit summary |
||
| Line 1: | Line 1: | ||
{{#switch: {{{1}}} | <includeonly>{{#switch: {{{1}}} | ||
<!-- RARITIES --> | <!-- RARITIES --> | ||
| common = colspan="{{{colspan|6}}}" style="background: #bfbfbf" {{!}} Common | | common = colspan="{{{colspan|6}}}" style="background: #bfbfbf" {{!}} Common | ||
| rare = colspan="{{{colspan|3}}}" style="background: #f7ad8d" {{!}} Rare | | rare = colspan="{{{colspan|3}}}" style="background: #f7ad8d" {{!}} Rare | ||
| legendary = colspan="{{{colspan|1}}}" style="background: #ac76de" {{!}} Legendary | | legendary = colspan="{{{colspan|1}}}" style="background: #ac76de; color: white" {{!}} Legendary | ||
| ultra = colspan="{{{colspan|1}}}" style="background: #d9719e" {{!}} Ultra Beast | | ultra = colspan="{{{colspan|1}}}" style="background: #d9719e; color: white" {{!}} Ultra Beast | ||
| paradox = colspan="{{{colspan|1}}}" style="background: #cd2e2e; color: | | paradox = colspan="{{{colspan|1}}}" style="background: #cd2e2e; color: white" {{!}} Paradox | ||
<!-- LOCATIONS --> | <!-- LOCATIONS --> | ||
| Line 19: | Line 19: | ||
| floor = colspan="{{{colspan|6}}}" style="color: black; background: linear-gradient(to right, #b5c9e8, #b5c9e8, #b5c9e8)" {{!}} '''{{{text|Floor Encounters}}}''' | | floor = colspan="{{{colspan|6}}}" style="color: black; background: linear-gradient(to right, #b5c9e8, #b5c9e8, #b5c9e8)" {{!}} '''{{{text|Floor Encounters}}}''' | ||
| #default = "{{{1}}}" is not a recognized value — see [[Template:LocationHeader]] for a list of valid keywords. | | #default = "{{{1}}}" is not a recognized value — see [[Template:LocationHeader]] for a list of valid keywords. | ||
}} | }}</includeonly><noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 21:58, 29 October 2025
Template:LocationHeader creates a table header that lists a rarity or location grouping.
Usage
{{LocationHeader|<rarity or location>|colspan=(optional)|text=(optional)}}
This template should only be used inside a table, and it should be in a table header (prefixed with !).
- The first unnamed parameter is a rarity or location. Valid values are:
- For rarity:
- common (6 columns wide)
- rare (3 columns wide)
- legendary (1 column wide)
- ultra (1 column wide)
- paradox (1 column wide)
- For location (all types are 6 columns wide):
- grass day
- grass night
- water
- water day
- water night
- cave
- cave water
- cave lava
- land
- floor
- For rarity:
- The colspan parameter is optional, and lets you set a custom number of columns that the header should span. If omitted, it will default to whatever is standard for that type.
- The text parameter is optional, and lets you set custom header text for any of the location types. If omitted, it will default to whatever is standard for that type.
Example
Basic
{|
! {{LocationHeader|ultra}}
|}
Produces:
| Ultra Beast |
|---|
With text
{|
! {{LocationHeader|grass day|text=Whoever reads this is a loser}}
|}
Produces:
| Whoever reads this is a loser |
|---|
Full
{|
! {{LocationHeader|water night}}
|-
! {{LocationHeader|common}}
|-
| ...
|-
! {{LocationHeader|rare}}
! {{LocationHeader|legendary}}
! {{LocationHeader|ultra}}
! {{LocationHeader|paradox}}
|-
| ...
|}
Produces (with placeholder values in cells):
| Night Time / Water Encounters | |||||
|---|---|---|---|---|---|
| Common | |||||
| common 1 | common 2 | common 3 | common 4 | common 5 | common 6 |
| Rare | Legendary | Ultra Beast | Paradox | ||
| rare 1 | rare 2 | rare 3 | legendary | ultra | paradox |