Шаблон:Vendor table row

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск


Usage[править]

The table row for items for use in vendor inventory tables. For use with {{vendor table header}}. The template queries for the item supplied by either name or id. If the item exists, the information is displayed. If the item doesn't exist, the item parameters can be supplied manually.

{{vendor table row
| item = 
| cost = 
}}

{{vendor table row
| item = 
| id = 
| type =
| level =
| rarity =
| quantity = 
| cost = 
}}

Subobject[править]

The table creates a subobject with the following properties:

  • Has vendor
  • Sells item
  • Has item quantity
  • Has item cost

Parameters[править]

item
Required. Name of the item. The id parameter overrides this parameter.
id
Optional. Look up an item by id rather than name. This is required if multiple items have the same name and you need the specific item sold by the vendor.
cost
Required. The cost of the item. Use a + symbol if the item requires multiple currencies.
type
Optional. The item type. Only required if the item type is undefined.
quantity
Optional. Quantity of item given by the purchase. Defaults to 1.
level
Optional. Level of the item. Only required if the item has more than one possible level or undefined. Defaults to Property:Has level requirement.
rarity
Optional. Rarity of the item. Only required if the item has more than one possible rarity or undefined. Defaults to Property:Has item rarity.

Example[править]

{{vendor table header}}
{{vendor table row
| item = Endless Mystery Cat Tonic
| cost = 100 laurel
}}
{{vendor table row
| item = Elementalist Gear
| cost = 30 Watchwork Sprocket + 3000 coin <!-- separate prices composed of multiple currencies with a + sign. -->
}}
{{vendor table row
| id = 39613 <!-- looks up item with matching game id -->
| cost = 100 laurel + 5 Glob of Ectoplasm
}}
{{vendor table row
| item = Mystery Tonic
| quantity = 2 <!-- displays a (2) after the item name. -->
| cost = 200 coin
}}
{{vendor table row
| id = -1337 <!-- negative id will break template -->
| cost = 100 laurel + 5 Glob of Ectoplasm
}}
|}
Item Type Rarity Level Facts Cost
Skill.png Endless Mystery Cat Tonic - Z- - - 100 Laurel.png
Skill.png Elementalist Gear - Z - -
30 Watchwork Sprocket.png
 + 30 Серебряная монета 0 Медная монета
Skill.png [[|
The page type input value ":" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
]]
- Z- - -
The page type input value ":" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
100 Laurel.png + 
Glob of Ectoplasm.png
Skill.png Mystery Tonic (2) - Z - - 2 Серебряная монета 0 Медная монета
Skill.png [[|
The page type input value ":" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
]]
- Z- - -
The page type input value ":" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
100 Laurel.png + 
Glob of Ectoplasm.png