Template:Hero:修订间差异

无编辑摘要
无编辑摘要
(未显示同一用户的17个中间版本)
第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:263px; margin-right: 20px; float:{{{float|left}}}" 
<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"      | '''种族:'''
第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|Always}}}
| 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|}}}|{{-}}''(Always{{-wh}})''|}}
{{!}} 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|}}}|{{-}}''(Always{{-wh}})''|}}
| 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}}}]]是一位来自[[{{towns/en|{{{town}}}}}]]的[[英雄列表|英雄]]。{{{nospell|{{{name_zh|{{PAGENAME}}}}}开局时携带[[魔法书]]及技能[[{{{spell|}}}]]。}}} }}}{{#cargo_store:
|}{{{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 Horn of the Abyss 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 Horn of the Abyss 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(Adelaide) - Cleric
基本信息:
Hero 类型: Cleric
性别: Female
种族: Human
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.
英雄特长 Frost Ring
Specialty Frost Ring Casts Frost Ring with increased effect, based on hero level compared to the level of the target unit.
初始基本技能:
Attack 1 Defense 0 Spell Power 2 Knowledge 2
初始辅助技能:
Advanced Wisdom  Advanced Wisdom
初始兵力:
Pikeman Pikeman 10–20 Always
Archer Archer 4–7 75%
Griffin Griffin 2–3 25%
初始兵力 Horn of the Abyss
Pikeman Pikeman 300–999 Always
Archer Archer 44–777 Always
Griffin Griffin 20–30 Always
初始技能:
Frost Ring Frost Ring
初始移动点数
最小值 最大值 深渊号角 Horn of the Abyss
1560 1560 1560
Hero - Cleric是一位来自Castle英雄。Hero开局时携带魔法书及技能Frost Ring

此模板定义表格“hero”。 查看表格.