无编辑摘要 |
无编辑摘要 |
||
第137行: | 第137行: | ||
_table = hero | _table = hero | ||
| name = {{{name}}} | | name = {{{name}}} | ||
| name_zh = {{{name_zh}}} | |||
| picture = [[File: Hero {{{picture|{{PAGENAME}}}}}.png|58px|{{{name_zh|{{PAGENAME}}}}}]] | | picture = [[File: Hero {{{picture|{{PAGENAME}}}}}.png|58px|{{{name_zh|{{PAGENAME}}}}}]] | ||
| town = {{{town}}} | | town = {{{town}}} | ||
第145行: | 第146行: | ||
| specialty = {{{specialty}}} | | specialty = {{{specialty}}} | ||
| s_text = {{{s_text}}} | | s_text = {{{s_text}}} | ||
| skill_1 = {{{ | | skill_1 = {{{skill_1}}} | ||
| spell = {{{spell}}} | | spell = {{{spell}}} | ||
| troop_1 = {{{troop_1}}} | | troop_1 = {{{troop_1}}} | ||
第154行: | 第154行: | ||
| nmb_2 = {{{nmb_2}}} | | nmb_2 = {{{nmb_2}}} | ||
| nmb_3 = {{{nmb_3}}} | | nmb_3 = {{{nmb_3}}} | ||
| chance_2 = {{{chance_2}}} | | chance_2 = {{{chance_2}}} | ||
| hota_nmb_1 = {{{hota_nmb_1}}} | | hota_nmb_1 = {{{hota_nmb_1}}} | ||
第162行: | 第161行: | ||
| max_mp = {{{max_mp}}} | | max_mp = {{{max_mp}}} | ||
| hota_mp = {{{hota_mp}}} | | hota_mp = {{{hota_mp}}} | ||
| warmachine = {{{warmachine}}} | | warmachine = {{{warmachine}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
第251行: | 第246行: | ||
_table = hero | _table = hero | ||
| name = String | | name = String | ||
| name_zh = String | |||
| picture = Wikitext string | | picture = Wikitext string | ||
| town = String | | town = String | ||
第256行: | 第252行: | ||
| gender = String | | gender = String | ||
| race = String | | race = String | ||
| specialty = String | | specialty = String | ||
| skill_1 = String | | skill_1 = String | ||
| spell = String | | spell = String | ||
| troop_1 = String | | troop_1 = String | ||
第268行: | 第261行: | ||
| nmb_2 = String | | nmb_2 = String | ||
| nmb_3 = String | | nmb_3 = String | ||
| chance_2 = String | | chance_2 = String | ||
| hota_nmb_1 = String | | hota_nmb_1 = String | ||
第276行: | 第268行: | ||
| max_mp = Integer | | max_mp = Integer | ||
| hota_mp = Integer | | hota_mp = Integer | ||
| warmachine = String | | warmachine = String | ||
}} | }} | ||
[[Category: Hero templates]] | [[Category: Hero templates]] | ||
[[Category: Misc templates|Hero]]</noinclude> | [[Category: Misc templates|Hero]]</noinclude> |
2023年7月7日 (五) 04:19的版本
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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
此模板定义表格“hero”。 查看表格.