Medoke (обсуждение | вклад) мНет описания правки |
Medoke (обсуждение | вклад) мНет описания правки |
||
Строка 12: | Строка 12: | ||
<div style="display:table; table-layout:fixed; width:100%;"> |
<div style="display:table; table-layout:fixed; width:100%;"> |
||
<div style="display:table-row;"> |
<div style="display:table-row;"> |
||
− | {{#vardefine:n|1}}{{#dowhile:|{{{image{{#vardefineecho:n|{{ |
+ | {{#vardefine:n|1}}{{#dowhile:|{{{image{{#vardefineecho:n|{{Commafix|{{#var:n}}+1}}}}|}}}| |
<div style="display:table-cell;">[[{{{image{{#var:n}}}}}|100px]]</div> |
<div style="display:table-cell;">[[{{{image{{#var:n}}}}}|100px]]</div> |
||
}} |
}} |
||
Строка 27: | Строка 27: | ||
| {{{item cost}}} |
| {{{item cost}}} |
||
| {{#if:{{{recipe 1|}}} |
| {{#if:{{{recipe 1|}}} |
||
− | | {{#vardefineecho:item cost|{{ |
+ | | {{#vardefineecho:item cost|{{Commafix|{{{recipe cost|}}}{{#vardefine:n|1}}{{#dowhile:|{{{recipe {{#vardefineecho:n|{{Commafix|{{#var:n}}+1}}}}|}}}|+{{#cargo_query:table=items|fields=CONCAT(item_cost)|where=_pageName="{{{recipe {{#var:n}}}}}"|group by=_pageID|no html}}}}}}}} |
| Н/Д |
| Н/Д |
||
}} |
}} |
||
Строка 140: | Строка 140: | ||
<div style="display:table; table-layout:fixed; width:100%;"> |
<div style="display:table; table-layout:fixed; width:100%;"> |
||
<div style="display:table-row;"> |
<div style="display:table-row;"> |
||
− | {{#vardefine:upgrades|1}}{{#dowhile:|{{{used in {{#vardefineecho:upgrades|{{ |
+ | {{#vardefine:upgrades|1}}{{#dowhile:|{{{used in {{#vardefineecho:upgrades|{{Commafix|{{#var:upgrades}}+1}}}}|}}}| |
<div style="display:table-cell;">{{Item|{{{used in {{#var:upgrades}}}}}}}</div> |
<div style="display:table-cell;">{{Item|{{{used in {{#var:upgrades}}}}}}}</div> |
||
}} |
}} |
||
</div> |
</div> |
||
</div><!-- |
</div><!-- |
||
− | -->[[Файл:UsedIn{{ |
+ | -->[[Файл:UsedIn{{Commafix|{{#var:upgrades}}-1}}.png|link=|class=componentsinvert]] |
}}<!-- |
}}<!-- |
||
Строка 151: | Строка 151: | ||
-->{{#if:{{{recipe 1|}}}| |
-->{{#if:{{{recipe 1|}}}| |
||
− | {{#vardefine:components|2}}{{#while:|{{{recipe {{#var:components}}|}}}|{{#vardefine:components|{{ |
+ | {{#vardefine:components|2}}{{#while:|{{{recipe {{#var:components}}|}}}|{{#vardefine:components|{{Commafix|{{#var:components}}+1}}}}}}<!-- |
− | -->[[Файл:Components{{ |
+ | -->[[Файл:Components{{Commafix|{{#var:components}}{{#if:{{{recipe cost|}}}||-1}}}}.png|link=|class=componentsinvert]]<!-- |
--><div style="display:table; table-layout:fixed; width:100%;"> |
--><div style="display:table; table-layout:fixed; width:100%;"> |
||
<div style="display:table-row;"> |
<div style="display:table-row;"> |
||
− | {{#loop:i|1|{{ |
+ | {{#loop:i|1|{{Commafix|{{#var:components}}-1}}| |
<div style="display:table-cell;">{{Item|{{{recipe {{#var:i}}}}}}}</div> |
<div style="display:table-cell;">{{Item|{{{recipe {{#var:i}}}}}}}</div> |
||
}}<!-- |
}}<!-- |
||
Строка 200: | Строка 200: | ||
|bonus_primary_attribute = {{{bonus primary attribute|}}} |
|bonus_primary_attribute = {{{bonus primary attribute|}}} |
||
|bonus_secondary_attributes = {{{bonus secondary attributes|}}} |
|bonus_secondary_attributes = {{{bonus secondary attributes|}}} |
||
− | |active_health = {{#if:{{{active health|}}}{{{bonus strength|}}}{{{active strength|}}}|{{ |
+ | |active_health = {{#if:{{{active health|}}}{{{bonus strength|}}}{{{active strength|}}}|{{Commafix|{{{active health|0}}}+({{{bonus strength|0}}}+{{{active strength|0}}})*{{Attribute bonuses|bonus health}}}}}} |
− | |active_health_regeneration_flat = {{#if:{{{bonus health regeneration flat|}}}{{{active health regeneration flat|}}}{{{bonus strength|}}}{{{active strength|}}}|{{ |
+ | |active_health_regeneration_flat = {{#if:{{{bonus health regeneration flat|}}}{{{active health regeneration flat|}}}{{{bonus strength|}}}{{{active strength|}}}|{{Commafix|({{{bonus health regeneration flat|0}}}+{{{active health regeneration flat|0}}})+({{Attribute bonuses|bonus health regeneration flat}}*({{{bonus strength|0}}}+{{{active strength|0}}}))}}}} |
− | |active_armor = {{#if:{{{active armor|}}}{{{bonus agility|}}}{{{active agility|}}}|{{ |
+ | |active_armor = {{#if:{{{active armor|}}}{{{bonus agility|}}}{{{active agility|}}}|{{Commafix|{{{active armor|0}}}+({{{bonus agility|0}}}+{{{active agility|0}}})*{{Attribute bonuses|bonus armor}} round2}}}} |
− | |active_attack_speed = {{#if:{{{active attack speed|}}}{{{bonus agility|}}}{{{active agility|}}}|{{ |
+ | |active_attack_speed = {{#if:{{{active attack speed|}}}{{{bonus agility|}}}{{{active agility|}}}|{{Commafix|{{{active attack speed|0}}}+{{{bonus agility|0}}}+{{{active agility|0}}}}}}} |
− | |active_mana = {{#if:{{{active mana|}}}{{{bonus intelligence|}}}{{{active intelligence|}}}|{{ |
+ | |active_mana = {{#if:{{{active mana|}}}{{{bonus intelligence|}}}{{{active intelligence|}}}|{{Commafix|{{{active mana|0}}}+({{{bonus intelligence|0}}}+{{{active intelligence|0}}})*{{Attribute bonuses|bonus mana}}}}}} |
− | |active_mana_regeneration_flat = {{#if:{{{bonus mana regeneration flat|}}}{{{active mana regeneration flat|}}}{{{bonus intelligence|}}}{{{active intelligence|}}}|{{ |
+ | |active_mana_regeneration_flat = {{#if:{{{bonus mana regeneration flat|}}}{{{active mana regeneration flat|}}}{{{bonus intelligence|}}}{{{active intelligence|}}}|{{Commafix|({{{bonus mana regeneration flat|0}}}+{{{active mana regeneration flat|0}}})+({{Attribute bonuses|bonus mana regeneration flat}}*({{{bonus intelligence|0}}}+{{{active intelligence|0}}}))}}}} |
− | |active_spell_damage = {{#if:{{{active spell damage|}}}{{{bonus intelligence|}}}{{{active intelligence|}}}|{{ |
+ | |active_spell_damage = {{#if:{{{active spell damage|}}}{{{bonus intelligence|}}}{{{active intelligence|}}}|{{Commafix|{{{active spell damage|0}}}+({{{bonus intelligence|0}}}+{{{active intelligence|0}}})*{{Attribute bonuses|bonus spell damage}} round2}}}} |
|bonus_health = {{{bonus health|}}} |
|bonus_health = {{{bonus health|}}} |
||
|bonus_health_regeneration_flat = {{{bonus health regeneration flat|}}} |
|bonus_health_regeneration_flat = {{{bonus health regeneration flat|}}} |
Версия от 23:31, 13 июня 2020
Этот шаблон определяет таблицу «items». Просмотр таблицы.
Использование и пример
Blade of Shadows | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A strange draining purple mist encases the edge, darkening it any its surroundings to the point of invisibility. | |||||||||||||
Стоимость
225 Н/Д
| |||||||||||||
Начальный запас
0 Макс. запас
1 Время пополнения
1 | |||||||||||||
|
{{Item infobox | game = | title = | image = | image1 = | image2 = | image3 = | image4 = | image5 = | lore = | modifier = | type = | base = | secret = | side lane = | mid lane = <!-- For DotA --> | neutral = | tier = <!-- Neutral Tiers --> | removed = | unreleased = | old = <!-- For DotA --> | hidden = <!-- For items with upgrade levels --> | basic = | alert allies = | disassemble = | shareable = | destroyable = | droppable = | item cost = | sell value = <!-- Automatically calculates Sell Value base on item cost, and divides by charges or count base on Charges and Max Stack. --> | sellable = <!-- Set Sellable value to "No" and leave Sell Value as <blank> for unsellable items --> | initial stock = | max stock = | restock time = | max stack = | availability = | active = | charges = | passive = | passive2 = | passive3 = | bonus strength = | bonus agility = | bonus intelligence = | bonus primary attribute = | bonus secondary attributes = | bonus health = | bonus health regen = | bonus max hp health regen = | bonus mana = | bonus mana regen = | bonus armor = | bonus evasion = | bonus magic resistance = | bonus status resistance = | bonus movement speed flat = | bonus movement speed percent = | bonus turn rate = | bonus cooldown reduction = | bonus debuff duration = | bonus mana loss reduction = | bonus attack damage = | bonus attack damage melee = | bonus attack damage ranged = | bonus base attack damage = | bonus spell damage = | bonus attack speed = | bonus attack animation speed = | bonus projectile speed = | bonus attack range = | bonus attack range melee = | bonus attack range ranged = | bonus cast range = | bonus lifesteal = | bonus spell lifesteal = | bonus heal amplification = | bonus health regen amplification = | bonus mana restore amplification = | bonus mana regen amplification = | bonus lifesteal amplification = | bonus spell lifesteal amplification = | bonus vision = | bonus day vision = | bonus night vision = | bonus gold = | bonus experience = | used in 1 = | used in 2 = | used in 3 = | used in 4 = | used in 5 = | used in 6 = | used in 7 = | used in 8 = | recipe 1 = | recipe 2 = | recipe 3 = | recipe 4 = | recipe 5 = | recipe 6 = | recipe 7 = | recipe 8 = | recipe cost = }}
Определения
Атрибут | Описание |
---|---|
game | Used as a filter for cargo. Use this only for items that are not part of the default Dota 2 game. |
title | The name of the item. Copy the exact in-game name. |
image | The item's icon. It should have one, otherwise put file:Unknown icon.png as a placeholder. |
image# | Some items have multiple variations of their icons. In those cases, list them all with these parameters. Can list up to 5 icons. |
lore | Lore text of the item, which is located at the very bottom of the item tooltips. Leave blank if no lore is present. |
modifier | The item's modifier, responsible or everything the item does. Use the official intern modifier name. The modifier names can be found out with the help of the Console. |
shop | Under which category is the item listed in the shop? Options: Consumables, Attributes, Equipment, Miscellaneous, Accessories, Support, Magical, Weapons, Armor, Artifacts, Secret, Roshan Drop, Removed Item, Seasonal Event, Drop Only, Neutral |
base | Is this item available at the base shops? If yes, set this to yes. If no, leave this out. |
secret | Is this item available at the secret shops? If yes, set this to yes. If no, leave this out. |
side lane | Is this item available at the side lane shops? If yes, set this to yes. If no, leave this out. |
tier | The tier of neutral items. Do not use on other items. |
passive | If the item has a passive ability, put the name of the ability here. Can put 2 passive abilities (passive/passive2) |
active | If the item has an active ability, put the naem of the ability here. |
can-alert-allies | Does ALT-pinged the item send an alert out to the allies? If yes, set this to yes. If no, leave this out. |
can-disassemble | Can this upgraded item be Disassembled? If yes, set this to yes. If no, leave this out. |
charges | Does this item have a limited amount of uses? If yes, put the amount here. |
initial stock | Can this item go out of stock? If yes, put the initial stock count here. |
max stock | In conjunction with initial stock, put the max stock count of the item here. |
restock time | In conjunction with initial and max stock, put the amount of time in seconds it takes for the item to restock. |
bonus strength | Put strength bonus here. |
bonus agility | Put agility bonus here. |
bonus intelligence | Put intelligence bonus here. |
bonus primary attribute | Put primary attribute bonus here. |
bonus secondary attributes | Put secondary attribute bonus here. |
bonus health | Put health bonus here. |
bonus health regen | Put health regen bonus here. |
bonus max hp health regen | Put health bonus based on maximum health here. |
bonus mana | Put mana bonus here. |
bonus mana regen | Put mana regen bonus here. |
bonus armor | Put armor bonus here. |
bonus evasion | Put evasion bonus here. |
bonus magic resistance | Put magic resistance bonus here. |
bonus status resistance | Put status resistance bonus here. |
bonus movement speed flat | Put flat movement speed bonus here. |
bonus movement speed percent | Put percentage-based movement speed bonus here. |
bonus turn rate | Put turn rate bonus here. |
bonus cooldown reduction | Put cooldown reduction bonus here. |
bonus debuff duration | Put debuff duration bonus here. |
bonus mana loss reduction | Put mana loss reduction bonus here. |
bonus attack damage | Put attack damage bonus here. |
bonus attack damage melee | Put melee attack damage bonus here. |
bonus attack damage ranged | Put ranged attack damage bonus here. |
bonus base attack damage | Put base attack damage bonus here. |
bonus spell damage | Put spell damage amplification bonus here. |
bonus attack speed | Put attack speed bonus here. |
bonus attack animation speed | Put attack animation speed bonus here. |
bonus projectile speed | Put attack projectile speed bonus here. |
bonus attack range | Put attack range bonus here. |
bonus attack range melee | Put melee attack range bonus here. |
bonus attack range ranged | Put ranged attack range bonus here. |
bonus cast range | Put cast range bonus here. |
bonus lifesteal | Put lifesteal bonus here. |
bonus spell lifesteal | Put spell lifesteal bonus here. |
bonus heal amplification | Put heal amplification bonus here. |
bonus health regen amplification | Put health regen amplification bonus here. |
bonus mana restore amplification | Put mana restore amplification bonus here. |
bonus mana regen amplification | Put mana regen amplification bonus here. |
bonus lifesteal amplification | Put lifesteal amplification bonus here. |
bonus spell lifesteal amplification | Put spell lifesteal amplification bonus here. |
bonus vision | Put vision range bonus here. |
bonus day vision | Put day vision range bonus here. |
bonus night vision | Put night vision range bonus here. |
bonus gold | Put periodic gold bonus here. |
bonus experience | Put experience gain bonus here. |
used in # | If this item is a component of another item, list that item here. Can list up to 5 items (used in 1/used in 2/etc). |
recipe # | If this is an upgraded item, list its components here. Can list up to 5 component items (recipe 1/recipe 2/etc). |
recipe cost | If this upgraded item has a recipe, list its cost here. |
item cost | The total gold cost of this item. Use only on basic abilities. Upgraded abilities are getting calculated automatically, based on their components and recipe costs. |
sell value | If an item cannot be bought, but can be sold (i.e. Рошан drops), put its sell value here. Leave out otherwise. |