Template:Hero:修订间差异

无编辑摘要
无编辑摘要
第212行: 第212行:
| This is an example what the page will look like.
| This is an example what the page will look like.
|- 
|- 
| style="border: 1px solid" | {{Hero
| style="border: 1px solid" | 
  | name     = Adelaide
{| 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"
  | picture   = Adelaide
! colspan=3 style="height: 25px; background:#{{Green 1}}; color:lightgreen;" | {{PAGENAME}}(Adelaide) - Cleric
  | town     = Castle
|-
  | class    = Cleric
| colspan=3 align=center bgcolor={{green 2}} | '''基本信息:'''
  | gender    = Female
|-
  | race     = Human
| rowspan=3 | [[File: Hero Adelaide.png|58px|{{PAGENAME}}]]
  | biography = 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.
| style="padding-left:5px"      | '''类型:'''
  | specialty = Frost Ring
| style="padding-left:5px"      | [[Cleric]]
  | s_text    = Casts [[Frost Ring]] with increased effect, based on hero level compared to the level of the target unit.
|-
  | skill_1   = Advanced Wisdom
| style="padding-left:5px"      | '''性别:'''
| oneskill  =
| style="padding-left:5px"      | Female
  | spell    = Frost Ring
|-
  | troop_1   = Pikeman
| style="padding-left:5px"      | '''种族:'''
  | troop_2   = Archer
| style="padding-left:5px"      | Human
  | troop_3   = Griffin
|-
  | nmb_1    = 10–20 
| 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.''
  | nmb_2    = 4–7
|-
  | nmb_3    = 2–3  
| colspan=3 align=center bgcolor={{green 2}} | '''[[Hero specialty|<span style="color:black">英雄特长</span>]]:''' [[Frost Ring]]
| nowar    =
|-
  | chance_2   = 75%
| colspan=3 |
  | hota_nmb_1 = 300–999 
 
{| 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]]。 {{#cargo_store:
_table = hero
  | name = Adelaide
| name_zh = {{{name_zh}}}
  | picture = [[File: Hero Adelaide.png|58px|{{PAGENAME}}]]
  | town = Castle
  | class = Cleric
  | gender = Female
  | race = Human
  | biography = 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.
  | specialty = Frost Ring
  | s_text = Casts [[Frost Ring]] with increased effect, based on hero level compared to the level of the target unit.
  | skill_1 = Advanced Wisdom
  | spell = Frost Ring
  | troop_1 = Pikeman
  | troop_2 = Archer
  | troop_3 = Griffin
  | nmb_1 = 10–20
  | nmb_2 = 4–7
  | nmb_3 = 2–3
  | chance_2 = 75%
  | hota_nmb_1 = 300–999
  | hota_nmb_2 = 44–777
  | hota_nmb_2 = 44–777
  | hota_nmb_3 = 20–30
  | hota_nmb_3 = 20–30
  | min_mp    = 1560
  | min_mp = 1560
  | max_mp    = 1560
  | max_mp = 1560
  | hota_mp   = 1560
  | hota_mp = 1560
  | s_mp    =
  | warmachine = {{{warmachine}}}
}}
}}


|}
|}

2023年7月7日 (五) 04:34的版本


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”。 查看表格.