Template:Hero table row: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(add ability to show the expansion or not)
(add ability to show hota images without needing to duplicate lines)
Line 1: Line 1:
<includeonly>|- class='{{sourceToggle|{{{source}}}|{{{only}}}}}' style="white-space:nowrap;"
<includeonly>|- class='{{sourceToggle|{{{source}}}|{{{only}}}}}' style="white-space:nowrap;"
|{{H|0=|{{{name|{{{1}}}}}}|image={{{image|{{{1}}}}}}|source={{{source|}}}|hero_link={{{hero_link|{{{1}}}}}}}}
|{{swh|noicon=|{{H|0=|{{{name|{{{1}}}}}}|image={{{image|{{{1}}}{{{himage|}}}}}}|source={{{source|}}}|hero_link={{{hero_link|{{{1}}}}}}}}|{{H|0=|{{{name|{{{1}}}}}}|image={{{image|{{{1}}}}}}|source={{{source|}}}|hero_link={{{hero_link|{{{1}}}}}}}}}}
|style="padding-right:5px"|{{-}}[[{{{2}}}]]{{-}}
|style="padding-right:5px"|{{-}}[[{{{2}}}]]{{-}}
| style="{{#if: {{{showexp|}}} | | display: none}};" | {{{{{exp}}} map icon}}
| style="{{#if: {{{showexp|}}} | | display: none}};" | {{{{{exp}}} map icon}}
Line 26: Line 26:
# Expansion (exp)
# Expansion (exp)
# Whether to show the expansion (showexp)
# Whether to show the expansion (showexp)
# If there is a hota version of the image, add <nowiki>"himage=(HotA)"</nowiki>


== Example (no expansion) ==
== Example (no expansion) ==
Line 31: Line 32:
{{Hero table row|Lord Haart|hero_link=Lord Haart#Lord_Haart_the_Death_Knight|image=Lord Haart Death Knight|Death Knight|Black Knights|Basic Necromancy|Basic Estates|spell=Slow |exp=ab}}
{{Hero table row|Lord Haart|hero_link=Lord Haart#Lord_Haart_the_Death_Knight|image=Lord Haart Death Knight|Death Knight|Black Knights|Basic Necromancy|Basic Estates|spell=Slow |exp=ab}}
{{Hero table row|Christian|Knight|Ballista|Basic Leadership|Basic Artillery|no_spell= |exp=roe}}
{{Hero table row|Christian|Knight|Ballista|Basic Leadership|Basic Artillery|no_spell= |exp=roe}}
{{Hero table row| Vey      | Battle Mage | Ogres      | Basic Wisdom      | Basic Leadership  | spell=Magic Arrow            |exp=roe |showexp={{{1|}}}| himage=(HotA)}}
|}
|}


Line 37: Line 39:
{{Hero table row|Lord Haart|hero_link=Lord Haart#Lord_Haart_the_Death_Knight|image=Lord Haart Death Knight|Death Knight|Black Knights|Basic Necromancy|Basic Estates|spell=Slow |exp=ab |showexp=showexp}}
{{Hero table row|Lord Haart|hero_link=Lord Haart#Lord_Haart_the_Death_Knight|image=Lord Haart Death Knight|Death Knight|Black Knights|Basic Necromancy|Basic Estates|spell=Slow |exp=ab |showexp=showexp}}
{{Hero table row|Christian|Knight|Ballista|Basic Leadership|Basic Artillery|no_spell= |exp=roe |showexp=showexp}}
{{Hero table row|Christian|Knight|Ballista|Basic Leadership|Basic Artillery|no_spell= |exp=roe |showexp=showexp}}
{{Hero table row| Vey      | Battle Mage | Ogres      | Basic Wisdom      | Basic Leadership  | spell=Magic Arrow            |exp=roe |showexp={{{1|}}}| himage=(HotA)|showexp=showexp}}
|}
|}



Revision as of 18:09, 1 October 2024


Variables

  1. Hero name
  2. Class
  3. Specialty
  4. Skill 1
  5. Skill 2
  6. If the hero has no skill 2
image
no_spell
spell
spell_link
name
  1. Expansion (exp)
  2. Whether to show the expansion (showexp)
  3. If there is a hota version of the image, add "himage=(HotA)"

Example (no expansion)

Name Class Expansion Source Specialty Skill 1 Skill 2 Spell
Lord HaartLord Haart Lord HaartLord HaartLord Haart Lord Haart  Death Knight  2 - Armageddon's Blade File:Specialty Black Knights small.gif  Black Knights Basic Necromancy  Basic Necromancy  Basic Estates  Basic Estates   Slow 
ChristianChristian ChristianChristianChristian Christian  Knight  1 - Restoration of Erathia File:Specialty Ballista small.gif  Ballista Basic Leadership  Basic Leadership  Basic Artillery  Basic Artillery 
VeyVey Vey VeyVey Vey  Battle Mage   1 - Restoration of Erathia File:Specialty Ogres small.gif  Ogres Basic Wisdom  Basic Wisdom   Basic Leadership  Basic Leadership    Magic Arrow 

Example (expansion)

Template:Hero table (combined) |- class= style="white-space:nowrap;" |Lord HaartLord Haart Lord HaartLord HaartLord Haart Lord Haart |style="padding-right:5px"| Death Knight  | style=";" | 2 - Armageddon's Blade |File:Specialty Black Knights small.gif |style="padding-right:5px; white-space: nowrap;"| Black Knights |Basic NecromancyBasic Necromancy  |Basic EstatesBasic Estates  | | style="padding-right:0.5em;"| Slow  |- class= style="white-space:nowrap;" |ChristianChristian ChristianChristianChristian Christian |style="padding-right:5px"| Knight  | style=";" | 1 - Restoration of Erathia |File:Specialty Ballista small.gif |style="padding-right:5px; white-space: nowrap;"| Ballista |Basic LeadershipBasic Leadership  |Basic ArtilleryBasic Artillery  | | style="padding-right:0.5em;"| |- class= style="white-space:nowrap;" |VeyVey Vey VeyVey Vey |style="padding-right:5px"| Battle Mage   | style=";" | 1 - Restoration of Erathia |File:Specialty Ogres small.gif |style="padding-right:5px; white-space: nowrap;"| Ogres |Basic WisdomBasic Wisdom   |Basic LeadershipBasic Leadership   | | style="padding-right:0.5em;"| Magic Arrow  |}

Related templates

See also