无编辑摘要 |
无编辑摘要 |
||
(未显示同一用户的21个中间版本) | |||
第1行: | 第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:281px; margin-right: 20px; float:{{{float|left}}}" | ||
! colspan=3 style="height: 25px; background:#{{Green 1}}; color:lightgreen;" | {{{name_zh{|{{PAGENAME}}}}}({{{name|{{PAGENAME}}}}}) - {{{classname|{{{class|}}}}}} {{{dlc|}}} | ! colspan=3 style="height: 25px; background:#{{Green 1}}; color:lightgreen;" | {{{name_zh{|{{PAGENAME}}}}}({{{name|{{PAGENAME}}}}}) - {{class/en|{{{classname|{{{class|}}}}}}}} {{{dlc|}}} | ||
|- | |- | ||
| colspan=3 align=center bgcolor={{green 2}} | '''基本信息:''' | | colspan=3 align=center bgcolor={{green 2}} | '''基本信息:''' | ||
第6行: | 第6行: | ||
| rowspan=3 | [[File: Hero {{{picture|{{PAGENAME}}}}}.png|58px|{{{name_zh|{{PAGENAME}}}}}]] | | rowspan=3 | [[File: Hero {{{picture|{{PAGENAME}}}}}.png|58px|{{{name_zh|{{PAGENAME}}}}}]] | ||
| style="padding-left:5px" | '''类型:''' | | style="padding-left:5px" | '''类型:''' | ||
| style="padding-left:5px" | [[{{{class|}}}]] | | style="padding-left:5px" | [[{{class/en|{{{class|}}}}}]] | ||
|- | |- | ||
| style="padding-left:5px" | '''性别:''' | | style="padding-left:5px" | '''性别:''' | ||
| style="padding-left:5px" | {{{gender|}}} | | style="padding-left:5px" | {{#switch: {{{gender|}}}|Male=男性|Female=女性}} | ||
|- | |- | ||
| style="padding-left:5px" | '''种族:''' | | style="padding-left:5px" | '''种族:''' | ||
| style="padding-left:5px" | {{{race|}}} | | style="padding-left:5px" | {{{race|}}} | ||
|- | |- | ||
| colspan=3 valign=top style="padding-left:3px; padding-right:3px; font-size:90%;" | {{switch|tag1=eng|tag2=cht|switch1=[切换为英文]|switch2=[切换为中文]}}{{switch_content|tag1=eng|tag2=cht|content1= | | colspan=3 valign=top style="padding-left:3px; padding-right:3px; font-size:90%;" | {{switch|tag1=eng|tag2=cht|switch1=[切换为英文]|switch2=[切换为中文]}}{{switch_content|tag1=eng|tag2=cht|content1={{{biography_zh|}}}|content2=''{{{biography|}}}''}} | ||
|- | |- | ||
| colspan=3 align=center bgcolor={{green 2}} | '''[[Hero specialty|<span style="color:black">英雄特长</span>]]:''' [[{{{specialty|}}}]] | | colspan=3 align=center bgcolor={{green 2}} | '''[[Hero specialty|<span style="color:black">英雄特长</span>]]:''' [[{{{specialty|}}}]] | ||
第67行: | 第67行: | ||
| {{Cn|{{{troop_1}}}}} | | {{Cn|{{{troop_1}}}}} | ||
| style="padding-left:5px" | {{{nmb_1|}}} | | style="padding-left:5px" | {{{nmb_1|}}} | ||
| style="padding-left:5px" | {{{chance_1| | | style="padding-left:5px" | {{{chance_1| 总是拥有}}} | ||
|- | |- | ||
| {{{notroop_2|{{Cn|{{{troop_2}}}}} | | {{{notroop_2|{{Cn|{{{troop_2}}}}} | ||
{{!}} style="padding-left:5px; padding-right:5px" {{!}} {{{nmb_2|}}} | {{!}} style="padding-left:5px; padding-right:5px" {{!}} {{{nmb_2|}}} | ||
{{!}} style="padding-left:5px" {{!}} {{{chance_2|88%}}}{{#if:{{{hota_same_troops|}}}| | {{!}} style="padding-left:5px" {{!}} {{{chance_2|88%}}}{{#if:{{{hota_same_troops|}}}|'''(总是拥有{{-wh}} )'''|}} | ||
{{!-}} | {{!-}} | ||
{{!}} }}}{{Cn|{{{troop_3}}}}} | {{!}} }}}{{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|}}}| | | style="padding-left:5px" | {{{chance_3|25%}}}{{#if:{{{hota_same_troops|}}}|'''(总是拥有{{-wh}} )'''|}} | ||
|} | |} | ||
{{{no_hota_starting_troops| | {{{no_hota_starting_troops| | ||
第134行: | 第134行: | ||
{{!}} align=center width=250 {{!}} {{{s_hota2_mp|}}} | {{!}} align=center width=250 {{!}} {{{s_hota2_mp|}}} | ||
{{!}}} }}} | {{!}}} }}} | ||
|}{{{notext|'''{{{name_zh|{{PAGENAME}}}}}''' - [[{{{class}}}]]是一位来自[[{{{town}}}]]的[[英雄列表|英雄]]。{{{nospell|{{{ | |}{{{notext|'''{{{name_zh|{{PAGENAME}}}}}''' - [[{{class/en|{{{class}}}}}]]是一位来自[[{{towns/en|{{{town}}}}}]]的[[英雄列表|英雄]]。{{{nospell|{{#ifeq:{{{gender}}}|Male|他|她}}开局时携带[[魔法书]]及技能[[{{{spell|}}}]]。}}}}}}{{#cargo_store: | ||
_table = hero | _table = hero | ||
| name = {{{name}}} | | name = {{{name}}} | ||
第146行: | 第146行: | ||
| s_text = {{{s_text}}} | | s_text = {{{s_text}}} | ||
| skill_1 = {{{skill_1}}} | | skill_1 = {{{skill_1}}} | ||
| skill_2 = {{{skill_2}}} | |||
| spell = {{{spell}}} | | spell = {{{spell}}} | ||
| troop_1 = {{{troop_1}}} | | troop_1 = {{{troop_1}}} | ||
第348行: | 第349行: | ||
| specialty = String | | specialty = String | ||
| skill_1 = String | | skill_1 = String | ||
| skill_2 = String | |||
| spell = String | | spell = String | ||
| troop_1 = String | | troop_1 = String | ||
第365行: | 第367行: | ||
| dlc = Wikitext string | | dlc = Wikitext string | ||
| normal = String | | normal = String | ||
| s_text = Wikitext | |||
}} | }} | ||
[[Category: Hero templates]] | [[Category: Hero templates]] | ||
[[Category: Misc templates|Hero]]</noinclude> | [[Category: Misc templates|Hero]]</noinclude> |
2023年7月21日 (五) 20:17的版本
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”。 查看表格.