Template:Hero: Difference between revisions
No edit summary |
m (add to example) |
||
(11 intermediate revisions by 3 users not shown) | |||
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:300px; margin-right: 20px; float:{{{float|left}}}" | ||
! colspan=3 style="height: 25px; background:#{{Green 1}}; color:lightgreen;" | {{{name|{{PAGENAME}}}}} the {{{classname|{{{class|}}}}}} | ! 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 | | rowspan=3 | [[File: Hero {{{picture|{{PAGENAME}}}}}.png|{{{name|{{PAGENAME}}}}}]] | ||
| style="padding-left:5px" | '''Class:''' | | style="padding-left:5px" | '''Class:''' | ||
| style="padding-left:5px" | [[{{{class|}}}]] | | style="padding-left:5px" | [[{{{class|}}}]] | ||
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]] | ||
| 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 47: | Line 47: | ||
{| cellpadding=0 cellspacing=0 | {| cellpadding=0 cellspacing=0 | ||
| [[File:{{{skill_1|}}}.png|{{{skill_1|}}}|link={{{skill_1}}}| | | [[File:{{{skill_1|}}}.png|{{{skill_1|}}}|link={{{skill_1}}}|48px]] | ||
| valign=middle colspan=2 | {{-}}[[{{{skill_1|}}}]]{{{skill_1+|}}} | | valign=middle colspan=2 | {{-}}[[{{{skill_1|}}}]]{{{skill_1+|}}} | ||
|} | |} | ||
Line 55: | Line 55: | ||
{{!T}} cellpadding=0 cellspacing=0 | {{!T}} cellpadding=0 cellspacing=0 | ||
{{!}} [[File:{{{skill_2|}}}.png|{{{skill_2|}}}|link={{{skill_2|}}}| | {{!}} [[File:{{{skill_2|}}}.png|{{{skill_2|}}}|link={{{skill_2|}}}|48px]] | ||
{{!}} valign=middle colspan=2 {{!}}{{-}}[[{{{skill_2|}}}]] | {{!}} valign=middle colspan=2 {{!}}{{-}}[[{{{skill_2|}}}]] | ||
{{T!}} }}} | {{T!}} }}} | ||
Line 99: | 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 | {{{nospell|{{!}} [[File:{{{spell|}}}.png|{{{spell|}}}|link={{{s_link|{{{spell}}}}}}]]}}} | ||
{{{nospell|{{!}} colspan=2 {{!}} [[{{{s_link|{{{spell}}}}}}|{{{spell}}}]]}}} | {{{nospell|{{!}} colspan=2 {{!}} [[{{{s_link|{{{spell}}}}}}|{{{spell}}}]]}}} | ||
|- | |- | ||
Line 134: | 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 [[{{{s_link|{{{spell}}}}}}]].}}} }}}</includeonly><noinclude> | |}{{{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 == | ||
Line 213: | Line 213: | ||
| s_mp = | | s_mp = | ||
}} | }} | ||
== Lorem ipsum == | |||
* text 1 | |||
* text 2 | |||
* text 3 | |||
|} | |} | ||
[[Category: Hero templates | [[Category: Hero templates]]</noinclude> | ||
Revision as of 17:18, 23 February 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 = }} |
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 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 = |
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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Lorem ipsum
|