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

Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

Template:Hero infobox

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

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

Template:Hero infobox的文档 [ 查看 | 编辑 | 净化 ]

The Hero infobox is used within Hero pages to quickly convey core information, such as a heroes' 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
等级 基础 1 15 25
生命值 200 200 200 200
生命恢复 0 0 0 0
魔法抗性 25% 25% 25% 25%
魔法值 75 75 75 75
魔法恢复 0 0 0 0
技能伤害 0% 0% 0% 0%
护甲 0 0 0 0
攻击频率 0.59 0.59 0.59 0.59
移速加成 0% 0% 0% 0%
攻击力 0‒0 0‒0 0‒0 0‒0
移动速度 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 missile 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.16)
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 heroes' 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 Tyoerange type

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

默认值
例子
Melee
自动值
字符串必填
Missile Speedprojectile speed

The speed at which a hero's missile 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
自动值
字符串可选