Шаблон:Default item parameter — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
Строка 26: Строка 26:
 
;[[Binding|Привязка]]
 
;[[Binding|Привязка]]
 
:{{#switch: {{lc:{{{bound}}}}}
 
:{{#switch: {{lc:{{{bound}}}}}
|u|use|on use = [[Soulbound|Привязка к персонажу]] при использовании
+
|u|use|on use = [[Soulbound|Привязка к персонажу]] при использовании {{#set:Has item binding=SoulBindOnUse}}
|a|acquire|on acquire = [[Soulbound|Привязка к персонажу]] при получении{{#vardefine:tradable|no}}
+
|a|acquire|on acquire = [[Soulbound|Привязка к персонажу]] при получении{{#vardefine:tradable|no}} {{#set:Has item binding=SoulbindOnAcquire}}
|ab|account|account bound|account bound on acquire = [[Account Bound|Привязка к аккаунту]]{{#vardefine:tradable|no}}
+
|ab|account|account bound|account bound on acquire = [[Account Bound|Привязка к аккаунту]]{{#vardefine:tradable|no}} {{#set:Has item binding=AccountBound}}
|absb|accountsoul|account soul = [[Account Bound|Привязка к аккаунту]]<br>[[Soulbound|Привязка к персонажу]] при использовании{{#vardefine:tradable|no}}
+
|absb|accountsoul|account soul = [[Account Bound|Привязка к аккаунту]]<br>[[Soulbound|Привязка к персонажу]] при использовании{{#vardefine:tradable|no}} {{#set:Has item binding=AccountBound,SoulBindOnUse|+sep=,}}
|abu|accountuse|account on use = [[Account Bound|Привязка к аккаунту]] при использовании
+
|abu|accountuse|account on use = [[Account Bound|Привязка к аккаунту]] при использовании {{#set:Has item binding=AccountBindOnUse}}
 
|#default = ''Unknown''
 
|#default = ''Unknown''
 
}} }} }}{{ #if: {{{cost|}}} |  
 
}} }} }}{{ #if: {{{cost|}}} |  

Версия 16:30, 1 августа 2016



Documentation

Usage

This template defines values available on all items and is implemented as a subtemplate on all infobox templates for items.

{{default item parameter
| collection =
| rarity =
| level =
| race = 
| unique =
| bound =
| cost =
| value =
| id =
| skin id =
}}

Parameters

The following parameters are handled by the {{Default item parameter}} template:

collection 
Optional. If the item is part of any collections.
rarity 
Specified rarity: junk, basic, fine, masterwork, rare, exotic, ascended, legendary. Will be set to Unspecified per default.
level 
Optional. Required level to use the item.
race 
Optional. Required race to use item. Currently only used for cultural armor and cultural weapons.
unique 
Optional. Whether the item is unique. "y" for yes, omit parameter if no.
bound 
Optional. Under what conditions the item becomes bound: no binding (default), use (soulbound on use), acquire (soulbound on acquisition), account, account soul (account bound on acquire, soul bound on use)
cost
Optional. Currency cost of the item when purchased from a vendor. To match it to the display in any vendor window, use the amount and the appropriate icon template, e.g. {{coin|500}}, 500 {{item icon|zhaitaffy}}, or 500 {{token|Guild Commendation}}
value
Optional. The number of Медная монета coins a vendor will pay for this item; use only the number, since the template assumes copper coins.
id
Optional. The item id. Does allow multiple ids to be set by using a comma-separated list.
other ids
Optional. Other item ids that are not displayed as chat links.
skin id
Optional. If given, an additional skin chat link will be displayed above the item chat link.


Implemented on