Шаблон:Item infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
|||
Строка 11: | Строка 11: | ||
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p> | <p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p> | ||
<div class="wrapper"> | <div class="wrapper"> | ||
− | ;[[Item| | + | ;[[Item|Тип предмета]] |
:{{#arraymap: {{{type|}}} |,|@@@|{{#switch: {{lc:@@@}} | :{{#arraymap: {{{type|}}} |,|@@@|{{#switch: {{lc:@@@}} | ||
| alcohol | | alcohol | ||
Строка 60: | Строка 60: | ||
| ''Unspecified'' | | ''Unspecified'' | ||
}} |<br>}}{{#if: {{{material type|}}} | | }} |<br>}}{{#if: {{{material type|}}} | | ||
− | ;[[Crafting material| | + | ;[[Crafting material|Тип материала]] |
:{{#arraymap: {{{material type}}} |,|@@@|{{#switch: {{lc:@@@}} | :{{#arraymap: {{{material type}}} |,|@@@|{{#switch: {{lc:@@@}} | ||
| basic = [[Crafting material#Common crafting materials|Basic material]] | | basic = [[Crafting material#Common crafting materials|Basic material]] | ||
Строка 85: | Строка 85: | ||
| armor skin | | armor skin | ||
| weapon skin = {{#if: {{{skin|}}} | | | weapon skin = {{#if: {{{skin|}}} | | ||
− | ;[[Skin]] | + | ;[[Skin|Шкурка]] |
:{{#arraymap: {{{skin}}} |,|@@@|{{ifexists|@@@ (skin) | :{{#arraymap: {{{skin}}} |,|@@@|{{ifexists|@@@ (skin) | ||
| {{cname|@@@ (skin)}}{{#set:Has skin=@@@ (skin)}} | | {{cname|@@@ (skin)}}{{#set:Has skin=@@@ (skin)}} | ||
Строка 93: | Строка 93: | ||
| recipe | | recipe | ||
| recipe sheet = | | recipe sheet = | ||
− | ;[[Crafting#Crafting disciplines| | + | ;[[Crafting#Crafting disciplines|Дисциплины]] |
:{{#vardefine:recipe-object|{{#ask:[[Learned from recipe sheet::{{PAGENAME}}]]|link=none}}}}<!-- | :{{#vardefine:recipe-object|{{#ask:[[Learned from recipe sheet::{{PAGENAME}}]]|link=none}}}}<!-- | ||
-->{{#arraymap:{{#var:recipe-object}}|,|@@@|{{#ask:[[@@@]]|?Requires rating|?Requires discipline|link=none|format=template|template=Template:Item infobox/recipe object result format}}|}} | -->{{#arraymap:{{#var:recipe-object}}|,|@@@|{{#ask:[[@@@]]|?Requires rating|?Requires discipline|link=none|format=template|template=Template:Item infobox/recipe object result format}}|}} | ||
| miniature = | | miniature = | ||
− | ;[[Miniature#List of miniatures| | + | ;[[Miniature#List of miniatures|Набор миниатюр]] |
:{{#if:{{{miniature set|}}}|[[Is part of miniature set::{{ucfirst:{{{miniature set}}}}}]]}} | :{{#if:{{{miniature set|}}}|[[Is part of miniature set::{{ucfirst:{{{miniature set}}}}}]]}} | ||
| alcohol = | | alcohol = | ||
− | ; | + | ;Алкоголь |
: {{#if: {{{alcohol|}}} | [[Has alcohol content::{{{alcohol}}}]] }} | : {{#if: {{{alcohol|}}} | [[Has alcohol content::{{{alcohol}}}]] }} | ||
| container = {{#if: {{{tier|}}} | | | container = {{#if: {{{tier|}}} | | ||
− | ;[[Container#Crafting material containers| | + | ;[[Container#Crafting material containers|Уровень]] |
:[[Has container tier::{{{tier}}}]] | :[[Has container tier::{{{tier}}}]] | ||
}} | }} | ||
| crafting material = {{#if:{{{tier|}}} | | | crafting material = {{#if:{{{tier|}}} | | ||
− | ;[[Crafting#Materials| | + | ;[[Crafting#Materials|Уровень]] |
:[[Has crafting tier::{{{tier}}}]] | :[[Has crafting tier::{{{tier}}}]] | ||
}} | }} | ||
}}{{#if: {{{material storage|}}} | | }}{{#if: {{{material storage|}}} | | ||
− | ;[[Material storage| | + | ;[[Material storage|Хран. материалов]] |
:{{{material storage}}} | :{{{material storage}}} | ||
}}{{#ifexpr: {{#ask:[[Has ingredient::?;?;{{PAGENAME}}]][[Has recipe source::!Mystic forge]]|format=count}} > 0 | | }}{{#ifexpr: {{#ask:[[Has ingredient::?;?;{{PAGENAME}}]][[Has recipe source::!Mystic forge]]|format=count}} > 0 | | ||
− | ;[[Crafting#Crafting disciplines| | + | ;[[Crafting#Crafting disciplines|Дисциплины]] |
:{{#arraymap: Armorsmith,Artificer,Chef,Huntsman,Jeweler,Leatherworker,Scribe,Tailor,Weaponsmith |,|@@@| | :{{#arraymap: Armorsmith,Artificer,Chef,Huntsman,Jeweler,Leatherworker,Scribe,Tailor,Weaponsmith |,|@@@| | ||
{{#vardefine:@@@_min_rating|{{#ask:[[Has ingredient::?;?;{{PAGENAME}}]][[Requires discipline::@@@]]|?Requires rating|format=min|default=-1}}}} | {{#vardefine:@@@_min_rating|{{#ask:[[Has ingredient::?;?;{{PAGENAME}}]][[Requires discipline::@@@]]|?Requires rating|format=min|default=-1}}}} |
Текущая версия на 16:19, 20 октября 2018
Содержание
Usage[править]
Use this infobox for defining general items within the game, e.g. trophies, recipe sheets, crafting materials. If the item is used in crafting or is a recipe, its associated crafting disciplines will be displayed as well automatically.
{{item infobox | name = | icon = | description = | hint = | type = | level = | rarity = | value = | bound = | id = | release = | status = }}
Parameters[править]
Parameter | Optional? | Default | Notes |
---|---|---|---|
name | Optional | Name of the article ({{PAGENAME}} ) |
|
icon | Optional | File:{{PAGENAME}} .png |
Inventory icon. |
description | Verbatim from the game | ||
hint | Used only for collection items that display hint text | ||
type | <type> | Use only these values:
| |
material type | Optional | The material type for any item with type = Crafting material set.Use any of the following:
| |
material storage | Optional |
| |
tier | Optional | The crafting tier for any crafting material | |
key | Optional | Keyword for categorization, e.g.
| |
alcohol | Optional | Parameter for alcohol level of items in Category:Alcohol; the number of points the drink contributes to Thirst Slayer upon consumption. | |
skin type | Optional | Identifies the skin type for type = skin . Set to values prescribed by Property:Has skin type.
| |
skin | Optional | Identifies the skin unlocked for type = skin . Separate multiple values with a comma.
| |
miniature set | Optional | Identifies the miniature set that a miniature belongs to. This can either be "special" or a number, e.g. "1" for set #1. | |
miniature index | Optional | The order in which miniatures appear in the account vault. Assists with semantic queries and does not display anything on the page. | |
decoration type | Optional | Identifies the decoration type for type = decoration . Set to values prescribed by Property:Has decoration type.
| |
mount type | Optional | Identifies the mount type for type = mount skin .
| |
variables | Optional | The benefits of gemstones, jewels and consumables. Use Template:Item stat/Template:Nourishment for this parameter. | |
categorize | Optional | Set to "n" to skip auto-categorization. Rarely used but useful for corner-case pages. If using "status", don't set this parameter. | |
status | Optional | Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options:
| |
status notes | Optional | Allows provision of additional reason for the given status. | |
release | Optional | The expansion or living world season required to access the content. Displays a notice of the release. See {{infobox release}} for options. |
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.
For miniatures, decorations, weapon skins, outfits, mount skins, musical instruments and toys the following parameters may be used. To force a gallery not to show set gallery to "no". Arraymap parameters
- gallery
- Optional. Enter images using
+<Image>, <Caption>
with a newline between the caption and the next image. Defaults to <page name>.jpg
Legacy parameters
- name
- Required. The canonical name of item, used for Property:Has caption.
- gallery1 ... gallery5
- Optional. Gallery images of the weapon. Defaults to <page name>.jpg
- gallery1-text ... gallery5-text
- Optional. Gallery image descriptions.
Example[править]
{{Item infobox | description = This mysterious symbol-covered object contains valuable loot.<br>Double-click to open. | type = consumable | rarity = masterwork | bound = account | id = 75409 }}
Cracked Fractal Encryption
- Тип предмета
- Consumable
- Редкость
- Искусный
- Привязка
- Привязка к аккаунту
- Игр. ссылка
- API
- API
“This mysterious symbol-covered object contains valuable loot.
Double-click to open.— Внутриигровое описание
See also[править]
- {{Upgrade component infobox}} for upgrade components
- {{Armor infobox}} for armors
- {{Weapon infobox}} for weapons
- {{Trinket infobox}} for accessories
- {{Inventory infobox}} for bags, packs and boxes