Template:Hero table row: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
m (use sn template for hero spell, to keep things in sync)
 
(73 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<includeonly>|-
<includeonly>|- class='{{sourceToggle|{{{source}}}|{{{only}}}}}' style="white-space:nowrap; {{#switch: {{{show|}}} | = | {{#ifeq: {{{show}}} | {{{2}}} | | display:none;}}}}"
| {{Hn|{{{1}}}}}||{{{2}}}||[[Image:Specialty_{{{3}}}_small.png]]||{{-}}{{{3}}}||[[Image:{{{4}}}_small.png]]||{{-}}[[{{{4}}}]]||{{{6|[[Image:{{{5}}}_small.png]]}}}||{{-}}{{{6|[[{{{5}}}]]}}}</includeonly><noinclude>
|{{H|0=|{{{name|{{{1}}}}}}|image={{{image|{{{1}}}}}}|himage={{{himage|}}}|source={{{source|}}}|hero_link={{{hero_link|{{{1}}}}}}}}
|style="padding-right:5px"|{{-}}[[{{{2}}}]]{{-}}
| {{{{{exp}}} map icon}}
|[[File:Specialty_{{{3}}}_small.png|link={{{3}}}]]
|style="padding-right:5px; white-space: nowrap;"|{{-}}[[{{{3}}}]]
|[[File:{{{4}}}_small.png|{{{4}}}|link={{{4}}}]]
|{{-}}[[{{{4}}}]]{{-}}
|{{{6|[[Image:{{{5}}}_small.png|{{{5}}}|link={{{5}}}]]}}}
|{{-}}{{{6|[[{{{5}}}]]{{-}}}}}
|{{{7|}}}
| style="padding-right:0.5em;"|{{{no_spell|{{sn|{{{spell}}}|32px|spell_link={{{spell_link|{{{spell}}}}}}}}{{-}}}}}{{{spell+|}}}</includeonly><noinclude>


== Variables ==
== Variables ==
Line 8: Line 18:
# Skill 1
# Skill 1
# Skill 2
# Skill 2
# If empty Skill 2
# If the hero has no skill 2
* image
* no_spell
* spell
* spell_link
* name
* Expansion (exp)
* If there is a hota version of the image, add <nowiki>"himage=(HotA)"</nowiki>
* Set "show=" to a class name if you only wish to show heroes of that class. Used for showing a portion of the campaign hero table.


 
== Example ==
== Use ==
{{Hero table}}
<pre>{{Herotable}}
{{Hero table row|Haart Lich | Death Knight | Black Knights | Basic Necromancy  | Basic Estates    | spell=Slow        |exp=ab}}
{{Herotablerow|'name'|'class'|'specialty'|'skill 1'|'skill 2'}}
{{Hero table row|Christian  | Knight      | Ballista      | Basic Leadership  | Basic Artillery  | no_spell=        |exp=roe}}
|}</pre>
{{Hero table row| Vey      | Battle Mage  | Ogres        | Basic Wisdom      | Basic Leadership  | spell=Magic Arrow |exp=roe  | himage=(HotA)}}
 
{{Hero table row| Catherine | Knight      | Swordsmen    | Basic Leadership  | Basic Offense    | no_spell=         |exp=ab  | show=Knight | source={{-}}{{withmaped}}}}
 
{{Hero table row| Catherine | Knight      | Swordsmen    | Basic Leadership  | Basic Offense    | no_spell=        |exp=ab  | show=Druid | source={{-}}{{withmaped}}}}
== Code preview ==
{{Hero table row| Adrienne  | Witch        | Fire Magic    | Expert Fire Magic | | | spell=Inferno | spell_link=Inferno (spell)  |exp=ab  | source={{-}}{{withmaped}}}}
{{Herotable}}
 
<!--- longes names from list of heroes !--->
|-
| {{Hn|General Kendal}}
| Necromancer
| [[Image:Specialty Meteor shower small.png]]
| &nbsp;Meteor shower
| [[Image:Advanced necromancy small.png]]
| &nbsp;Advanced necromancy
| [[Image:Advanced scouting small.png]]
| &nbsp;Advanced scouting
 
<!--- template inside template !--->
{{Herotablerow|Gelu|Ranger|Sharpshooters|Basic archery|Basic leadership}}
|}
|}


{{Hero template 'see also'}}


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

Latest revision as of 22:35, 12 October 2024


Variables[edit | hide | hide all]

  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
  • Expansion (exp)
  • If there is a hota version of the image, add "himage=(HotA)"
  • Set "show=" to a class name if you only wish to show heroes of that class. Used for showing a portion of the campaign hero table.

Example[edit | hide]

Name Class Expansion Source Specialty Skill 1 Skill 2 Spell
Haart LichHaart Lich Haart Lich  Death Knight   2 - Armageddon's Blade  Black Knights Basic Necromancy  Basic Necromancy   Basic Estates  Basic Estates    Slow 
ChristianChristian Christian  Knight   1 - Restoration of Erathia  Ballista Basic Leadership  Basic Leadership   Basic Artillery  Basic Artillery  
VeyVey Vey  Battle Mage   1 - Restoration of Erathia  Ogres Basic Wisdom  Basic Wisdom   Basic Leadership  Basic Leadership    Magic Arrow 
CatherineCatherine Catherine  Map Editor  Knight   2 - Armageddon's Blade  Swordsmen Basic Leadership  Basic Leadership   Basic Offense  Basic Offense  
CatherineCatherine Catherine  Map Editor  Knight   2 - Armageddon's Blade  Swordsmen Basic Leadership  Basic Leadership   Basic Offense  Basic Offense  
AdrienneAdrienne Adrienne  Map Editor  Witch   2 - Armageddon's Blade  Fire Magic Expert Fire Magic  Expert Fire Magic      Inferno 

Related templates[edit | hide]

See also[edit | hide]