Template:LocationHeader/doc: Difference between revisions

Template page
(Created page with "'''Template:LocationHeader''' creates a table header that lists a rarity or location grouping. ==Usage== <pre>{{LocationHeader|<rarity or location>|colspan=(optional)|text=(optional)}}</pre> This template should only be used inside a table, and it should be in a table header (prefixed with <code>!</code>). * The '''first''' unnamed parameter is a rarity or location. Valid values are: ** For rarity: *** ''common'' (6 columns wide) *** ''rare'' (3 columns wide) *** ''le...")
 
No edit summary
 
Line 6: Line 6:
This template should only be used inside a table, and it should be in a table header (prefixed with <code>!</code>).
This template should only be used inside a table, and it should be in a table header (prefixed with <code>!</code>).


* The '''first''' unnamed parameter is a rarity or location. Valid values are:
* 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:
** For rarity:
*** ''common'' (6 columns wide)
*** ''common'' (6 columns wide)
Line 28: Line 28:


==Example==
==Example==
===Basic===
===Standard===
<pre>{|
! {{LocationHeader|ultra}}
|}</pre>
 
Produces:
 
{| style="width: 150px"
! {{LocationHeader|ultra}}
|}
 
===With text===
<pre>{|
! {{LocationHeader|grass day|text=Whoever reads this is a loser}}
|}</pre>
 
Produces:
{| style="width: 800px"
! {{LocationHeader|grass day|text= Whoever reads this is a loser}}
|}
 
===Full===
<pre>{|
<pre>{|
! {{LocationHeader|water night}}
! {{LocationHeader|water night}}
Line 90: Line 69:
| ultra
| ultra
| paradox
| paradox
|}
===With custom colspan and text===
<pre>{|
! {{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}}
|}</pre>
Produces:
{| style="width: 800px; text-align: center"
! {{LocationHeader|grass night|text=Whoever reads this is a loser}}
|-
| common 1
| common 2
| common 3
| common 4
| common 5
| common 6
|-
! {{LocationHeader|water night|colspan=2|text=Big loser}}
! {{LocationHeader|cave lava|colspan=4|text=Big big loser}}
|}
|}

Latest revision as of 09:11, 2 January 2026

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