Template:Hero: Difference between revisions
No edit summary |
m (switched war machines to use portraits) |
||
(7 intermediate revisions by one other user not shown) | |||
Line 77: | Line 77: | ||
| {{Cn|{{{troop_2}}}|image={{{troop_2_img|{{{troop_2}}}}}}}} | | {{Cn|{{{troop_2}}}|image={{{troop_2_img|{{{troop_2}}}}}}}} | ||
| style="padding-left:5px" | {{{nmb_2|}}} | | style="padding-left:5px" | {{{nmb_2|}}} | ||
| style="padding-left:5px" | {{{chance_2|88%}}}{{#if:{{{hota_same_troops|}}}|{{-}}''(Always{{-wh}})''|}} | | style="padding-left:5px" | {{{chance_2|88%}}}{{#if:{{{hota_same_troops|}}}|{{showwithhota|{{-}}''(Always{{-wh}})''}}|}} | ||
|- {{#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}}}}}}}} | ||
| style="padding-left:5px" | {{{nmb_3|}}} | | style="padding-left:5px" | {{{nmb_3|}}} | ||
| style="padding-left:5px" | {{{chance_3|25%}}}{{#if:{{{hota_same_troops|}}}|{{-}}''(Always{{-wh}})''|}} | | style="padding-left:5px" | {{{chance_3|25%}}}{{#if:{{{hota_same_troops|}}}|{{showwithhota|{{-}}''(Always{{-wh}})''}}|}} | ||
|- {{#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}}}}}}}} | ||
Line 126: | Line 126: | ||
| colspan=3 align=center bgcolor={{green 2}} | {{{nowar|'''Starts with:'''}}} | | colspan=3 align=center bgcolor={{green 2}} | {{{nowar|'''Starts with:'''}}} | ||
|- | |- | ||
{{{nowar|{{!}} [[File:{{{warmachine|}}}. | {{{nowar|{{!}} [[File:Creature portrait {{{warmachine|}}} small.gif|{{{warmachine|}}}|link={{{s_link|{{{warmachine}}}}}}]]}}} | ||
{{{nowar|{{!}} <center>[[{{{s_link|{{{warmachine}}}}}}|{{{warmachine}}}]]}}} | {{{nowar|{{!}} <center>[[{{{s_link|{{{warmachine}}}}}}|{{{warmachine}}}]]}}} | ||
{{{nowar|{{!}} <center>{{{hota_wm|88%<br />''(Always{{-wh}})''}}}}}} | {{{nowar|{{!}} <center>{{{hota_wm|88%<br />{{showwithhota|''(Always{{-wh}})''}}}}}}}} | ||
|- | |- | ||
Line 140: | Line 140: | ||
{{!}} align=center width=89 {{!}} {{{s_min|Minimum}}} | {{!}} align=center width=89 {{!}} {{{s_min|Minimum}}} | ||
{{!}} align=center width=85 {{!}} {{{s_max|Maximum}}} | {{!}} align=center width=85 {{!}} {{{s_max|Maximum}}} | ||
{{!}} align=center width=89 {{!}} {{{s_hota|HotA}}} {{withhota}} | {{!}} class='onlyhota' align=center width=89 {{!}} {{{s_hota|HotA}}} {{withhota}} | ||
{{!-}} | {{!-}} | ||
{{!}} align=center width=89 {{!}} {{{min_mp|}}} | {{!}} align=center width=89 {{!}} {{{min_mp|}}} | ||
{{!}} align=center width=85 {{!}} {{{max_mp|}}} | {{!}} align=center width=85 {{!}} {{{max_mp|}}} | ||
{{!}} align=center width=89 {{!}} {{{hota_mp|}}} | {{!}} class='onlyhota' align=center width=89 {{!}} {{{hota_mp|}}} | ||
{{!}}} }}} | {{!}}} }}} | ||
|- | |- |
Latest revision as of 19:38, 12 September 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 = | min_mp = | max_mp = | hota_mp = | s_mp = }} |
Hide components[edit | hide]
The following parameters defined without any value hide certain elements of the template:
- nospell: No spell
- nowar: No War Machine
- notext: No Intro text to the right (useful for showing different flavors of a hero).
- no_hota_starting_troops: HotA troops are the same as normal troops.
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. 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[edit | hide]
- 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
- 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 = |
Example[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 | |||||||||||
| |||||||||||
Starting primary skills: | |||||||||||
| |||||||||||
Starting secondary skill: | |||||||||||
![]() | |||||||||||
Starting troops: | |||||||||||
| |||||||||||
Starting troops ![]() | |||||||||||
| |||||||||||
Starting 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[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 | ||||||||||
| ||||||||||
Starting primary skills: | ||||||||||
| ||||||||||
Starting secondary skills: | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
Starting troops: | ||||||||||
| ||||||||||
Starting spell: | ||||||||||
![]() |
Shield | |||||||||
Starting movement points: | ||||||||||
|
Boyd the Death Knight (Tomb Raiders) | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Basic information: | |||||||||||
![]() |
Class: | Death Knight | |||||||||
Gender: | Male | ||||||||||
Race: | Human | ||||||||||
Specialty: Liches | |||||||||||
| |||||||||||
Starting primary skills: | |||||||||||
| |||||||||||
Starting secondary skills: | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
Starting troops: | |||||||||||
| |||||||||||
Starting spell: | |||||||||||
![]() |
Stone Skin | ||||||||||
Starting movement points: | |||||||||||
|
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 | |||||||||||||||||
| |||||||||||||||||
Starting Level: | |||||||||||||||||
![]() ![]() | |||||||||||||||||
Starting primary skills: | |||||||||||||||||
| |||||||||||||||||
Starting secondary skills: | |||||||||||||||||
![]() | |||||||||||||||||
![]() | |||||||||||||||||
![]() | |||||||||||||||||
![]() | |||||||||||||||||
![]() | |||||||||||||||||
![]() | |||||||||||||||||
Starting troops: | |||||||||||||||||
| |||||||||||||||||
Starts with: | |||||||||||||||||
![]() |
(Always ![]() | ||||||||||||||||
Starting movement points: | |||||||||||||||||
|