Editing Template:Hero
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
<includeonly>{| border=0 cellpadding=0 cellspacing=0 style="background:#{{green 3}}; color:darkolivegreen; border:1px solid; border-color:rgba(0,0,0,0); width: | <includeonly>{| border=0 cellpadding=0 cellspacing=0 style="background:#{{green 3}}; color:darkolivegreen; border:1px solid; border-color:rgba(0,0,0,0); width:263px; margin-right: 20px; float:{{{float|left}}}" | ||
! colspan=3 style="height: 25px; background:#{{Green 1}}; color: | ! colspan=3 style="height: 25px; background:#{{Green 1}}; color:lightgreen;" | {{{name|{{PAGENAME}}}}} the {{{classname|{{{class|}}}}}} | ||
|- | |- | ||
| colspan=3 align=center bgcolor={{green 2}} | '''Basic information:''' | | colspan=3 align=center bgcolor={{green 2}} | '''Basic information:''' | ||
|- | |- | ||
| rowspan=3 | [[File: Hero {{{picture|{{PAGENAME}}}}}.png|{{{name|{{PAGENAME}}}}}]] | | rowspan=3 | [[File: Hero {{{picture|{{PAGENAME}}}}}.png|58px|{{{name|{{PAGENAME}}}}}]] | ||
| style="padding-left:5px" | '''Class:''' | | style="padding-left:5px" | '''Class:''' | ||
| style="padding-left:5px" | [[{{{class|}}}]] | | style="padding-left:5px" | [[{{{class|}}}]] | ||
Line 13: | Line 13: | ||
| style="padding-left:5px" | '''Race:''' | | style="padding-left:5px" | '''Race:''' | ||
| style="padding-left:5px" | {{{race|}}} | | style="padding-left:5px" | {{{race|}}} | ||
|- | |- | ||
| 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|}}}'' | ||
|- | |- | ||
Line 21: | Line 21: | ||
{| cellpadding=0 cellspacing=0 | {| cellpadding=0 cellspacing=0 | ||
| valign=top | [[File: Specialty {{{specialty_pic|{{{specialty|}}}}}}.png|Specialty {{{specialty|}}}|link=Hero specialty]] | | valign=top | [[File: Specialty {{{specialty_pic|{{{specialty|}}}}}}.png|Specialty {{{specialty|}}}|link=Hero specialty|50px]] | ||
| valign=top style="border-left: 5px solid #{{Green 3}}; font-size:90%;" | {{{s_text|}}} | | valign=top style="border-left: 5px solid #{{Green 3}}; font-size:90%;" | {{{s_text|}}} | ||
|} | |} | ||
|- | |- | ||
Line 37: | Line 32: | ||
{| cellpadding=0 cellspacing=0 | {| cellpadding=0 cellspacing=0 | ||
| style="width:34px;"| [[File: Attack small.png|Attack|link=Primary skill]] | | style="width:34px;"| [[File: Attack small.png|Attack|link=Primary skill]] | ||
| style="width:37px; padding-left:12px;"| {{{ | | 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|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | ||
| style="width:34px;"| [[File: Defense small.png|Defense|link=Primary skill]] | | style="width:34px;"| [[File: Defense small.png|Defense|link=Primary skill]] | ||
| style="width:37px; padding-left:12px;"| {{{ | | 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_Campaign|1|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | ||
| style="width:34px;"| [[File: Power small.png|Spell Power|link=Primary skill]] | | style="width:34px;"| [[File: Power small.png|Spell Power|link=Primary skill]] | ||
| style="width:37px; padding-left:12px;"| {{{ | | 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|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | ||
| style="width:34px;"| [[File: Knowledge small.png|Knowledge|link=Primary skill]] | | style="width:34px;"| [[File: Knowledge small.png|Knowledge|link=Primary skill]] | ||
| style="width:37px; padding-left:12px;"| {{{ | | 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|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | ||
|} | |} | ||
Line 49: | Line 44: | ||
| colspan=3 align=center bgcolor={{green 2}} | '''Starting secondary skill{{#if:{{{skill_2|}}}|s|}}:''' | | colspan=3 align=center bgcolor={{green 2}} | '''Starting secondary skill{{#if:{{{skill_2|}}}|s|}}:''' | ||
|- | |- | ||
| colspan=3 | { | | colspan=3 | | ||
| | |||
{| cellpadding=0 cellspacing=0 | |||
| [[File:{{{skill_1|}}}.png|{{{skill_1|}}}|link={{{skill_1}}}|50px]] | |||
| 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|}}}|50px]] | |||
{{!}} valign=middle colspan=2 {{!}}{{-}}[[{{{skill_2|}}}]] | |||
{{T!}} }}} | |||
|- | |- | ||
Line 69: | Line 63: | ||
|- | |- | ||
| colspan=3 | | | colspan=3 | | ||
{| border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;" | |||
{| border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;" | |||
| {{Cn|{{{troop_1 | | {{Cn|{{{troop_1}}}}} | ||
| style="padding-left:5px" | {{{nmb_1|}}} | | style="padding-left:5px" | {{{nmb_1|}}} | ||
| style="padding-left:5px" | {{{chance_1|Always}}} | | 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" | {{{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|}}}|{{-}}''(Always{{-wh}})''|}} | ||
|} | |} | ||
{{{no_hota_starting_troops| | {{{no_hota_starting_troops| | ||
Line 121: | Line 99: | ||
| colspan=3 align=center bgcolor={{green 2}} | {{{nospell|'''Starting spell:'''}}} | | colspan=3 align=center bgcolor={{green 2}} | {{{nospell|'''Starting spell:'''}}} | ||
|- | |- | ||
{{{nospell|{{!}} [[File:{{{spell|}}}.png|{{{spell|}}}|link={{{s_link|{{{spell}}}}}}]]}}} | {{{nospell|{{!}} [[File:{{{spell|}}}.png|82px|{{{spell|}}}|link={{{s_link|{{{spell}}}}}}]]}}} | ||
{{{nospell|{{!}} colspan=2 {{!}} [[{{{s_link|{{{spell}}}}}}|{{{spell}}}]]}}} | {{{nospell|{{!}} colspan=2 {{!}} [[{{{s_link|{{{spell}}}}}}|{{{spell}}}]]}}} | ||
|- | |- | ||
| colspan=3 align=center bgcolor={{green 2}} | {{{nowar|'''Starts with:'''}}} | | colspan=3 align=center bgcolor={{green 2}} | {{{nowar|'''Starts with:'''}}} | ||
|- | |- | ||
{{{nowar|{{!}} [[File:{{{warmachine|}}}.png| | {{{nowar|{{!}} [[File:{{{warmachine|}}}.png|50px|{{{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 />''(Always{{-wh}})''}}}}}} | ||
Line 156: | Line 134: | ||
{{!}} align=center width=250 {{!}} {{{s_hota2_mp|}}} | {{!}} 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 [[ | |}{{{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 [[{{{spell|}}}]].}}} }}}</includeonly><noinclude> | ||
== How to use == | == How to use == | ||
Line 180: | Line 158: | ||
|} | |} | ||
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. | 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 193: | Line 170: | ||
|} | |} | ||
If for some reason pictures of ''hero'' or ''specialty'' does not appear automatically, you can add the following rows: | |||
{| | |||
|<pre> | picture = | |||
| specialty_pic = </pre> | |||
|} | |||
Also, the following lines are available: | |||
{| | {| | ||
|<pre> | |<pre> | name = </pre> | ||
|} | |} | ||
= | {| style="width:100%" | ||
= | | This is an example what the page will look like. | ||
{{Hero | |- | ||
| style="border: 1px solid" | {{Hero | |||
| name = Adelaide | | name = Adelaide | ||
| picture = Adelaide | | picture = Adelaide | ||
Line 229: | Line 195: | ||
| s_text = Casts [[Frost Ring]] with increased effect, based on hero level compared to the level of the target unit. | | s_text = Casts [[Frost Ring]] with increased effect, based on hero level compared to the level of the target unit. | ||
| skill_1 = Advanced Wisdom | | skill_1 = Advanced Wisdom | ||
| oneskill = | |||
| spell = Frost Ring | | spell = Frost Ring | ||
| troop_1 = Pikeman | | troop_1 = Pikeman | ||
| troop_2 = Archer | | troop_2 = Archer | ||
| troop_3 = Griffin | | troop_3 = Griffin | ||
Line 246: | Line 212: | ||
| hota_mp = 1560 | | hota_mp = 1560 | ||
| s_mp = | | s_mp = | ||
}} | }} | ||
|} | |||
[[Category: Hero templates]]</noinclude> | [[Category: Hero templates]] | ||
[[Category: Misc templates|Hero]]</noinclude> |