Template:Hero: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{| border=0 cellpadding=0 cellspacing=0 style="background:#{{green 3}}; color:darkolivegreen; border:1px solid; border-color:rgba(0,0,0,0); width:250px; margin-right: 20px; float:{{{float|left}}}"  
<includeonly>{| border=0 cellpadding=0 cellspacing=0 style="background:#{{green 3}}; color:darkolivegreen; border:1px solid; border-color:rgba(0,0,0,0); width:263px; margin-right: 20px; float:{{{float|left}}}"  
! colspan=3 style="height: 25px; background:#{{Green 1}}; color:lightgreen;" | {{{name|{{PAGENAME}}}}} the {{{classname|{{{class|}}}}}}
! colspan=3 style="height: 25px; background:#{{Green 1}}; color:lightgreen;" | {{{name|{{PAGENAME}}}}} the {{{classname|{{{class|}}}}}}
|-
|-
Line 5: Line 5:
|-  
|-  
| rowspan=3 | [[File: Hero {{{picture|{{PAGENAME}}}}}.png|82px|{{{name|{{PAGENAME}}}}}]]
| rowspan=3 | [[File: Hero {{{picture|{{PAGENAME}}}}}.png|82px|{{{name|{{PAGENAME}}}}}]]
| style="padding-left:5px" width=10 | '''Class:'''  
| style="padding-left:5px"         | '''Class:'''  
| style="padding-left:5px"          | [[{{{class|}}}]]
| style="padding-left:5px"          | [[{{{class|}}}]]
|-  
|-  
Line 32: Line 32:
{| cellpadding=0 cellspacing=0
{| cellpadding=0 cellspacing=0
| style="width:34px;"| [[File: Attack small.png|Attack|link=Primary skill]]
| style="width:34px;"| [[File: Attack small.png|Attack|link=Primary skill]]
| style="width:34px; padding-left:11px;"| {{#ifeq:{{{class}}}|Knight|2|{{#ifeq:{{{class}}}|Cleric|1|{{#ifeq:{{{class}}}|Ranger|1|{{#ifeq:{{{class}}}|Druid|0|{{#ifeq:{{{class}}}|Alchemist|1|{{#ifeq:{{{class}}}|Wizard|0|{{#ifeq:{{{class}}}|Demoniac|2|{{#ifeq:{{{class}}}|Heretic|1|{{#ifeq:{{{class}}}|Death Knight|1|{{#ifeq:{{{class}}}|Necromancer|1|{{#ifeq:{{{class}}}|Overlord|2|{{#ifeq:{{{class}}}|Warlock|0|{{#ifeq:{{{class}}}|Barbarian|4|{{#ifeq:{{{class}}}|Battle Mage|2|{{#ifeq:{{{class}}}|Beastmaster|0|{{#ifeq:{{{class}}}|Witch|0|{{#ifeq:{{{class}}}|Planeswalker|3|{{#ifeq:{{{class}}}|Elementalist|0|{{#ifeq:{{{class}}}|Captain|3|{{#ifeq:{{{class}}}|Navigator|2|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}  
| style="width:37px; padding-left:12px;"| {{#ifeq:{{{class}}}|Knight|2|{{#ifeq:{{{class}}}|Cleric|1|{{#ifeq:{{{class}}}|Ranger|1|{{#ifeq:{{{class}}}|Druid|0|{{#ifeq:{{{class}}}|Alchemist|1|{{#ifeq:{{{class}}}|Wizard|0|{{#ifeq:{{{class}}}|Demoniac|2|{{#ifeq:{{{class}}}|Heretic|1|{{#ifeq:{{{class}}}|Death Knight|1|{{#ifeq:{{{class}}}|Necromancer|1|{{#ifeq:{{{class}}}|Overlord|2|{{#ifeq:{{{class}}}|Warlock|0|{{#ifeq:{{{class}}}|Barbarian|4|{{#ifeq:{{{class}}}|Battle Mage|2|{{#ifeq:{{{class}}}|Beastmaster|0|{{#ifeq:{{{class}}}|Witch|0|{{#ifeq:{{{class}}}|Planeswalker|3|{{#ifeq:{{{class}}}|Elementalist|0|{{#ifeq:{{{class}}}|Captain|3|{{#ifeq:{{{class}}}|Navigator|2|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}  
| style="width:34px;"| [[File: Defense small.png|Defense|link=Primary skill]]
| style="width:34px;"| [[File: Defense small.png|Defense|link=Primary skill]]
| style="width:34px; padding-left:11px;"| {{#ifeq:{{{class}}}|Knight|2|{{#ifeq:{{{class}}}|Cleric|0|{{#ifeq:{{{class}}}|Ranger|3|{{#ifeq:{{{class}}}|Druid|2|{{#ifeq:{{{class}}}|Alchemist|1|{{#ifeq:{{{class}}}|Wizard|0|{{#ifeq:{{{class}}}|Demoniac|2|{{#ifeq:{{{class}}}|Heretic|1|{{#ifeq:{{{class}}}|Death Knight|2|{{#ifeq:{{{class}}}|Necromancer|0|{{#ifeq:{{{class}}}|Overlord|2|{{#ifeq:{{{class}}}|Warlock|0|{{#ifeq:{{{class}}}|Barbarian|0|{{#ifeq:{{{class}}}|Battle Mage|1|{{#ifeq:{{{class}}}|Beastmaster|4|{{#ifeq:{{{class}}}|Witch|1|{{#ifeq:{{{class}}}|Planeswalker|1|{{#ifeq:{{{class}}}|Elementalist|0|{{#ifeq:{{{class}}}|Captain|0|{{#ifeq:{{{class}}}|Navigator|0|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}  
| style="width:37px; padding-left:12px;"| {{#ifeq:{{{class}}}|Knight|2|{{#ifeq:{{{class}}}|Cleric|0|{{#ifeq:{{{class}}}|Ranger|3|{{#ifeq:{{{class}}}|Druid|2|{{#ifeq:{{{class}}}|Alchemist|1|{{#ifeq:{{{class}}}|Wizard|0|{{#ifeq:{{{class}}}|Demoniac|2|{{#ifeq:{{{class}}}|Heretic|1|{{#ifeq:{{{class}}}|Death Knight|2|{{#ifeq:{{{class}}}|Necromancer|0|{{#ifeq:{{{class}}}|Overlord|2|{{#ifeq:{{{class}}}|Warlock|0|{{#ifeq:{{{class}}}|Barbarian|0|{{#ifeq:{{{class}}}|Battle Mage|1|{{#ifeq:{{{class}}}|Beastmaster|4|{{#ifeq:{{{class}}}|Witch|1|{{#ifeq:{{{class}}}|Planeswalker|1|{{#ifeq:{{{class}}}|Elementalist|0|{{#ifeq:{{{class}}}|Captain|0|{{#ifeq:{{{class}}}|Navigator|0|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}  
| style="width:34px;"| [[File: Power small.png|Spell Power|link=Primary skill]]
| style="width:34px;"| [[File: Power small.png|Spell Power|link=Primary skill]]
| style="width:34px; padding-left:11px;"| {{#ifeq:{{{class}}}|Knight|1|{{#ifeq:{{{class}}}|Cleric|2|{{#ifeq:{{{class}}}|Ranger|1|{{#ifeq:{{{class}}}|Druid|1|{{#ifeq:{{{class}}}|Alchemist|2|{{#ifeq:{{{class}}}|Wizard|2|{{#ifeq:{{{class}}}|Demoniac|1|{{#ifeq:{{{class}}}|Heretic|2|{{#ifeq:{{{class}}}|Death Knight|2|{{#ifeq:{{{class}}}|Necromancer|2|{{#ifeq:{{{class}}}|Overlord|1|{{#ifeq:{{{class}}}|Warlock|3|{{#ifeq:{{{class}}}|Barbarian|1|{{#ifeq:{{{class}}}|Battle Mage|1|{{#ifeq:{{{class}}}|Beastmaster|1|{{#ifeq:{{{class}}}|Witch|2|{{#ifeq:{{{class}}}|Planeswalker|1|{{#ifeq:{{{class}}}|Elementalist|3|{{#ifeq:{{{class}}}|Captain|2|{{#ifeq:{{{class}}}|Navigator|1|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}  
| style="width:37px; padding-left:12px;"| {{#ifeq:{{{class}}}|Knight|1|{{#ifeq:{{{class}}}|Cleric|2|{{#ifeq:{{{class}}}|Ranger|1|{{#ifeq:{{{class}}}|Druid|1|{{#ifeq:{{{class}}}|Alchemist|2|{{#ifeq:{{{class}}}|Wizard|2|{{#ifeq:{{{class}}}|Demoniac|1|{{#ifeq:{{{class}}}|Heretic|2|{{#ifeq:{{{class}}}|Death Knight|2|{{#ifeq:{{{class}}}|Necromancer|2|{{#ifeq:{{{class}}}|Overlord|1|{{#ifeq:{{{class}}}|Warlock|3|{{#ifeq:{{{class}}}|Barbarian|1|{{#ifeq:{{{class}}}|Battle Mage|1|{{#ifeq:{{{class}}}|Beastmaster|1|{{#ifeq:{{{class}}}|Witch|2|{{#ifeq:{{{class}}}|Planeswalker|1|{{#ifeq:{{{class}}}|Elementalist|3|{{#ifeq:{{{class}}}|Captain|2|{{#ifeq:{{{class}}}|Navigator|1|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}  
| style="width:34px;"| [[File: Knowledge small.png|Knowledge|link=Primary skill]]
| style="width:34px;"| [[File: Knowledge small.png|Knowledge|link=Primary skill]]
| style="width:34px; padding-left:11px;"| {{#ifeq:{{{class}}}|Knight|1|{{#ifeq:{{{class}}}|Cleric|2|{{#ifeq:{{{class}}}|Ranger|1|{{#ifeq:{{{class}}}|Druid|2|{{#ifeq:{{{class}}}|Alchemist|2|{{#ifeq:{{{class}}}|Wizard|3|{{#ifeq:{{{class}}}|Demoniac|1|{{#ifeq:{{{class}}}|Heretic|1|{{#ifeq:{{{class}}}|Death Knight|1|{{#ifeq:{{{class}}}|Necromancer|2|{{#ifeq:{{{class}}}|Overlord|1|{{#ifeq:{{{class}}}|Warlock|2|{{#ifeq:{{{class}}}|Barbarian|1|{{#ifeq:{{{class}}}|Battle Mage|1|{{#ifeq:{{{class}}}|Beastmaster|1|{{#ifeq:{{{class}}}|Witch|2|{{#ifeq:{{{class}}}|Planeswalker|1|{{#ifeq:{{{class}}}|Elementalist|3|{{#ifeq:{{{class}}}|Captain|1|{{#ifeq:{{{class}}}|Navigator|2|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
| style="width:37px; padding-left:12px;"| {{#ifeq:{{{class}}}|Knight|1|{{#ifeq:{{{class}}}|Cleric|2|{{#ifeq:{{{class}}}|Ranger|1|{{#ifeq:{{{class}}}|Druid|2|{{#ifeq:{{{class}}}|Alchemist|2|{{#ifeq:{{{class}}}|Wizard|3|{{#ifeq:{{{class}}}|Demoniac|1|{{#ifeq:{{{class}}}|Heretic|1|{{#ifeq:{{{class}}}|Death Knight|1|{{#ifeq:{{{class}}}|Necromancer|2|{{#ifeq:{{{class}}}|Overlord|1|{{#ifeq:{{{class}}}|Warlock|2|{{#ifeq:{{{class}}}|Barbarian|1|{{#ifeq:{{{class}}}|Battle Mage|1|{{#ifeq:{{{class}}}|Beastmaster|1|{{#ifeq:{{{class}}}|Witch|2|{{#ifeq:{{{class}}}|Planeswalker|1|{{#ifeq:{{{class}}}|Elementalist|3|{{#ifeq:{{{class}}}|Captain|1|{{#ifeq:{{{class}}}|Navigator|2|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
|}
|}


Line 116: Line 116:


{{{!}} border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;"  
{{{!}} border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;"  
{{!}} align=center width=85 {{!}} {{{s_min|Minimum}}}
{{!}} align=center width=89 {{!}} {{{s_min|Minimum}}}
{{!}} align=center width=80 {{!}} {{{s_max|Maximum}}}
{{!}} align=center width=85 {{!}} {{{s_max|Maximum}}}
{{!}} align=center width=85 {{!}} {{{s_hota|HotA}}} {{withhota}}
{{!}} align=center width=89 {{!}} {{{s_hota|HotA}}} {{withhota}}
{{!-}}
{{!-}}
{{!}} align=center width=85 {{!}} {{{min_mp|}}}
{{!}} align=center width=89 {{!}} {{{min_mp|}}}
{{!}} align=center width=80 {{!}} {{{max_mp|}}}
{{!}} align=center width=85 {{!}} {{{max_mp|}}}
{{!}} align=center width=85 {{!}} {{{hota_mp|}}}
{{!}} align=center width=89 {{!}} {{{hota_mp|}}}
{{!}}} }}}
{{!}}} }}}
|-
|-
Line 213: Line 213:
  | s_mp      =
  | s_mp      =
  }}
  }}
|}
|}


[[Category: Hero templates]]
[[Category: Hero templates]]
[[Category: Misc templates|Hero]]</noinclude>
[[Category: Misc templates|Hero]]</noinclude>

Revision as of 05:54, 20 December 2022


How to use

The code is copied at the beginning of the hero's article, and fill in the missing information. It should be noticed, that the factors below are case sensitive meaning, that "Town" is not the same as "town".

{{Hero
 | town       = 
 | class      = 
 | gender     = 
 | race       = 
 | specialty  = 
 | s_text     = 
 | skill_1    = 
 | skill_2    = 
 | spell      =
 | warmachine =
 | min_mp     =
 | max_mp     =
 | hota_mp    =
 | s_mp       =
}}

If the hero does not have a starting spell or war machine then the following parameters should be defined without any value:

| nospell    =
| nowar      =

For all heroes amount of starting movement points depends on their starting army: if they got a slow creature in starting army - they start with less movement points. In HotA Horn of the Abyss all heroes are guaranteed to start with a certain set of creatures, so their starting movement points are constant. For all heroes that were introduced in HotA Horn of the Abyss parameter s_mp must be replaced with s_hota_mp with defined value.

 | s_hota_mp = 

If for some reason pictures of hero or specialty does not appear automatically, you can add the following rows:

 | picture       = 
 | specialty_pic = 

Also, the following lines are available:

 | name          = 
This is an example what the page will look like.
Adelaide the Cleric
Basic information:
Adelaide Class: Cleric
Gender: Female
Race: Human
Caught at sea during a storm, Adelaide was shipwrecked on the shores of Vori, home of the Snow Elves. She trained with them for some twenty years, and upon her return to Erathia discovered that no time had passed in her absence.
Specialty: Frost Ring
Specialty Frost Ring Casts Frost Ring with increased effect, based on hero level compared to the level of the target unit.
Starting primary skills:
Attack 1 Defense 0 Spell Power 2 Knowledge 2
Starting secondary skill:
Advanced Wisdom  Advanced Wisdom
Starting troops:
Pikeman Pikeman 10–20 Always
Archer Archer 4–7 75%
Griffin Griffin 2–3 25%
Starting troops Horn of the Abyss:
Pikeman Pikeman 300–999 Always
Archer Archer 44–777 Always
Griffin Griffin 20–30 Always
Starting spell:
Frost Ring Frost Ring
Starting movement points:
Minimum Maximum HotA Horn of the Abyss
1560 1560 1560
Adelaide the Cleric is a Castle hero. Adelaide starts with a spell book and the spell Frost Ring.