无编辑摘要 |
无编辑摘要 |
||
(未显示同一用户的30个中间版本) | |||
第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|}}}}}} | ! 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%;" | ''{{{biography|}}}'' | | 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}}} | ||
| picture = [[File: Hero {{{picture|{{PAGENAME}}}}}.png|58px|{{{name_zh|{{PAGENAME}}}}}]] | | picture = [[File: Hero {{{picture|{{PAGENAME}}}}}.png|58px|{{{name_zh|{{PAGENAME}}}}}]] | ||
| town = {{{town}}} | | town = {{{town}}} | ||
第147行: | 第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}}} | ||
第162行: | 第162行: | ||
| hota_mp = {{{hota_mp}}} | | hota_mp = {{{hota_mp}}} | ||
| warmachine = {{{warmachine}}} | | warmachine = {{{warmachine}}} | ||
| normal = {{{normal}}} | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
第212行: | 第213行: | ||
| This is an example what the page will look like. | | This is an example what the page will look like. | ||
|- | |- | ||
| style="border: 1px solid" | {{ | | style="border: 1px solid" | | ||
{| 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:left" | |||
! colspan=3 style="height: 25px; background:#{{Green 1}}; color:lightgreen;" | {{PAGENAME}}(Adelaide) - Cleric | |||
|- | |||
| colspan=3 align=center bgcolor={{green 2}} | '''基本信息:''' | |||
|- | |||
| rowspan=3 | [[File: Hero Adelaide.png|58px|{{PAGENAME}}]] | |||
| style="padding-left:5px" | '''类型:''' | |||
| style="padding-left:5px" | [[Cleric]] | |||
|- | |||
| style="padding-left:5px" | '''性别:''' | |||
| style="padding-left:5px" | Female | |||
|- | |||
| style="padding-left:5px" | '''种族:''' | |||
| style="padding-left:5px" | Human | |||
|- | |||
| colspan=3 valign=top style="padding-left:3px; padding-right:3px; font-size:90%;" | ''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.'' | |||
|- | |||
| colspan=3 align=center bgcolor={{green 2}} | '''[[Hero specialty|<span style="color:black">英雄特长</span>]]:''' [[Frost Ring]] | |||
|- | |||
| colspan=3 | | |||
{| cellpadding=0 cellspacing=0 | |||
| valign=top | [[File: Specialty Frost Ring.png|Specialty Frost Ring|link=Hero specialty|50px]] | |||
| valign=top style="border-left: 5px solid #{{Green 3}}; font-size:90%;" | Casts [[Frost Ring]] with increased effect, based on hero level compared to the level of the target unit. | |||
|} | |||
|- | |||
}} | | colspan=3 align=center bgcolor={{green 2}} | '''初始基本技能:''' | ||
|- | |||
| colspan=3 | | |||
{| cellpadding=0 cellspacing=0 | |||
| style="width:34px;"| [[File: Attack small.png|Attack|link=Primary skill]] | |||
| style="width:37px; padding-left:12px;"| {{#ifeq:Cleric|Knight|2|{{#ifeq:Cleric|Cleric|1|{{#ifeq:Cleric|Ranger|1|{{#ifeq:Cleric|Druid|0|{{#ifeq:Cleric|Alchemist|1|{{#ifeq:Cleric|Wizard|0|{{#ifeq:Cleric|Demoniac|2|{{#ifeq:Cleric|Heretic|1|{{#ifeq:Cleric|Death Knight|1|{{#ifeq:Cleric|Necromancer|1|{{#ifeq:Cleric|Overlord|2|{{#ifeq:Cleric|Warlock|0|{{#ifeq:Cleric|Barbarian|4|{{#ifeq:Cleric|Battle Mage|2|{{#ifeq:Cleric|Beastmaster|0|{{#ifeq:Cleric|Witch|0|{{#ifeq:Cleric|Planeswalker|3|{{#ifeq:Cleric|Elementalist|0|{{#ifeq:Cleric|Captain|3|{{#ifeq:Cleric|Navigator|2|{{#ifeq:Cleric|Artificer|0|{{#ifeq:Cleric|Mercenary|3|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | |||
| style="width:34px;"| [[File: Defense small.png|Defense|link=Primary skill]] | |||
| style="width:37px; padding-left:12px;"| {{#ifeq:Cleric|Knight|2|{{#ifeq:Cleric|Cleric|0|{{#ifeq:Cleric|Ranger|3|{{#ifeq:Cleric|Druid|2|{{#ifeq:Cleric|Alchemist|1|{{#ifeq:Cleric|Wizard|0|{{#ifeq:Cleric|Demoniac|2|{{#ifeq:Cleric|Heretic|1|{{#ifeq:Cleric|Death Knight|2|{{#ifeq:Cleric|Necromancer|0|{{#ifeq:Cleric|Overlord|2|{{#ifeq:Cleric|Warlock|0|{{#ifeq:Cleric|Barbarian|0|{{#ifeq:Cleric|Battle Mage|1|{{#ifeq:Cleric|Beastmaster|4|{{#ifeq:Cleric|Witch|1|{{#ifeq:Cleric|Planeswalker|1|{{#ifeq:Cleric|Elementalist|0|{{#ifeq:Cleric|Captain|0|{{#ifeq:Cleric|Navigator|0|{{#ifeq:Cleric|Artificer|1|{{#ifeq:Cleric|Mercenary|1|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | |||
| style="width:34px;"| [[File: Power small.png|Spell Power|link=Primary skill]] | |||
| style="width:37px; padding-left:12px;"| {{#ifeq:Cleric|Knight|1|{{#ifeq:Cleric|Cleric|2|{{#ifeq:Cleric|Ranger|1|{{#ifeq:Cleric|Druid|1|{{#ifeq:Cleric|Alchemist|2|{{#ifeq:Cleric|Wizard|2|{{#ifeq:Cleric|Demoniac|1|{{#ifeq:Cleric|Heretic|2|{{#ifeq:Cleric|Death Knight|2|{{#ifeq:Cleric|Necromancer|2|{{#ifeq:Cleric|Overlord|1|{{#ifeq:Cleric|Warlock|3|{{#ifeq:Cleric|Barbarian|1|{{#ifeq:Cleric|Battle Mage|1|{{#ifeq:Cleric|Beastmaster|1|{{#ifeq:Cleric|Witch|2|{{#ifeq:Cleric|Planeswalker|1|{{#ifeq:Cleric|Elementalist|3|{{#ifeq:Cleric|Captain|2|{{#ifeq:Cleric|Navigator|1|{{#ifeq:Cleric|Artificer|2|{{#ifeq:Cleric|Mercenary|1|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | |||
| style="width:34px;"| [[File: Knowledge small.png|Knowledge|link=Primary skill]] | |||
| style="width:37px; padding-left:12px;"| {{#ifeq:Cleric|Knight|1|{{#ifeq:Cleric|Cleric|2|{{#ifeq:Cleric|Ranger|1|{{#ifeq:Cleric|Druid|2|{{#ifeq:Cleric|Alchemist|2|{{#ifeq:Cleric|Wizard|3|{{#ifeq:Cleric|Demoniac|1|{{#ifeq:Cleric|Heretic|1|{{#ifeq:Cleric|Death Knight|1|{{#ifeq:Cleric|Necromancer|2|{{#ifeq:Cleric|Overlord|1|{{#ifeq:Cleric|Warlock|2|{{#ifeq:Cleric|Barbarian|1|{{#ifeq:Cleric|Battle Mage|1|{{#ifeq:Cleric|Beastmaster|1|{{#ifeq:Cleric|Witch|2|{{#ifeq:Cleric|Planeswalker|1|{{#ifeq:Cleric|Elementalist|3|{{#ifeq:Cleric|Captain|1|{{#ifeq:Cleric|Navigator|2|{{#ifeq:Cleric|Artificer|2|{{#ifeq:Cleric|Mercenary|1|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | |||
|} | |||
|- | |||
| colspan=3 align=center bgcolor={{green 2}} | '''初始辅助技能:''' | |||
|- | |||
| colspan=3 | | |||
{| cellpadding=0 cellspacing=0 | |||
| [[File:Advanced Wisdom.png|Advanced Wisdom|link=Advanced Wisdom|50px]] | |||
| valign=middle colspan=2 | {{-}}[[Advanced Wisdom]] | |||
|} | |||
|- | |||
|- | |||
| colspan=3 align=center bgcolor={{green 2}} | '''初始兵力:''' | |||
|- | |||
| colspan=3 | | |||
{| border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;" | |||
| {{Cn|Pikeman}} | |||
| style="padding-left:5px" | 10–20 | |||
| style="padding-left:5px" | Always | |||
|- | |||
| {{Cn|Archer}} | |||
{{!}} style="padding-left:5px; padding-right:5px" {{!}} 4–7 | |||
{{!}} style="padding-left:5px" {{!}} 75%{{#if:|{{-}}''(Always{{-wh}})''|}} | |||
{{!-}} | |||
{{!}} {{Cn|Griffin}} | |||
| style="padding-left:5px" | 2–3 | |||
| style="padding-left:5px" | 25%{{#if:|{{-}}''(Always{{-wh}})''|}} | |||
|} | |||
{{!-}} | |||
{{!}} colspan=3 align=center bgcolor={{green 2}} {{!}} '''初始兵力 {{withhota}}:''' | |||
{{!-}} | |||
{{!}} colspan=3 {{!}} | |||
{{{!}} border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;" | |||
{{!}} {{Cn|Pikeman}} | |||
{{!}} style="padding-left:5px; {{#if:300–999|font-weight:bold;|}}" {{!}} 300–999 | |||
{{!}} style="padding-left:5px" {{!}} Always | |||
{{!-}} | |||
{{!}} {{Cn|Archer}} | |||
{{!}} style="padding-left:5px; padding-right:5px; {{#if:44–777|font-weight:bold;|}}" {{!}} 44–777 | |||
{{!}} style="padding-left:5px" {{!}} Always | |||
{{!-}} | |||
{{!}} {{Cn|Griffin}} | |||
{{!}} style="padding-left:5px; {{#if:20–30|font-weight:bold;|}}" {{!}} 20–30 | |||
{{!}} style="padding-left:5px" {{!}} Always | |||
{{!}}} | |||
|- | |||
| colspan=3 align=center bgcolor={{green 2}} | '''初始技能:''' | |||
|- | |||
{{!}} [[File:Frost Ring.png|82px|Frost Ring|link=Frost Ring]] | |||
{{!}} colspan=2 {{!}} [[Frost Ring|Frost Ring]] | |||
|- | |||
| colspan=3 align=center bgcolor={{green 2}} | | |||
|- | |||
|- | |||
{{!-}} | |||
{{!}} colspan=3 align=center bgcolor={{green 2}} {{!}} '''初始[[移动| 移动点数]]:''' | |||
{{!-}} | |||
{{!}} colspan=3 {{!}} | |||
{{{!}} border=0 cellspacing=0 cellpadding=0 style="border: 0px solid;" | |||
{{!}} align=center width=89 {{!}} 最小值 | |||
{{!}} align=center width=85 {{!}} 最大值 | |||
{{!}} align=center width=89 {{!}} 深渊号角 {{withhota}} | |||
{{!-}} | |||
{{!}} align=center width=89 {{!}} 1560 | |||
{{!}} align=center width=85 {{!}} 1560 | |||
{{!}} align=center width=89 {{!}} 1560 | |||
{{!}}} | |||
|- | |||
|}'''{{PAGENAME}}''' - [[Cleric]]是一位来自[[Castle]]的[[英雄列表|英雄]]。{{PAGENAME}}开局时携带[[魔法书]]及技能[[Frost Ring]]。 | |||
|} | |} | ||
第246行: | 第342行: | ||
_table = hero | _table = hero | ||
| name = String | | name = String | ||
| picture = Wikitext string | | picture = Wikitext string | ||
| town = String | | town = String | ||
第254行: | 第349行: | ||
| specialty = String | | specialty = String | ||
| skill_1 = String | | skill_1 = String | ||
| skill_2 = String | |||
| spell = String | | spell = String | ||
| troop_1 = String | | troop_1 = String | ||
第269行: | 第365行: | ||
| hota_mp = Integer | | hota_mp = Integer | ||
| warmachine = String | | warmachine = String | ||
| dlc = Wikitext 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”。 查看表格.