你现在尚未登录,许多功能可能无法正常使用,若已有账号,请登录,若没有,请先注册Twitch账号
目前我们有非常多的待翻译条目,你也可以看一下目前我们需要优先处理的有哪些目前我们有非常多的待翻译条目,你也可以看一下目前我们需要优先处理的有哪些英雄页面的攻略、克制和物品页面的推荐英雄、小贴士等均为社区玩家编写的,你也可以把自己的心得写上去哦。英雄页面的攻略、克制和物品页面的推荐英雄、小贴士等均为社区玩家编写的,你也可以把自己的心得写上去哦。看不懂bkb文本中debuff技能免疫之前施加并且没有被驱散雪球战斗嚎叫是少数几个不带驱散的技能免疫,亲自试一下战斗嚎叫过程中还有没有debuff吧。看不懂bkb文本中debuff技能免疫之前施加并且没有被驱散雪球战斗嚎叫是少数几个不带驱散的技能免疫,亲自试一下战斗嚎叫过程中还有没有debuff吧。看不懂技能的buff/debuff是哪个跟哪个?鼠标移动到名称上就能看到游戏内显示的名字了。看不懂技能的buff/debuff是哪个跟哪个?鼠标移动到名称上就能看到游戏内显示的名字了。目前我們沒有善於製作其他中文變體的人員,如果您善於或擁有相關技術,請幫忙補充其他中文變體的空白。目前我們沒有善於製作其他中文變體的人員,如果您善於或擁有相關技術,請幫忙補充其他中文變體的空白。

Template:Hero infobox/doc

来自Dota 2 Wiki
跳转至: 导航搜索

The Hero infobox is used within hero pages to quickly convey core information, such as a hero's strength, agility, intelligence, or more specific information such as their movement speed or sight range.

Should use {{Hero infobox wrapper}} for translation.

Usage[编辑]

Wild Template Hero
Unknown Hero icon.png
Strength attribute symbol.png
Agility attribute symbol.png
Intelligence attribute symbol.png
0 + 0
0 + 0
0 + 0
等级 0 1 15 25 30
生命值 200 200 200 200 200
生命恢复 0 0 0 0 0
魔法值 75 75 75 75 75
魔法恢复 0 0 0 0 0
护甲 0 0 0 0 0
攻击频率 0.59 0.59 0.59 0.59 0.59
攻击力 0‒0 0‒0 0‒0 0‒0 0‒0
魔法抗性 25%
移动速度 0
攻击速度 100
转身速率 0
视野 0/0
攻击距离 0
弹道速度 瞬间
攻击动作 0+0
基础攻击间隔 0
碰撞体积 0

To implement the infobox, you simply add {{Hero infobox}} to the top of a page - however there are numerous attributes that display by default and should be set.

To set attributes, you simply add a few lines before closing the template call (before the closing squiggly brackets - }}), and add each attribute and it's values with | attribute = value.

Here's the code you should copy and fill in for each Hero page:

{{Hero infobox
| title = 
| icon = 
| image = 
| primary attribute = 
| strength = 
| strength growth = 
| agility = 
| agility growth = 
| intelligence = 
| intelligence growth = 
| attack damage min = 
| attack damage max = 
| health regen = 
| armor = 
| magic resistance = 
| movement speed = 
| turn rate = 
| attack range = 
| range type = 
| attack point = 
| attack backswing = 
| base attack time = 
| projectile speed = 
| sight range day = 
| sight range night = 
| collision size = 
| legs = 
| gib type = 
}}

Attributes[编辑]

Attribute Description
Note: Health, mana, mana regeneration and attacks per second are all calculated automatically.
faction The team a hero is affiliated with. Radiant, Dire, or Neutral. Defaults to Neutral.
primary attribute A hero's primary attribute - strength, intelligence, or agility.
strength A hero's base strength value.
strength growth The rate at which a hero's strength increases.
agility A hero's base agility value.
agility growth The rate at which a hero's agility increases.
intelligence A hero's base intelligence.
intelligence growth The rate at which a hero's intelligence increases.
attack damage min A hero's minimum base attack damage (level 1, 15 and 25 are calculated automatically).
attack damage max A hero's maximum base attack damage (level 1, 15 and 25 are calculated automatically).
health regen A hero's base health regeneration, defaults to 0.25 if no value is given (level 1, 15 and 25 are calculated automatically).
mana regen A hero's base mana regeneration, defaults to 0.01 if no value is given (level 1, 15 and 25 are calculated automatically).
armor A hero's base armor (level 1, 15 and 25 are calculated automatically).
magic resistance A hero's magic resistance. Normally 25%.
movement speed A hero's base movement speed.
turn rate The rate which determines how long a hero needs to turn 180°.
attack range The range in which a hero can attack. Most melee heroes have an attack range of 128.
attack point The length of the animation just before an attack.
attack backswing The length of the animation just after an attack.
base attack time Base Attack Time: the period at which a hero attacks.
projectile speed The speed at which a hero's projectile travels. Do not add this parameter to melee heroes. It defaults to "Instant".
sight range day The range in which a hero sees during the day.
sight range night The range in which a hero sees during the night.
collision size The amount of space that a hero takes up. Most heroes have a collision size of 24.

There is an optional attribute that is only necessary when including this template on a page that is not a Hero page, and should not be set when this template is used on a Hero page.

Attribute Description
title The English name of the hero. (On hero pages, the name of the hero will be deduced from BASEPAGENAME if not given.)
game See Template:Unit infobox.
structure See Template:Unit infobox.

Custom game support[编辑]

Since custom games may have differently scaling stats, the template supports customizing stats like health, mana, armor, attack damage, etc gain per attribute point.

