Template:Hero:修订间差异

无编辑摘要
无编辑摘要
(未显示同一用户的34个中间版本)
第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|}}}}}}
! 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|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}}}]]是一位来自[[{{{town}}}]]的[[英雄列表|英雄]]。{{{nospell|{{{name_zh|{{PAGENAME}}}}}开局时携带[[魔法书]]及技能[[{{{spell|}}}]]。}}} }}}</includeonly><noinclude>
|}{{{notext|'''{{{name_zh|{{PAGENAME}}}}}''' - [[{{class/en|{{{class}}}}}]]是一位来自[[{{towns/en|{{{town}}}}}]]的[[英雄列表|英雄]]。{{{nospell|{{#ifeq:{{{gender}}}|Male|他|她}}开局时携带[[魔法书]]及技能[[{{{spell|}}}]]。}}}}}}{{#cargo_store:
_table = hero
| name = {{{name}}}
| picture = [[File: Hero {{{picture|{{PAGENAME}}}}}.png|58px|{{{name_zh|{{PAGENAME}}}}}]]
| town = {{{town}}}
| class = {{{class}}}
| gender = {{{gender}}}
| race = {{{race}}}
| biography = {{{biography}}}
| specialty = {{{specialty}}}
| s_text = {{{s_text}}}
| skill_1 = {{{skill_1}}}
| skill_2 = {{{skill_2}}}
| spell = {{{spell}}}
| troop_1 = {{{troop_1}}}
| troop_2  = {{{troop_2}}}
| troop_3 = {{{troop_3}}}
| nmb_1 = {{{nmb_1}}}
| nmb_2  = {{{nmb_2}}}
| nmb_3  = {{{nmb_3}}}
| chance_2 = {{{chance_2}}}
| hota_nmb_1 = {{{hota_nmb_1}}}
| hota_nmb_2 = {{{hota_nmb_2}}}
| hota_nmb_3 = {{{hota_nmb_3}}}
| min_mp  = {{{min_mp}}}
| max_mp  = {{{max_mp}}}
| hota_mp = {{{hota_mp}}}
| warmachine = {{{warmachine}}}
| normal = {{{normal}}}
}}</includeonly><noinclude>


== How to use ==
== How to use ==
第184行: 第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" | {{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 
 
| hota_nmb_2 = 44–777
{| cellpadding=0 cellspacing=0
| hota_nmb_3 = 20–30
| valign=top | [[File: Specialty Frost Ring.png|Specialty Frost Ring|link=Hero specialty|50px]]
| min_mp   = 1560
| 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.
| max_mp   = 1560
|}
| hota_mp   = 1560
 
  | s_mp    =
|-
  }}
| 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]]。


|}
|}
第218行: 第342行:
_table = hero
_table = hero
  | name = String
  | name = String
  | picture = String
  | picture = Wikitext string
  | town = String
  | town = String
  | class = Cleric
  | class = Wikitext string
  | gender = String
  | gender = String
  | race = String
  | race = Wikitext string
| biography = Wikitext string
  | specialty = String
  | specialty = String
| s_text = Wikitext string
  | skill_1 = String
  | skill_1 = String
  | oneskill = String
  | skill_2 = String
  | spell = String
  | spell = String
  | troop_1 = String
  | troop_1 = String
第235行: 第357行:
  | nmb_2  = String
  | nmb_2  = String
  | nmb_3  = String
  | nmb_3  = String
| nowar = String
  | chance_2 = String
  | chance_2 = String
  | hota_nmb_1 = String
  | hota_nmb_1 = String
第243行: 第364行:
  | max_mp  = Integer
  | max_mp  = Integer
  | hota_mp = Integer
  | hota_mp = Integer
| s_mp = String
  | warmachine = String
  | warmachine = String
  | name_zh = String
  | dlc = Wikitext string
  | biography_zh = Wikitext string
  | normal = String
  | s_text_zh = Wikitext 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”。 查看表格.