Editor
172
edits
(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== | ||
=== | ===Standard=== | ||
<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}} | |||
|} | |} | ||