Template:Hero table row: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(make the image parameter optional)
(add ability to show the expansion or not)
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}}}}}}}}||style="padding-right:5px"|{{-}}[[{{{2}}}]]{{-}}||[[File:Specialty_{{{3}}}_small.gif|link={{{3}}}]]||style="padding-right:5px; white-space: nowrap;"|{{-}}[[{{{3}}}]]||[[File:{{{4}}}_small.gif|{{{4}}}|link={{{4}}}]]||{{-}}[[{{{4}}}]]{{-}}||{{{6|[[Image:{{{5}}}_small.gif|{{{5}}}|link={{{5}}}]]}}}||{{-}}{{{6|[[{{{5}}}]]{{-}}}}}||{{{7|}}}|| style="padding-right:0.5em;"|{{{no_spell|[[File:{{{spell}}}_small.png|32px|link={{{spell_link|{{{spell}}}}}}]]{{-}}[[{{{spell_link|{{{spell}}}}}}|{{{spell}}}]]{{-}}}}}{{{spell+|}}}</includeonly><noinclude>
|{{H|0=|{{{name|{{{1}}}}}}|image={{{image|{{{1}}}}}}|source={{{source|}}}|hero_link={{{hero_link|{{{1}}}}}}}}
 
|style="padding-right:5px"|{{-}}[[{{{2}}}]]{{-}}
{{Hero table}}
| style="{{#if: {{{showexp|}}} | | display: none}};" | {{{{{exp}}} map icon}}
{{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}}
|[[File:Specialty_{{{3}}}_small.gif|link={{{3}}}]]
{{Hero table row|Christian|Knight|Ballista|Basic Leadership|Basic Artillery|no_spell=}}
|style="padding-right:5px; white-space: nowrap;"|{{-}}[[{{{3}}}]]
|}
|[[File:{{{4}}}_small.gif|{{{4}}}|link={{{4}}}]]
|{{-}}[[{{{4}}}]]{{-}}
|{{{6|[[Image:{{{5}}}_small.gif|{{{5}}}|link={{{5}}}]]}}}
|{{-}}{{{6|[[{{{5}}}]]{{-}}}}}
|{{{7|}}}
| style="padding-right:0.5em;"|{{{no_spell|[[File:{{{spell}}}_small.png|32px|link={{{spell_link|{{{spell}}}}}}]]{{-}}[[{{{spell_link|{{{spell}}}}}}|{{{spell}}}]]{{-}}}}}{{{spell+|}}}</includeonly><noinclude>


== Variables ==
== Variables ==
Line 19: Line 24:
: spell_link
: spell_link
: name
: name
# Expansion (exp)
# Whether to show the expansion (showexp)
== Example (no expansion) ==
{{Hero table}}
{{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}}
|}
== Example (expansion) ==
{{Hero table (combined)}}
{{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 template 'see also'}}
{{Hero template 'see also'}}


[[Category: Table templates|{{PAGENAME}}]]</noinclude>
[[Category: Table templates|{{PAGENAME}}]]</noinclude>

Revision as of 13:18, 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)

Example (no expansion)

Name Class Expansion Source Specialty Skill 1 Skill 2 Spell
Lord 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 Christian  Knight  1 - Restoration of Erathia File:Specialty Ballista small.gif  Ballista Basic Leadership  Basic Leadership  Basic Artillery  Basic Artillery 

Example (expansion)

Template:Hero table (combined) |- class= style="white-space:nowrap;" |Lord 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 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;"| |}

Related templates

See also