Template:LocationHeader/doc

Template page

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. In most cases you should only need to fill out this parameter, as it also automatically sets colspan and text values. 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
  • 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

Standard

{|
! {{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

With custom colspan and text

{|
! {{LocationHeader|grass night|text=Whoever reads this is a loser}}
|-
| ...
|-
! {{LocationHeader|water night|colspan=2|text=Big loser}}
! {{LocationHeader|cave lava|colspan=4|text=Big big loser}}
|}

Produces:

Whoever reads this is a loser
common 1 common 2 common 3 common 4 common 5 common 6
Big loser Big big loser