Do not use these properties on the default Dota2 hero pages. They are set automatically for them.

Attribute Description
health Customize the base health amount (default: 200)
custom bonus health Customize the health gain per strength point (default: 20)
custom bonus health regen Customize the health regen gain per strength point (default: 0.1)
mana Customize the base mana amount (default: 75)
custom bonus mana Customize the mana gain per intelligence point (default: 12)
custom bonus mana regen Customize the mana regen gain per intelligence point (default: 0.05)
custom bonus spell damage Customize the spell damage bonus per intelligence point (default: 0.07%)
custom bonus armor Customize the armor bonus per agility point (default: 0.17)
attack speed Customize the base attack speed amount (default: 100)
custom bonus attack speed Customize the attack speed bonus per agility point (default: 1)
custom bonus attack damage Customize the attack damage bonus per primary attribute (default: 1)

TemplateData[编辑]

The Hero infobox is used within hero pages to quickly convey core information, such as a hero's strength, agility, intelligence, or more specific information such as their movement speed or sight range.

模板参数

此模板首选参数换行格式。

参数说明类型状态
Titletitle

The English name of the hero.

例子
Pudge
自动值
{{subst:BASEPAGENAME}}
字符串必填
Minimap Iconicon

The hero's minimap icon.

例子
File:Pudge minimap icon.png
文件必填
Imageimage

The hero's image.

例子
File:Pudge icon.png
文件必填
Primary Attributeprimary attribute

A hero's primary attribute - strength, intelligence, or agility.

例子
Strength
字符串必填
Strengthstrength

A hero's base strength value.

例子
25
数值必填
Strength Growthstrength growth

The rate at which a hero's strength increases.

例子
3.5
数值必填
Agilityagility

A hero's base agility value.

例子
14
数值必填
Agility Growthagility growth

The rate at which a hero's agility increases.

例子
1.5
数值必填
Intelligenceintelligence

A hero's base intelligence.

例子
14
数值必填
Intelligence Growthintelligence growth

The rate at which a hero's intelligence increases.

例子
1.5
数值必填
Base Healthhealth

Customize the base health amount.

默认值
200
数值已弃用
Custom Bonus Healthcustom bonus health

Customize the health gain per strength point.

默认值
20
数值已弃用
Base Manamana

Customize the base mana amount.

默认值
75
数值已弃用
Custom Bonus Manacustom bonus mana

Customize the mana gain per intelligence point.

默认值
12
数值已弃用
Armorarmor

A hero's base armor (level 1, 15 and 25 are calculated automatically).

例子
1
数值必填
Custom Bonus Armorcustom bonus armor

Customize the armor bonus per agility point.

例子
0.17
数值已弃用
Custom Bonus Spell Damagecustom bonus spell damage

Customize the spell damage bonus per intelligence point.

默认值
(1/14)%
数值已弃用
Attack Speedattack speed

Customize the base attack speed amount.

默认值
100
数值已弃用
Base Attack Timebase attack time

The period at which a hero attacks.

例子
1.7
数值必填
Custom Bonus Attack Speedcustom bonus attack speed

Customize the attack speed bonus per agility point.

默认值
1
数值已弃用
Minimum Attack Damageattack damage min

A hero's minimum base attack damage (level 1, 15 and 25 are calculated automatically).

例子
27
数值必填
Maximum Attack Damageattack damage max

A hero's maximum base attack damage (level 1, 15 and 25 are calculated automatically).

例子
33
数值必填
Custom Bonus Attack Damagecustom bonus attack damage

Customize the attack damage bonus per primary attribute.

默认值
1
数值已弃用
Magic Resistancemagic resistance

A hero's magic resistance.

自动值
25%
数值必填
Health Regenerationhealth regen

A hero's base health regeneration (level 1, 15 and 25 are calculated automatically).

默认值
0.25
自动值
数值必填
Mana Regenerationmana regen

A hero's base mana regeneration (level 1, 15 and 25 are calculated automatically).

默认值
0.01
数值必填
Movement Speedmovement speed

A hero's base movement speed.

例子
280
数值必填
Turn Rateturn rate

The rate which determines how long a hero needs to turn 180°.

例子
0.7
数值必填
Day Visionsight range day

The range in which a hero sees during the day.

例子
1800
数值必填
Night Visionsight range night

The range in which a hero sees during the night.

例子
800
数值必填
Attack Rangeattack range

The range in which a hero can attack. Most melee heroes have an attack range of 128.

例子
128
数值必填
Range Typerange type

The hero's range type (Melee/Ranged).

例子
Melee
字符串必填
Projectile Speedprojectile speed

The speed at which a hero's projectile travels. Do not add this parameter to melee heroes. It defaults to "Instant".

默认值
Instant
数值推荐
Attack Pointattack point

The length of the animation just before an attack.

例子
0.5
数值必填
Attack Backswingattack backswing

The length of the animation just after an attack.

例子
1.17
数值推荐
Collision Sizecollision size

The amount of space that a hero takes up. Most heroes have a collision size of 24.

例子
24
数值必填
Legslegs

The amount of leg's the hero has.

例子
2
自动值
数值推荐
Gib typegib type

The heroes gib type. Used for some animations.

例子
ethereal
自动值
default
字符串推荐
Gamegame

Specify when the unit is part of a custom or seasonal game. Defaults to empty (means the standard Dota 2 game).

字符串可选
Structurestructure

Specify how the infobox is related to the page. Defaults to main (means it is the main infobox of the page and all semantic properties will be included). If the infobox is not the main part of the page, define hidden.

例子
hidden
字符串可选