Template:Hero: Difference between revisions
mNo edit summary |
(Formatting. remove need for nowar=/nospell=/notroop params) |
||
Line 2: | Line 2: | ||
! 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|}}})}} | ||
|- | |- | ||
! colspan=3 bgcolor={{green 2}} | Basic Information: | |||
|- | |- | ||
| rowspan=3 | {{swh|noicon=|[[File: Hero {{{picture|{{PAGENAME}}}}}{{{hpicture|}}}.png|{{{name|{{PAGENAME}}}}}]]|[[File: Hero {{{picture|{{PAGENAME}}}}}.png|{{{name|{{PAGENAME}}}}}]]}} | | rowspan=3 | {{swh|noicon=|[[File: Hero {{{picture|{{PAGENAME}}}}}{{{hpicture|}}}.png|{{{name|{{PAGENAME}}}}}]]|[[File: Hero {{{picture|{{PAGENAME}}}}}.png|{{{name|{{PAGENAME}}}}}]]}} | ||
Line 15: | Line 15: | ||
|- {{#if: {{{biography|}}} | | style="display: none;"}} | |- {{#if: {{{biography|}}} | | style="display: none;"}} | ||
| colspan=3 valign=top style="padding-left:3px; padding-right:3px; font-size:90%;" | ''{{{biography|}}}'' | | colspan=3 valign=top style="padding-left:3px; padding-right:3px; font-size:90%;" | ''{{{biography|}}}'' | ||
|- | |- | ||
! colspan=3 bgcolor={{green 2}} | [[Hero specialty|<span style="color:darkolivegreen">Specialty</span>]]: [[{{{specialty|}}}]] | |||
|- | |- | ||
| colspan=3 | | | colspan=3 | | ||
Line 26: | Line 27: | ||
|- {{#if: {{{level|}}} | | style="display: none;"}} | |- {{#if: {{{level|}}} | | style="display: none;"}} | ||
! colspan=3 bgcolor={{green 2}} | Level: | |||
|- {{#if: {{{level|}}} | | style="display: none;"}} | |- {{#if: {{{level|}}} | | style="display: none;"}} | ||
| colspan=3 align=center| {{Exp2|0=}} Level {{{level|}}} {{Exp2|0=}} | | colspan=3 align=center| {{Exp2|0=}} Level {{{level|}}} {{Exp2|0=}} | ||
|- | |- | ||
! colspan=3 bgcolor={{green 2}} | Primary Skills: | |||
|- | |- | ||
| colspan=3 | | | colspan=3 | | ||
Line 47: | Line 48: | ||
|- | |- | ||
! colspan=3 bgcolor={{green 2}} | Secondary Skills: | |||
|- class='{{sourceToggle||{{{sk1only}}}}}' | |- class='{{sourceToggle||{{{sk1only}}}}}' | ||
| colspan=3 | {{Ss3|{{#explode:{{{skill_1}}}| |1|2}}|{{#explode:{{{skill_1}}}| |0}}}}{{{skill_1+|}}} | | colspan=3 | {{Ss3|{{#explode:{{{skill_1}}}| |1|2}}|{{#explode:{{{skill_1}}}| |0}}}}{{{skill_1+|}}} | ||
Line 66: | Line 67: | ||
|- | |- | ||
! colspan=3 bgcolor={{green 2}} | Troops: | |||
|- | |- | ||
| colspan=3 | | | colspan=3 | | ||
Line 100: | Line 101: | ||
|} | |} | ||
|- | |- {{#if: {{{spell|}}} | | style="display: none;"}} | ||
! colspan=3 bgcolor={{green 2}} | Spell: | |||
| | |- {{#if: {{{spell|}}} | | style="display: none;"}} | ||
| [[File:{{{spell|}}}.png|{{{spell|}}}|link={{{s_link|{{{spell}}}}}}]] | |||
| colspan=2 | [[{{{s_link|{{{spell}}}}}}|{{{spell}}}]] | |||
| | |||
|- {{#if: {{{warmachine|}}} | | style="display: none;"}} | |||
| | ! colspan=3 bgcolor={{green 2}} | War Machine: | ||
|- {{#if: {{{warmachine|}}} | | style="display: none;"}} | |||
| [[File:Creature portrait {{{warmachine|}}} small.gif|{{{warmachine|}}}|link={{{s_link|{{{warmachine}}}}}}]] | |||
| <center>[[{{{s_link|{{{warmachine}}}}}}|{{{warmachine}}}]] | |||
| <center>{{{hota_wm|{{swh|Always|88%}}}}} | |||
|- | |- | ||
Line 145: | Line 147: | ||
{| | {| | ||
| <pre>{{Hero | | <pre>{{Hero | ||
| name = | |||
| picture = | |||
| town = | | town = | ||
| class = | | class = | ||
Line 164: | Line 168: | ||
=== Hide components === | === Hide components === | ||
The following parameters defined without any value hide certain elements of the template: | 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). | * '''notext''': No Intro text to the right (useful for showing different flavors of a hero). | ||
=== HotA Movement Points === | === HotA Movement Points === | ||
Line 224: | Line 225: | ||
| nmb_2 = {{swh|44-777|4–7}} | | nmb_2 = {{swh|44-777|4–7}} | ||
| nmb_3 = {{swh|20-30|2–3}} | | nmb_3 = {{swh|20-30|2–3}} | ||
| chance_2 = 75% | | chance_2 = 75% | ||
| min_mp = 1560 | | min_mp = 1560 | ||
Line 253: | Line 253: | ||
| skill_2 = Basic Armorer | | skill_2 = Basic Armorer | ||
| troop_1 = Skeleton | | troop_1 = Skeleton | ||
| troop_3 = Sandworm | | troop_3 = Sandworm | ||
| nmb_1 = 78 | | nmb_1 = 78 | ||
Line 262: | Line 261: | ||
| spell = Shield | | spell = Shield | ||
| s_hota_mp = | | s_hota_mp = | ||
| notext = | | notext = | ||
}} | }} | ||
Line 291: | Line 289: | ||
| spell = Stone Skin | | spell = Stone Skin | ||
| s_hota_mp = | | s_hota_mp = | ||
| notext = | | notext = | ||
}} | }} | ||
Line 327: | Line 324: | ||
| chance_3 = Always | | chance_3 = Always | ||
| warmachine = Ballista | | warmachine = Ballista | ||
| s_hota_mp = | | s_hota_mp = | ||
| s_hota2_mp = 1560 | | s_hota2_mp = 1560 | ||
| notext = | |||
}} | }} | ||
{{Hero | {{Hero | ||
Line 350: | Line 347: | ||
| spell = Lightning Bolt | | spell = Lightning Bolt | ||
| troop_1 = Centaur | | troop_1 = Centaur | ||
| troop_3 = Wood Elf | | troop_3 = Wood Elf | ||
| nmb_1 = 12–24 | | nmb_1 = 12–24 | ||
Line 380: | Line 376: | ||
| nmb_2 = 4–7 | | nmb_2 = 4–7 | ||
| nmb_3 = 2–3 | | nmb_3 = 2–3 | ||
| s_hota_mp = | | s_hota_mp = | ||
| s_hota2_mp = 1560 | | s_hota2_mp = 1560 | ||
| notext = | |||
}} | }} | ||
{{Hero | {{Hero | ||
Line 405: | Line 400: | ||
| nmb_3 = 3–4 | | nmb_3 = 3–4 | ||
| spell = Magic Arrow | | spell = Magic Arrow | ||
| s_hota_mp = | | s_hota_mp = | ||
| s_hota2_mp = 1560 | | s_hota2_mp = 1560 | ||
| notext = | |||
}} | }} | ||
{{Hero | {{Hero | ||
Line 432: | Line 427: | ||
| nmb_2 = 3–5 | | nmb_2 = 3–5 | ||
| nmb_3 = {{swh|2-4|3–6}} | | nmb_3 = {{swh|2-4|3–6}} | ||
| min_mp = 1500 | | min_mp = 1500 | ||
| max_mp = 1700 | | max_mp = 1700 | ||
| hota_mp = 1500 | | hota_mp = 1500 | ||
| s_mp = | | s_mp = | ||
| notext = | |||
}} | }} | ||
[[Category: Hero templates]]</noinclude> | [[Category: Hero templates]]</noinclude> |
Revision as of 21:39, 5 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 | name = | picture = | town = | class = | gender = | race = | specialty = | s_text = | skill_1 = | skill_2 = | spell = | warmachine = | min_mp = | max_mp = | hota_mp = | 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. For all heroes that were introduced in HotA parameter s_mp must be replaced with s_hota_mp with defined value.
| s_hota_mp = |
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: | |||||||||||
|
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: | ||||||||||
|
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: | |||||||||||
|
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: | |||||||||||||||||
|
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: | ||||||||||
|
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: | |||||||||||
|
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: | |||||||||||
|
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: | |||||||||||
|