Template:Town row: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Created page with "<noinclude>{| class="sortable wikitable" cellpadding=5px ! Location ! Color ! Type ! Name </noinclude>|- | style="text-align:center;" | {{{1|}}} | style="text-align:center;{{#if:{{{2|}}}| background-color: #{{k {{{2}}}}};" {{!}} {{{{{2}}}}}|"{{!}}}} | style="padding-left:7px; padding-right:5px;" | {{town|{{{3|Random}}}}} | style="padding-left:7px; padding-right:5px;" | {{{4|-}}}<noinclude> {{town row|0, 1, 2|green|Rampart|Treehug Central}} {{town row|3, 4, 5|teal|Tower|H...")
 
mNo edit summary
Line 1: Line 1:
<noinclude>{| class="sortable wikitable" cellpadding=5px
<includeonly>|-
| style="text-align:center;" | {{{1|}}}
| style="text-align:center;{{#if:{{{2|}}}| background-color: #{{k {{{2}}}}};" {{!}} {{{{{2}}}}}|"{{!}}}}
| style="padding-left:7px; padding-right:5px;" | {{town|{{{3|Random}}}}}
| style="padding-left:7px; padding-right:5px;" | {{{4|-}}}</includeonly><noinclude>
{| class="sortable wikitable" cellpadding=5px
! Location
! Location
! Color
! Color
! Type
! Type
! Name
! Name
</noinclude>|-
{{town row|0, 1, 2| | | }}
| style="text-align:center;" | {{{1|}}}
| style="text-align:center;{{#if:{{{2|}}}| background-color: #{{k {{{2}}}}};" {{!}} {{{{{2}}}}}|"{{!}}}}
| style="padding-left:7px; padding-right:5px;" | {{town|{{{3|Random}}}}}
| style="padding-left:7px; padding-right:5px;" | {{{4|-}}}<noinclude>
{{town row|0, 1, 2|green|Rampart|Treehug Central}}
{{town row|0, 1, 2|green|Rampart|Treehug Central}}
{{town row|3, 4, 5|teal|Tower|High Hrothgar}}
{{town row|3, 4, 5|teal|Tower|High Hrothgar}}

Revision as of 17:02, 10 June 2024

Location Color Type Name
0, 1, 2 File:Town portrait small.gif [[ | ]]
0, 1, 2 Green Rampart Treehug Central
3, 4, 5 Teal Tower High Hrothgar
6, 7, 8 Inferno Traffic Jam

Usage:

{{town row|Location|Color|Type|Name}}
  1. Location is map coordinates (X, Y, Z), no default.
  2. Color is one of the kingdom colors: red, blue, tan, green, orange, purple, teal, and pink. It should be in lower-case (red, not Red). Defaults to no color.
  3. Type is town/faction type. It should be capitalized (Castle, not castle). Defaults to Random.
  4. Name should be the town name, if given one. Defaults to "-" to indicate a random name.