Template:Hero row: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Created page with "<includeonly>|- | style="text-align:center;" | {{{1|}}} | style="text-align:center;{{#if:{{{2|}}}| background-color: #{{k {{{2}}}}};" {{!}} {{{{{2}}}}}|"{{!}}}} | style="padding-left:7px; padding-right:5px;" | {{h|{{{name|{{{3|Random}}}}}}|0=|image={{{image|{{{3|Random}}}}}}|hero_link={{{3|Random}}}}}{{#if:{{{4|}}}| the [[{{{4}}}]]}} </includeonly><noinclude> {{hero header}} {{hero row|0, 1, 2| }} {{hero row|3, 2, 1|red|Christian|image=Christian 2}} {{hero row|0, 1,...")
 
mNo edit summary
Line 1: Line 1:
<includeonly>|-
<includeonly>|-
| style="text-align:center;" | {{{1|}}}
| style="text-align:center;" | {{{1|}}}
| style="text-align:center;{{#if:{{{2|}}}| background-color: #{{k {{{2}}}}};" {{!}} {{{{{2}}}}}|"{{!}}}}
| style="text-align:center;{{#switch:{{{2|}}}|red|blue|tan|green|orange|purple|teal|pink= background-color: #{{k {{{2}}}}};" {{!}} {{{{{2}}}}}|"{{!}}{{{2|}}}}}
| style="padding-left:7px; padding-right:5px;" | {{h|{{{name|{{{3|Random}}}}}}|0=|image={{{image|{{{3|Random}}}}}}|hero_link={{{3|Random}}}}}{{#if:{{{4|}}}|&nbsp;the [[{{{4}}}]]}}
| style="padding-left:7px; padding-right:5px;" | {{h|{{{name|{{{3|Random}}}}}}|0=|image={{{image|{{{3|Random}}}}}}|hero_link={{{3|Random}}}}}{{#if:{{{4|}}}|&nbsp;the [[{{{4}}}]]}}
</includeonly><noinclude>
</includeonly><noinclude>
Line 9: Line 9:
{{hero row|0, 1, 2|green|Yog|Barbarian{{!}}Not-Wizard}}
{{hero row|0, 1, 2|green|Yog|Barbarian{{!}}Not-Wizard}}
{{hero row|3, 4, 5|teal|Gem|Sorcerer{{!}}Sorceress|image=Gem (Sorceress)}}
{{hero row|3, 4, 5|teal|Gem|Sorcerer{{!}}Sorceress|image=Gem (Sorceress)}}
{{hero row|6, 7, 8| |Bidley|Captain|name=Jack Sparrow}}
{{hero row|6, 7, 8|{{imprisoned}}|Bidley|Captain|name=Jack Sparrow}}
|}
|}
Usage:
Usage:
  <nowiki>{{hero row|Location|Color|Name|Class}}</nowiki>
  <nowiki>{{hero row|Location|Color|Name|Class}}</nowiki>
#Location is map coordinates (X, Y, Z), no default.
#Location is map coordinates (X, Y, Z), no default.
#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.
#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). Alternatively, a template such as {{tl|imprisoned}} or {{tl|encamped}} can be used. Defaults to no color.
#Name should be the hero name. The hero's portrait and the link to the hero's page are also taken from this parameter. Defaults to Random.
#Name should be the hero name. The hero's portrait and the link to the hero's page are also taken from this parameter. Defaults to Random.
#Class is the hero's class, such as Knight.
#Class is the hero's class, such as Knight.
Additionally, name= and image= explicit parameters can be used to override the third parameter.
Additionally, name= and image= explicit parameters can be used to override the third parameter.
[[Category:Table templates]]</noinclude>
[[Category:Table templates]]</noinclude>

Revision as of 14:58, 11 June 2024

Location Player Hero
0, 1, 2 Random Random
3, 2, 1 Red Christian Christian
0, 1, 2 Green Yog Yog the Not-Wizard
3, 4, 5 Teal Gem Gem the Sorceress
6, 7, 8 Imprisoned Jack Sparrow Jack Sparrow the Captain

Usage:

{{hero row|Location|Color|Name|Class}}
  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). Alternatively, a template such as {{imprisoned}} or {{encamped}} can be used. Defaults to no color.
  3. Name should be the hero name. The hero's portrait and the link to the hero's page are also taken from this parameter. Defaults to Random.
  4. Class is the hero's class, such as Knight.

Additionally, name= and image= explicit parameters can be used to override the third parameter.