Template:Hero: Difference between revisions
Jump to navigation
Jump to search
(Formatting. remove need for nowar=/nospell=/notroop params) |
m (Spacing) |
||
(7 intermediate revisions by 2 users not shown) | |||
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: | <includeonly>{| border=0 cellpadding=0 cellspacing=0 style="background:#{{green 3}}; color:darkolivegreen; border:1px solid; border-color:rgba(0,0,0,0); width:310px; margin-right: {{{marginR|20}}}px; float:{{{float|left}}}" | ||
! colspan=3 style="height: 25px; background:#{{Green 1}}; color:#{{Green 2}};" | {{{name|{{PAGENAME}}}}} the {{{classname|{{{class|}}}}}}{{#switch: {{{flavor|}}}| = | <br>({{{flavor|}}})}} | ! colspan=3 style="height: 25px; background:#{{Green 1}}; color:#{{Green 2}};" | {{{name|{{PAGENAME}}}}} the {{{classname|{{{class|}}}}}}{{#switch: {{{flavor|}}}| = | <br>({{{flavor|}}})}} | ||
|- | |- | ||
Line 37: | Line 37: | ||
{| cellpadding=0 cellspacing=0 | {| cellpadding=0 cellspacing=0 | ||
| style="width: | | style="width:40px;"| [[File: Attack small.png|Attack|link=Primary skill]] | ||
| style="width: | | style="width:32px; padding-left:12px;"| {{{atk|{{#switch: {{{class|}}}| Knight = 2 | Cleric = 1 | Ranger = 1 | Druid = 0 | Alchemist = 1 | Wizard = 0 | Demoniac = 2 | Heretic = 1 | Death Knight = 1 | Necromancer = 1 | Overlord = 2 | Warlock = 0 | Barbarian = 4 | Battle Mage = 2| Beastmaster = 0 | Witch = 0 | Planeswalker = 3 | Elementalist = 0 | Captain = 3 | Navigator = 2 | Artificer = 0 | Mercenary = 3 | Sorceress (Campaign) = 0 | }}}}} | ||
| style="width: | | style="width:40px;"| [[File: Defense small.png|Defense|link=Primary skill]] | ||
| style="width: | | style="width:32px; padding-left:12px;"| {{{def|{{#switch: {{{class|}}}| Knight = 2 | Cleric = 0 | Ranger = 3 | Druid = 2 | Alchemist = 1 | Wizard = 0 | Demoniac = 2 | Heretic = 1 | Death Knight = 2 | Necromancer = 0 | Overlord = 2 | Warlock = 0 | Barbarian = 0 | Battle Mage = 1| Beastmaster = 4 | Witch = 1 | Planeswalker = 1 | Elementalist = 0 | Captain = 0 | Navigator = 0 | Artificer = 1 | Mercenary = 1 | Sorceress (Campaign) = 2 | }}}}} | ||
| style="width: | | style="width:40px;"| [[File: Power small.png|Spell Power|link=Primary skill]] | ||
| style="width: | | style="width:32px; padding-left:12px;"| {{{sp|{{#switch: {{{class|}}}| Knight = 1 | Cleric = 2 | Ranger = 1 | Druid = 1 | Alchemist = 2 | Wizard = 2 | Demoniac = 1 | Heretic = 2 | Death Knight = 2 | Necromancer = 2 | Overlord = 1 | Warlock = 3 | Barbarian = 1 | Battle Mage = 1| Beastmaster = 1 | Witch = 2 | Planeswalker = 1 | Elementalist = 3 | Captain = 2 | Navigator = 1 | Artificer = 2 | Mercenary = 1 | Sorceress (Campaign) = 1 | }}}}} | ||
| style="width: | | style="width:40px;"| [[File: Knowledge small.png|Knowledge|link=Primary skill]] | ||
| style="width: | | style="width:32px; padding-left:12px;"| {{{know|{{#switch: {{{class|}}}| Knight = 1 | Cleric = 2 | Ranger = 1 | Druid = 2 | Alchemist = 2 | Wizard = 3 | Demoniac = 1 | Heretic = 1 | Death Knight = 1 | Necromancer = 2 | Overlord = 1 | Warlock = 2 | Barbarian = 1 | Battle Mage = 1| Beastmaster = 1 | Witch = 2 | Planeswalker = 1 | Elementalist = 3 | Captain = 1 | Navigator = 2 | Artificer = 2 | Mercenary = 1 | Sorceress (Campaign) = 2 | }}}}} | ||
|} | |} | ||
Line 72: | Line 72: | ||
{| border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;" | {| border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;" | ||
|- | |- | ||
| {{Cn|{{{troop_1}}}|image={{{troop_1_img|{{{troop_1}}}}}}}} | | width=170px | {{Cn|{{{troop_1}}}|image={{{troop_1_img|{{{troop_1}}}}}}}} | ||
| | | width=65px | {{{nmb_1|}}} | ||
| {{{chance_1|Always}}} | |||
|- {{#if: {{{troop_2|}}} | | style="display: none;"}} | |- {{#if: {{{troop_2|}}} | | style="display: none;"}} | ||
| {{Cn|{{{troop_2}}}|image={{{troop_2_img|{{{troop_2}}}}}}}} | | {{Cn|{{{troop_2}}}|image={{{troop_2_img|{{{troop_2}}}}}}}} | ||
| {{{nmb_2|}}} | |||
| {{{chance_2|{{swh|Always|88%}}}}} | |||
|- {{#if: {{{troop_3|}}} | | style="display: none;"}} | |- {{#if: {{{troop_3|}}} | | style="display: none;"}} | ||
| {{Cn|{{{troop_3}}}|image={{{troop_3_img|{{{troop_3}}}}}}}} | | {{Cn|{{{troop_3}}}|image={{{troop_3_img|{{{troop_3}}}}}}}} | ||
| {{{nmb_3|}}} | |||
| {{{chance_3|{{swh|Always|25%}}}}} | |||
|- {{#if: {{{troop_4|}}} | | style="display: none;"}} | |- {{#if: {{{troop_4|}}} | | style="display: none;"}} | ||
| {{Cn|{{{troop_4}}}|image={{{troop_4_img|{{{troop_4}}}}}}}} | | {{Cn|{{{troop_4}}}|image={{{troop_4_img|{{{troop_4}}}}}}}} | ||
| {{{nmb_4|}}} | |||
| {{{chance_4|Always}}} | |||
|- {{#if: {{{troop_5|}}} | | style="display: none;"}} | |- {{#if: {{{troop_5|}}} | | style="display: none;"}} | ||
| {{Cn|{{{troop_5}}}|image={{{troop_5_img|{{{troop_5}}}}}}}} | | {{Cn|{{{troop_5}}}|image={{{troop_5_img|{{{troop_5}}}}}}}} | ||
| {{{nmb_5|}}} | |||
| {{{chance_5|Always}}} | |||
|- {{#if: {{{troop_6|}}} | | style="display: none;"}} | |- {{#if: {{{troop_6|}}} | | style="display: none;"}} | ||
| {{Cn|{{{troop_6}}}|image={{{troop_6_img|{{{troop_6}}}}}}}} | | {{Cn|{{{troop_6}}}|image={{{troop_6_img|{{{troop_6}}}}}}}} | ||
| {{{nmb_6|}}} | |||
| {{{chance_6|Always}}} | |||
|- {{#if: {{{troop_7|}}} | | style="display: none;"}} | |- {{#if: {{{troop_7|}}} | | style="display: none;"}} | ||
| {{Cn|{{{troop_7}}}|image={{{troop_7_img|{{{troop_7}}}}}}}} | | {{Cn|{{{troop_7}}}|image={{{troop_7_img|{{{troop_7}}}}}}}} | ||
| {{{nmb_7|}}} | |||
| {{{chance_7|Always}}} | |||
|} | |} | ||
Line 110: | Line 110: | ||
! colspan=3 bgcolor={{green 2}} | War Machine: | ! colspan=3 bgcolor={{green 2}} | War Machine: | ||
|- {{#if: {{{warmachine|}}} | | style="display: none;"}} | |- {{#if: {{{warmachine|}}} | | style="display: none;"}} | ||
| | | colspan=2 | {{Cn|{{{warmachine|}}}}} | ||
| | | {{{hota_wm| {{swh|Always|88%}}}}} | ||
| | |||
|- | |- | ||
! colspan=3 bgcolor={{green 2}} | Starting [[Movement|Movement Points]]: | |||
|- | |- | ||
| colspan=3 style="text-align:center;" | {{{s_mp|}}} | |||
|}</includeonly><noinclude> | |||
== How to use == | == How to use == | ||
Line 147: | Line 125: | ||
{| | {| | ||
| <pre>{{Hero | | <pre>{{Hero | ||
| town = | | town = | ||
| class = | | class = | ||
Line 159: | Line 135: | ||
| spell = | | spell = | ||
| warmachine = | | warmachine = | ||
| s_mp = | | s_mp = | ||
}}</pre> | }}</pre> | ||
|} | |} | ||
Line 203: | Line 166: | ||
| name = </pre> | | name = </pre> | ||
|} | |} | ||
=== HotA Movement Points === | |||
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]]{{-wh}} all heroes are guaranteed to start with a certain set of creatures, so their starting movement points are constant. | |||
== Examples == | == Examples == | ||
Line 226: | Line 192: | ||
| nmb_3 = {{swh|20-30|2–3}} | | nmb_3 = {{swh|20-30|2–3}} | ||
| chance_2 = 75% | | chance_2 = 75% | ||
| s_mp = 1560 | |||
| s_mp = | |||
}} | }} | ||
Line 260: | Line 223: | ||
| chance_3 = Always | | chance_3 = Always | ||
| spell = Shield | | spell = Shield | ||
| | | s_mp = 1234 | ||
| notext = | | notext = | ||
}} | }} | ||
Line 281: | Line 244: | ||
| troop_1 = Skeleton Warrior | | troop_1 = Skeleton Warrior | ||
| troop_2 = Ghost Dragon | | troop_2 = Ghost Dragon | ||
| troop_3 | | troop_3 = Olgoi-Khorkhoi | ||
| troop_4 = Bellwether Armadillo | |||
| nmb_1 = 910 | | nmb_1 = 910 | ||
| nmb_2 = 12 | | nmb_2 = 12 | ||
| nmb_3 = 96 | | nmb_3 = 96 | ||
| nmb_4 = {{swh|20-30|30-40}} | |||
| chance_2 = Always | | chance_2 = Always | ||
| chance_3 = Always | | chance_3 = {{swh|Always|76%}} | ||
| spell = Stone Skin | | spell = Stone Skin | ||
| | | s_mp = 1234 | ||
| notext = | | notext = | ||
}} | }} | ||
Line 324: | Line 289: | ||
| chance_3 = Always | | chance_3 = Always | ||
| warmachine = Ballista | | warmachine = Ballista | ||
| | | s_mp = 1560 | ||
| notext = | | notext = | ||
}} | }} | ||
Line 351: | Line 315: | ||
| nmb_3 = 3–6 | | nmb_3 = 3–6 | ||
| warmachine = First Aid Tent | | warmachine = First Aid Tent | ||
| | | s_mp = 1700 | ||
| notext = | | notext = | ||
}} | }} | ||
Line 376: | Line 339: | ||
| nmb_2 = 4–7 | | nmb_2 = 4–7 | ||
| nmb_3 = 2–3 | | nmb_3 = 2–3 | ||
| | | s_mp = 1560 | ||
| notext = | | notext = | ||
}} | }} | ||
Line 400: | Line 362: | ||
| nmb_3 = 3–4 | | nmb_3 = 3–4 | ||
| spell = Magic Arrow | | spell = Magic Arrow | ||
| | | s_mp = 1560 | ||
| notext = | | notext = | ||
}} | }} | ||
Line 427: | Line 388: | ||
| nmb_2 = 3–5 | | nmb_2 = 3–5 | ||
| nmb_3 = {{swh|2-4|3–6}} | | nmb_3 = {{swh|2-4|3–6}} | ||
| | | s_mp = {{swh|1500|1500-1700}} | ||
| notext = | | notext = | ||
}} | }} | ||
[[Category: Hero templates]]</noinclude> | [[Category: Hero templates]]</noinclude> |
Latest revision as of 21:50, 19 December 2024
How to use[edit | hide | hide all]
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 = | s_mp = }} |
Optional components[edit | hide]
- classname: An override to the displayed class name
- hpicture: set to "_(HotA)" if there is a hota version of the hero picture
- hspec: set to "_(HotA)" if there is a hota version of the specialty image
- flavor: The scenario name or version of the hero that appears in a different scenario.
- atk: Custom primary skill stat (attack)
- def: Custom primary skill stat (defense)
- sp: Custom primary skill stat (spell power)
- know: Custom primary skill stat (knowledge)
- skill_#: Replace # with the skill number 1-8
- skill_#+: Extra test to add to the skill row (e.g. for expansion symbols)
- sk#only: Set to the expansion (e.g. sod/hota) that you want to ONLY show the row for
- troop_#: Replace # with the troop number 1-8
- troop_#_img: Display an alternate (e.g. HotA) image for this troop.
- nmb_#: The number of creatures in this troop
- chance_#: The chance that this troop appears in the hero's army
- biography: If left out, removes the blank space created by an empty biography.
- marginR: Used to set a different right margin (useful for showing different flavors of a hero).
- level: Starting hero level
Other Options[edit | hide]
If for some reason certain parameters do not appear automatically, you can add the following rows:
| picture = | specialty_pic = | name = |
HotA Movement Points[edit | hide]
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 all heroes are guaranteed to start with a certain set of creatures, so their starting movement points are constant.
Examples[edit | hide]
Normal Case[edit | hide]
Adelaide the Cleric | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Basic Information: | |||||||||||
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 | |||||||||||
| |||||||||||
Primary Skills: | |||||||||||
| |||||||||||
Secondary Skills: | |||||||||||
Advanced Wisdom | |||||||||||
Troops: | |||||||||||
| |||||||||||
Spell: | |||||||||||
Frost Ring | |||||||||||
Starting Movement Points: | |||||||||||
1560 |
Blah Blah Blah
- text 1
- text 2
- text 3
Flavor Case[edit | hide]
Boyd the Death Knight (Dead or Alive) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Basic Information: | ||||||||||
Class: | Death Knight | |||||||||
Gender: | Male | |||||||||
Race: | Human | |||||||||
All scary stories feature a horseman who had been hanged, stabbed or even beheaded and now rides by night, intending to exact revenge on his killers. Nonsense, a necromancer would say, a dead man risen by himself cannot have memory or will. It may well be so, but then Boyd has scores to settle not only with the traitor who slayed him, but also with the one who denied him rest in peace. | ||||||||||
Specialty: Skeletons | ||||||||||
| ||||||||||
Primary Skills: | ||||||||||
| ||||||||||
Secondary Skills: | ||||||||||
Basic Necromancy | ||||||||||
Basic Armorer | ||||||||||
Troops: | ||||||||||
| ||||||||||
Spell: | ||||||||||
Shield | ||||||||||
Starting Movement Points: | ||||||||||
1234 |
Boyd the Death Knight (Tomb Raiders) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Basic Information: | ||||||||||||||
Class: | Death Knight | |||||||||||||
Gender: | Male | |||||||||||||
Race: | Human | |||||||||||||
Specialty: Liches | ||||||||||||||
| ||||||||||||||
Primary Skills: | ||||||||||||||
| ||||||||||||||
Secondary Skills: | ||||||||||||||
Advanced Fire Magic | ||||||||||||||
Advanced Earth Magic | ||||||||||||||
Troops: | ||||||||||||||
| ||||||||||||||
Spell: | ||||||||||||||
Stone Skin | ||||||||||||||
Starting Movement Points: | ||||||||||||||
1234 |
Advanced Case[edit | hide]
Sir Michael the Knight | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Basic Information: | |||||||||||||||||
Class: | Knight | ||||||||||||||||
Gender: | Male | ||||||||||||||||
Race: | Human | ||||||||||||||||
Christian was always more of a frontiersman than a Knight, having set foot in nearly every part of Enroth before finally settling into military service in Erathia. Though a wanderer and a bit of a dreamer, his battlefield tactics are feared throughout the world. | |||||||||||||||||
Specialty: Ballista | |||||||||||||||||
| |||||||||||||||||
Level: | |||||||||||||||||
Level 11 | |||||||||||||||||
Primary Skills: | |||||||||||||||||
| |||||||||||||||||
Secondary Skills: | |||||||||||||||||
Expert Leadership | |||||||||||||||||
Advanced Luck | |||||||||||||||||
Advanced Ballistics | |||||||||||||||||
Expert Artillery | |||||||||||||||||
Advanced Offense | |||||||||||||||||
Advanced Armorer | |||||||||||||||||
Troops: | |||||||||||||||||
| |||||||||||||||||
War Machine: | |||||||||||||||||
Ballista | Always 88% | ||||||||||||||||
Starting Movement Points: | |||||||||||||||||
1560 |
Gem the Sorceress | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Basic Information: | ||||||||||
Class: | Sorceress | |||||||||
Gender: | Female | |||||||||
Race: | Human | |||||||||
After her Deyjan raiders campaign, Gem agrees to help a wizard's anti-necromancy research by getting an Amulet of the Undertaker. | ||||||||||
Specialty: First Aid | ||||||||||
| ||||||||||
Primary Skills: | ||||||||||
| ||||||||||
Secondary Skills: | ||||||||||
Basic First Aid | ||||||||||
Basic Wisdom | ||||||||||
Troops: | ||||||||||
| ||||||||||
Spell: | ||||||||||
Lightning Bolt | ||||||||||
War Machine: | ||||||||||
First Aid Tent | Always 88% | |||||||||
Starting Movement Points: | ||||||||||
1700 |
Content Switch image/specialty/skills[edit | hide]
Sir Mullich the Knight | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Basic Information: | |||||||||||
Class: | Knight | ||||||||||
Gender: | Male | ||||||||||
Race: | Human | ||||||||||
Generally stoic, Sir Mullich is prone to spasmodic fits of uncoordinated excitement believed to intimidate his troops into working faster. | |||||||||||
Specialty: Speed | |||||||||||
| |||||||||||
Primary Skills: | |||||||||||
| |||||||||||
Secondary Skills: | |||||||||||
Advanced Leadership | |||||||||||
Troops: | |||||||||||
| |||||||||||
Starting Movement Points: | |||||||||||
1560 |
Mutare the Overlord | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Basic Information: | |||||||||||
Class: | Overlord | ||||||||||
Gender: | Female | ||||||||||
Race: | Human | ||||||||||
With her uncanny talent for commanding dragons on the field of combat, many have noticed Mutare's quick rise among the current overlords of Nighon. | |||||||||||
Specialty: Dragons | |||||||||||
| |||||||||||
Primary Skills: | |||||||||||
| |||||||||||
Secondary Skills: | |||||||||||
Basic Tactics | |||||||||||
Basic Estates | |||||||||||
Troops: | |||||||||||
| |||||||||||
Spell: | |||||||||||
Magic Arrow | |||||||||||
Starting Movement Points: | |||||||||||
1560 |
Clancy the Ranger | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Basic Information: | |||||||||||
Class: | Ranger | ||||||||||
Gender: | Male | ||||||||||
Race: | Dwarf | ||||||||||
It was by pure accident that Clancy discovered he could communicate with Unicorns, but this unique ability has served him well as he worked his way through the ranks of AvLee's Military Elite. | |||||||||||
Specialty: Unicorns | |||||||||||
| |||||||||||
Primary Skills: | |||||||||||
| |||||||||||
Secondary Skills: | |||||||||||
Basic Resistance | |||||||||||
Basic Interference | |||||||||||
Basic Pathfinding | |||||||||||
Troops: | |||||||||||
| |||||||||||
Starting Movement Points: | |||||||||||
1500 1500-1700 |