Template:Hero: Difference between revisions
(Formatting. remove need for nowar=/nospell=/notroop params) |
(Content switch movement point and remove extra params) |
||
Line 113: | Line 113: | ||
| <center>[[{{{s_link|{{{warmachine}}}}}}|{{{warmachine}}}]] | | <center>[[{{{s_link|{{{warmachine}}}}}}|{{{warmachine}}}]] | ||
| <center>{{{hota_wm|{{swh|Always|88%}}}}} | | <center>{{{hota_wm|{{swh|Always|88%}}}}} | ||
|- | |- | ||
! colspan=3 bgcolor={{green 2}} | Starting [[Movement|Movement Points]]: | |||
|- | |- | ||
| colspan=3 style="text-align:center;" | {{{s_mp|}}} | |||
|}{{{notext|'''{{{name|{{PAGENAME}}}}}''' the [[{{{class}}}]] is {{#ifeq:{{{town}}}|Inferno|an|a}} [[{{{town}}}]] [[List of heroes|hero]]. {{{nospell|{{{name|{{PAGENAME}}}}} starts with a [[spell book]] and the spell [[{{{s_link|{{{spell}}}}}}|{{{spell}}}]].}}} }}}</includeonly><noinclude> | |}{{{notext|'''{{{name|{{PAGENAME}}}}}''' the [[{{{class}}}]] is {{#ifeq:{{{town}}}|Inferno|an|a}} [[{{{town}}}]] [[List of heroes|hero]]. {{{nospell|{{{name|{{PAGENAME}}}}} starts with a [[spell book]] and the spell [[{{{s_link|{{{spell}}}}}}|{{{spell}}}]].}}} }}}</includeonly><noinclude> | ||
Line 147: | Line 126: | ||
{| | {| | ||
| <pre>{{Hero | | <pre>{{Hero | ||
| town = | | town = | ||
| class = | | class = | ||
Line 159: | Line 136: | ||
| spell = | | spell = | ||
| warmachine = | | warmachine = | ||
| s_mp = | | s_mp = | ||
}}</pre> | }}</pre> | ||
Line 171: | Line 145: | ||
=== HotA Movement Points === | === 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. | 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. | ||
=== Optional components === | === Optional components === | ||
Line 226: | Line 197: | ||
| 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 228: | ||
| chance_3 = Always | | chance_3 = Always | ||
| spell = Shield | | spell = Shield | ||
| | | s_mp = 1234 | ||
| notext = | | notext = | ||
}} | }} | ||
Line 288: | Line 256: | ||
| chance_3 = Always | | chance_3 = Always | ||
| spell = Stone Skin | | spell = Stone Skin | ||
| | | s_mp = 1234 | ||
| notext = | | notext = | ||
}} | }} | ||
Line 324: | Line 292: | ||
| chance_3 = Always | | chance_3 = Always | ||
| warmachine = Ballista | | warmachine = Ballista | ||
| | | s_mp = 1560 | ||
| notext = | | notext = | ||
}} | }} | ||
Line 351: | Line 318: | ||
| nmb_3 = 3–6 | | nmb_3 = 3–6 | ||
| warmachine = First Aid Tent | | warmachine = First Aid Tent | ||
| | | s_mp = 1700 | ||
| notext = | | notext = | ||
}} | }} | ||
Line 376: | Line 342: | ||
| nmb_2 = 4–7 | | nmb_2 = 4–7 | ||
| nmb_3 = 2–3 | | nmb_3 = 2–3 | ||
| | | s_mp = 1560 | ||
| notext = | | notext = | ||
}} | }} | ||
Line 400: | Line 365: | ||
| nmb_3 = 3–4 | | nmb_3 = 3–4 | ||
| spell = Magic Arrow | | spell = Magic Arrow | ||
| | | s_mp = 1560 | ||
| notext = | | notext = | ||
}} | }} | ||
Line 427: | Line 391: | ||
| 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> |
Revision as of 14:03, 6 December 2024
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 = | s_mp = }} |
Hide components
The following parameters defined without any value hide certain elements of the template:
- notext: No Intro text to the right (useful for showing different flavors of a hero).
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 all heroes are guaranteed to start with a certain set of creatures, so their starting movement points are constant.
Optional components
- 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
If for some reason certain parameters do not appear automatically, you can add the following rows:
| picture = | specialty_pic = | name = |
Examples
Normal Case
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 |
Adelaide the Cleric is a Castle hero. Adelaide starts with a spell book and the spell Frost Ring.
Blah Blah Blah
- text 1
- text 2
- text 3
Flavor Case
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
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: | |||||||||||||||||
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: | ||||||||||
Starting Movement Points: | ||||||||||
1700 |
Content Switch image/specialty/skills
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 |