Template:Hero: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Fixed species typo.. But not for input - that would require updating all articles, and don't have time for that now)
m (add to example)
 
(282 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{| align=right border=0 cellpadding=3 cellspacing=0 style="background-color: #99FF99; border: 1px solid"
<includeonly>{| border=0 cellpadding=0 cellspacing=0 style="background:#{{green 3}}; color:darkolivegreen; border:1px solid; border-color:rgba(0,0,0,0); width:300px; margin-right: 20px; float:{{{float|left}}}"  
! colspan=3 style="height: 25px; background:#{{Green 1}}; color:lightgreen;" | {{{name|{{PAGENAME}}}}} the {{{classname|{{{class|}}}}}}
|-
|-
| colspan=3 align=center bgcolor=006400 | '''{{{name|Name}}}'''
| colspan=3 align=center bgcolor={{green 2}} | '''Basic information:'''
|- style="height: 34px;"
|-  
| rowspan=3 colspan=2| [[Image:Hero {{{picture|{{{name|}}}}}}.png|87px]]
| rowspan=3 | [[File: Hero {{{picture|{{PAGENAME}}}}}.png|{{{name|{{PAGENAME}}}}}]]
| '''Class:''' [[{{{class|}}}]]
| style="padding-left:5px"          | '''Class:'''  
|- style="height: 34px;"
| style="padding-left:5px"          | [[{{{class|}}}]]
| '''Gender:''' {{{gender|Male/Female}}}
|-  
|- style="height: 34px;"
| style="padding-left:5px"         | '''Gender:'''  
| '''Species:''' {{{spieces|Species of hero}}}
| style="padding-left:5px"          | {{{gender|}}}
|-  
| style="padding-left:5px"         | '''Race:'''
| style="padding-left:5px"          | {{{race|}}}
|-
|-
| width=56 rowspan=2 valign=top | [[Image: Specialty {{{specialty_pic|{{{specialty|<noinclude>-</noinclude>}}}}}}.png|50px]]
| colspan=3 valign=top style="padding-left:3px; padding-right:3px; font-size:90%;" | ''{{{biography|}}}''
| colspan=2          | '''[[Hero specialty|Specialty :]]''' [[Hero specialty#{{{specialty}}}|{{{specialty}}}]]<br>{{{spec_expl|Explanation}}}
|-
|-
| colspan=3 | '''Starts with:'''<br>{{{sec_skill1|}}}<br>{{{sec_skill2|<noinclude>-</noinclude>}}}
| colspan=3 align=center bgcolor={{green 2}} | '''[[Hero specialty|<span style="color:black">Specialty</span>]]:''' [[{{{specialty|}}}]]
|}<noinclude>
|-
| colspan=3 |
 
{| cellpadding=0 cellspacing=0
| valign=top | [[File: Specialty {{{specialty_pic|{{{specialty|}}}}}}.png|Specialty {{{specialty|}}}|link=Hero specialty]]
| valign=top style="border-left: 5px solid #{{Green 3}}; font-size:90%;" | {{{s_text|}}}
|}
 
|-
| colspan=3 align=center bgcolor={{green 2}} | '''Starting primary skills:'''
|-
| colspan=3 |
 
{| cellpadding=0 cellspacing=0
| style="width:34px;"| [[File: Attack small.png|Attack|link=Primary skill]]
| style="width:37px; padding-left:12px;"| {{#ifeq:{{{class}}}|Knight|2|{{#ifeq:{{{class}}}|Cleric|1|{{#ifeq:{{{class}}}|Ranger|1|{{#ifeq:{{{class}}}|Druid|0|{{#ifeq:{{{class}}}|Alchemist|1|{{#ifeq:{{{class}}}|Wizard|0|{{#ifeq:{{{class}}}|Demoniac|2|{{#ifeq:{{{class}}}|Heretic|1|{{#ifeq:{{{class}}}|Death Knight|1|{{#ifeq:{{{class}}}|Necromancer|1|{{#ifeq:{{{class}}}|Overlord|2|{{#ifeq:{{{class}}}|Warlock|0|{{#ifeq:{{{class}}}|Barbarian|4|{{#ifeq:{{{class}}}|Battle Mage|2|{{#ifeq:{{{class}}}|Beastmaster|0|{{#ifeq:{{{class}}}|Witch|0|{{#ifeq:{{{class}}}|Planeswalker|3|{{#ifeq:{{{class}}}|Elementalist|0|{{#ifeq:{{{class}}}|Captain|3|{{#ifeq:{{{class}}}|Navigator|2|{{#ifeq:{{{class}}}|Artificer|0|{{#ifeq:{{{class}}}|Mercenary|3|{{#ifeq:{{{class}}}|Sorceress&nbsp;(Campaign)&nbsp;|0|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
| style="width:34px;"| [[File: Defense small.png|Defense|link=Primary skill]]
| style="width:37px; padding-left:12px;"| {{#ifeq:{{{class}}}|Knight|2|{{#ifeq:{{{class}}}|Cleric|0|{{#ifeq:{{{class}}}|Ranger|3|{{#ifeq:{{{class}}}|Druid|2|{{#ifeq:{{{class}}}|Alchemist|1|{{#ifeq:{{{class}}}|Wizard|0|{{#ifeq:{{{class}}}|Demoniac|2|{{#ifeq:{{{class}}}|Heretic|1|{{#ifeq:{{{class}}}|Death Knight|2|{{#ifeq:{{{class}}}|Necromancer|0|{{#ifeq:{{{class}}}|Overlord|2|{{#ifeq:{{{class}}}|Warlock|0|{{#ifeq:{{{class}}}|Barbarian|0|{{#ifeq:{{{class}}}|Battle Mage|1|{{#ifeq:{{{class}}}|Beastmaster|4|{{#ifeq:{{{class}}}|Witch|1|{{#ifeq:{{{class}}}|Planeswalker|1|{{#ifeq:{{{class}}}|Elementalist|0|{{#ifeq:{{{class}}}|Captain|0|{{#ifeq:{{{class}}}|Navigator|0|{{#ifeq:{{{class}}}|Artificer|1|{{#ifeq:{{{class}}}|Mercenary|1|{{#ifeq:{{{class}}}|Sorceress&nbsp;(Campaign)&nbsp;|2|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
| style="width:34px;"| [[File: Power small.png|Spell Power|link=Primary skill]]
| style="width:37px; padding-left:12px;"| {{#ifeq:{{{class}}}|Knight|1|{{#ifeq:{{{class}}}|Cleric|2|{{#ifeq:{{{class}}}|Ranger|1|{{#ifeq:{{{class}}}|Druid|1|{{#ifeq:{{{class}}}|Alchemist|2|{{#ifeq:{{{class}}}|Wizard|2|{{#ifeq:{{{class}}}|Demoniac|1|{{#ifeq:{{{class}}}|Heretic|2|{{#ifeq:{{{class}}}|Death Knight|2|{{#ifeq:{{{class}}}|Necromancer|2|{{#ifeq:{{{class}}}|Overlord|1|{{#ifeq:{{{class}}}|Warlock|3|{{#ifeq:{{{class}}}|Barbarian|1|{{#ifeq:{{{class}}}|Battle Mage|1|{{#ifeq:{{{class}}}|Beastmaster|1|{{#ifeq:{{{class}}}|Witch|2|{{#ifeq:{{{class}}}|Planeswalker|1|{{#ifeq:{{{class}}}|Elementalist|3|{{#ifeq:{{{class}}}|Captain|2|{{#ifeq:{{{class}}}|Navigator|1|{{#ifeq:{{{class}}}|Artificer|2|{{#ifeq:{{{class}}}|Mercenary|1|{{#ifeq:{{{class}}}|Sorceress&nbsp;(Campaign)&nbsp;|1|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
| style="width:34px;"| [[File: Knowledge small.png|Knowledge|link=Primary skill]]
| style="width:37px; padding-left:12px;"| {{#ifeq:{{{class}}}|Knight|1|{{#ifeq:{{{class}}}|Cleric|2|{{#ifeq:{{{class}}}|Ranger|1|{{#ifeq:{{{class}}}|Druid|2|{{#ifeq:{{{class}}}|Alchemist|2|{{#ifeq:{{{class}}}|Wizard|3|{{#ifeq:{{{class}}}|Demoniac|1|{{#ifeq:{{{class}}}|Heretic|1|{{#ifeq:{{{class}}}|Death Knight|1|{{#ifeq:{{{class}}}|Necromancer|2|{{#ifeq:{{{class}}}|Overlord|1|{{#ifeq:{{{class}}}|Warlock|2|{{#ifeq:{{{class}}}|Barbarian|1|{{#ifeq:{{{class}}}|Battle Mage|1|{{#ifeq:{{{class}}}|Beastmaster|1|{{#ifeq:{{{class}}}|Witch|2|{{#ifeq:{{{class}}}|Planeswalker|1|{{#ifeq:{{{class}}}|Elementalist|3|{{#ifeq:{{{class}}}|Captain|1|{{#ifeq:{{{class}}}|Navigator|2|{{#ifeq:{{{class}}}|Artificer|2|{{#ifeq:{{{class}}}|Mercenary|1|{{#ifeq:{{{class}}}|Sorceress&nbsp;(Campaign)&nbsp;|2|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
|}
 
|-
| colspan=3 align=center bgcolor={{green 2}} | '''Starting secondary skill{{#if:{{{skill_2|}}}|s|}}:'''
|-
| colspan=3 |
 
{| cellpadding=0 cellspacing=0
| [[File:{{{skill_1|}}}.png|{{{skill_1|}}}|link={{{skill_1}}}|48px]]
| valign=middle colspan=2 | {{-}}[[{{{skill_1|}}}]]{{{skill_1+|}}}
|}
 
|-
{{{oneskill|{{!}} colspan=3 {{!}}
 
{{!T}} cellpadding=0 cellspacing=0
{{!}} [[File:{{{skill_2|}}}.png|{{{skill_2|}}}|link={{{skill_2|}}}|48px]]
{{!}} valign=middle colspan=2 {{!}}{{-}}[[{{{skill_2|}}}]]
{{T!}} }}}
 
|-
| colspan=3 align=center bgcolor={{green 2}} | '''Starting troops:'''
|-
| colspan=3 |
 
{| border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;"
| {{Cn|{{{troop_1}}}}}
| style="padding-left:5px" | {{{nmb_1|}}}
| style="padding-left:5px" | {{{chance_1|Always}}}
|-
| {{{notroop_2|{{Cn|{{{troop_2}}}}}
{{!}} style="padding-left:5px; padding-right:5px" {{!}} {{{nmb_2|}}}
{{!}} style="padding-left:5px" {{!}} {{{chance_2|88%}}}{{#if:{{{hota_same_troops|}}}|{{-}}''(Always{{-wh}})''|}}
{{!-}}
{{!}} }}}{{Cn|{{{troop_3}}}}}
| style="padding-left:5px" | {{{nmb_3|}}}
| style="padding-left:5px" | {{{chance_3|25%}}}{{#if:{{{hota_same_troops|}}}|{{-}}''(Always{{-wh}})''|}}
|}
{{{no_hota_starting_troops|
{{!-}}
{{!}} colspan=3 align=center bgcolor={{green 2}} {{!}} '''Starting troops {{withhota}}:'''
{{!-}}
{{!}} colspan=3 {{!}}
 
{{{!}} border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;"
{{!}} {{Cn|{{{hota_troop_1|{{{troop_1}}}}}}}}
{{!}} style="padding-left:5px; {{#if:{{{hota_nmb_1|}}}|font-weight:bold;|}}" {{!}} {{{hota_nmb_1|{{{nmb_1|}}}}}}
{{!}} style="padding-left:5px" {{!}} {{{hota_chance_1|Always}}}
{{!-}}
{{!}} {{{hota_notroop_2|{{{notroop_2|{{Cn|{{{hota_troop_2|{{{troop_2}}}}}}}}
{{!}} style="padding-left:5px; padding-right:5px; {{#if:{{{hota_nmb_2|}}}|font-weight:bold;|}}" {{!}} {{{hota_nmb_2|{{{nmb_2|}}}}}}
{{!}} style="padding-left:5px" {{!}} {{{hota_chance_2|Always}}}
{{!-}}
{{!}} }}}}}}{{Cn|{{{hota_troop_3|{{{troop_3}}}}}}}}
{{!}} style="padding-left:5px; {{#if:{{{hota_nmb_3|}}}|font-weight:bold;|}}" {{!}} {{{hota_nmb_3|{{{nmb_3|}}}}}}
{{!}} style="padding-left:5px" {{!}} {{{hota_chance_3|Always}}}
{{!}}} }}}
|-
| colspan=3 align=center bgcolor={{green 2}} | {{{nospell|'''Starting spell:'''}}}
|-
{{{nospell|{{!}} [[File:{{{spell|}}}.png|{{{spell|}}}|link={{{s_link|{{{spell}}}}}}]]}}}
{{{nospell|{{!}} colspan=2 {{!}} [[{{{s_link|{{{spell}}}}}}|{{{spell}}}]]}}}
|-
| colspan=3 align=center bgcolor={{green 2}} | {{{nowar|'''Starts with:'''}}}
|-
{{{nowar|{{!}} [[File:{{{warmachine|}}}.png|50px|{{{warmachine|}}}|link={{{s_link|{{{warmachine}}}}}}]]}}}
{{{nowar|{{!}} <center>[[{{{s_link|{{{warmachine}}}}}}|{{{warmachine}}}]]}}}
{{{nowar|{{!}} <center>{{{hota_wm|88%<br />''(Always{{-wh}})''}}}}}}
|-
 
{{{s_hota_mp|
{{!-}}
{{!}} colspan=3 align=center bgcolor={{green 2}} {{!}} '''Starting [[Movement|movement points]]:'''
{{!-}}
{{!}} colspan=3 {{!}}
 
{{{!}} border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;"
{{!}} align=center width=89 {{!}} {{{s_min|Minimum}}}
{{!}} align=center width=85 {{!}} {{{s_max|Maximum}}}
{{!}} align=center width=89 {{!}} {{{s_hota|HotA}}} {{withhota}}
{{!-}}
{{!}} align=center width=89 {{!}} {{{min_mp|}}}
{{!}} align=center width=85 {{!}} {{{max_mp|}}}
{{!}} align=center width=89 {{!}} {{{hota_mp|}}}
{{!}}} }}}
|-
{{{s_mp|
{{!-}}
{{!}} colspan=3 align=center bgcolor={{green 2}} {{!}} '''Starting [[Movement|movement points]]:'''
{{!-}}
{{!}} colspan=3 {{!}}
 
{{{!}} border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;"
{{!}} align=center width=250 {{!}} {{{s_hota2_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>


== How to use ==
== How to use ==
Copy the code at the beginning of the creature article, and fill in the missing information. Notice, that the factors below are case sensitive meaning, that "Town" is not the same as "town".  
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".  


{| style="background: transparent;"
{|
| <pre>{{Hero
| <pre>{{Hero
  | name          = {{PAGENAME}}
  | town      =  
  | class         =  
  | class     =  
  | gender       =  
  | gender     =  
  | spieces       =  
  | race       =  
  | specialty    =  
  | specialty =
  | spec_expl     = <!---Use <br/> to keep box narrow enouh.!--->
| s_text    =
  | sec_skill1   =  
| skill_1    =
  | sec_skill2    =  
| skill_2    =
| spell      =
| warmachine =
| min_mp     =
  | max_mp     =
  | hota_mp   =
  | s_mp      =
}}</pre>
}}</pre>
|}
If the hero does not have a starting spell or [[war machine]] then the following parameters should be defined without any value:
{|
| <pre>
| nospell    =
| nowar      =</pre>
|}
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.
{|
| <pre> | s_hota_mp = </pre>
|}
|}


If for some reason pictures of ''hero'' or ''specialty'' does not appear automatically, you can add the following rows:
If for some reason pictures of ''hero'' or ''specialty'' does not appear automatically, you can add the following rows:
<pre>
{|
| picture      =  
|<pre> | picture      =  
  | specialty_pic =</pre>
  | specialty_pic = </pre>
|}
 
Also, the following lines are available:
{|
|<pre> | name          = </pre>
|}
 
{|  style="width:100%"
| This is an example what the page will look like.
|-
| style="border: 1px solid" | {{Hero
| name      = Adelaide
| picture    = Adelaide
| town      = Castle
| class      = Cleric
| gender    = Female
| race      = Human
| biography  = 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
| s_text    = Casts [[Frost Ring]] with increased effect, based on hero level compared to the level of the target unit.
| skill_1    = Advanced Wisdom
| oneskill  =
| spell      = Frost Ring
| troop_1    = Pikeman
| troop_2    = Archer
| troop_3    = Griffin
| nmb_1      = 10–20
| nmb_2      = 4–7
| nmb_3      = 2–3 
| nowar      =
| chance_2  = 75%
| hota_nmb_1 = 300–999
| hota_nmb_2 = 44–777
| hota_nmb_3 = 20–30
| min_mp    = 1560
| max_mp    = 1560
| hota_mp    = 1560
| s_mp      =
}}
 
== Lorem ipsum ==
* text 1
* text 2
* text 3
 
|}


[[Category:Help templates|Hero]]</noinclude>
[[Category: Hero templates]]</noinclude>

Latest revision as of 17:18, 23 February 2024


How to use[edit]

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       =
}}

If the hero does not have a starting spell or war machine then the following parameters should be defined without any value:

| nospell    =
| nowar      =

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 Horn of the Abyss 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 Horn of the Abyss parameter s_mp must be replaced with s_hota_mp with defined value.

 | s_hota_mp = 

If for some reason pictures of hero or specialty does not appear automatically, you can add the following rows:

 | picture       = 
 | specialty_pic = 

Also, the following lines are available:

 | name          = 
This is an example what the page will look like.
Adelaide the Cleric
Basic information:
Adelaide 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
Specialty Frost Ring Casts Frost Ring with increased effect, based on hero level compared to the level of the target unit.
Starting primary skills:
Attack 1 Defense 0 Spell Power 2 Knowledge 2
Starting secondary skill:
Advanced Wisdom  Advanced Wisdom
Starting troops:
Pikeman Pikeman 10–20 Always
Archer Archer 4–7 75%
Griffin Griffin 2–3 25%
Starting troops Horn of the Abyss:
Pikeman Pikeman 300–999 Always
Archer Archer 44–777 Always
Griffin Griffin 20–30 Always
Starting spell:
Frost Ring Frost Ring
Starting movement points:
Minimum Maximum HotA Horn of the Abyss
1560 1560 1560
Adelaide the Cleric is a Castle hero. Adelaide starts with a spell book and the spell Frost Ring.

Lorem ipsum[edit]

  • text 1
  • text 2
  • text 3