Template:Hero: Difference between revisions
m (add to example) |
m (Formatting) |
||
Line 158: | Line 158: | ||
|} | |} | ||
=== Hide components === | |||
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). | |||
=== 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 that were introduced in HotA{{-wh}} parameter s_mp must be replaced with s_hota_mp with defined value. | 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 that were introduced in HotA{{-wh}} parameter s_mp must be replaced with s_hota_mp with defined value. | ||
{| | {| | ||
Line 170: | Line 170: | ||
|} | |} | ||
If for some reason | === Other Options === | ||
If for some reason certain parameters do not appear automatically, you can add the following rows: | |||
{| | {| | ||
|<pre> | picture = | |<pre> | picture = | ||
| specialty_pic = | | specialty_pic = | ||
| name = </pre> | |||
|} | |} | ||
== Example == | |||
=== Normal Case === | |||
{{Hero | |||
| name = Adelaide | | name = Adelaide | ||
| picture = Adelaide | | picture = Adelaide | ||
Line 212: | Line 208: | ||
| hota_mp = 1560 | | hota_mp = 1560 | ||
| s_mp = | | s_mp = | ||
}} | |||
== Lorem ipsum == | == Lorem ipsum == | ||
Line 219: | Line 215: | ||
* text 3 | * text 3 | ||
|} | {{clear|left}} | ||
=== Advanced Case === | |||
{{Hero | |||
| name = Boyd | |||
| picture = Boyd | |||
| town = Factory | |||
| class = Death Knight | |||
| gender = Male | |||
| race = Human | |||
| biography = 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 | |||
| s_text = Increases the [[speed]] of [[Skeleton and Skeleton Warrior|Skeletons or Skeleton Warriors]] by 1 and their [[Attack]] and [[Defense]] skills for each level attained after 1st level. | |||
| skill_1 = Basic Necromancy | |||
| skill_2 = Basic Armorer | |||
| troop_1 = Skeleton | |||
| notroop_2 = | |||
| troop_3 = Sandworm | |||
| nmb_1 = 78 | |||
| nmb_2 = 9 | |||
| nmb_3 = 9 | |||
| chance_2 = Always | |||
| chance_3 = Always | |||
| spell = Shield | |||
| nowar = | |||
| no_hota_starting_troops = | |||
| notext = | |||
}} | |||
{{Hero | |||
| name = Boyd | |||
| picture = Boyd | |||
| town = Necropolis | |||
| class = Death Knight | |||
| gender = Male | |||
| race = Human | |||
| biography = {{-}} | |||
| specialty = Liches | |||
| s_text = Increases the [[speed]] of [[Lich and Power Lich|Liches or Power Liches]] by 1 and their [[Attack]] and [[Defense]] skills by 5% for every 5 levels (rounded up). | |||
| skill_1 = Advanced Fire Magic | |||
| skill_2 = Advanced Earth Magic | |||
| troop_1 = Skeleton Warrior | |||
| troop_2 = Ghost Dragon | |||
| troop_3 = Olgoi-Khorkhoi | |||
| nmb_1 = 910 | |||
| nmb_2 = 12 | |||
| nmb_3 = 96 | |||
| chance_2 = Always | |||
| chance_3 = Always | |||
| spell = Stone Skin | |||
| nowar = | |||
| no_hota_starting_troops = | |||
| notext = | |||
}} | |||
[[Category: Hero templates]]</noinclude> | [[Category: Hero templates]]</noinclude> |
Revision as of 16:08, 25 April 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 = | min_mp = | max_mp = | hota_mp = | s_mp = }} |
Hide components
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).
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 = |
Other Options
If for some reason certain parameters do not appear automatically, you can add the following rows:
| picture = | specialty_pic = | name = |
Example
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 | |||||||||||
| |||||||||||
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.
Lorem ipsum
- text 1
- text 2
- text 3
Advanced Case
Boyd the Death Knight | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
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: | ||||||||||
| ||||||||||
Starting movement points: | ||||||||||
|
Boyd the Death Knight | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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: | |||||||||||
| |||||||||||
Starting movement points: | |||||||||||
|