Template:Vendor table row

From Guild Wars 2 Wiki
Jump to: navigation, search


Usage[edit]

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. Additional formatting is provided by {{Vendor table row result format}}.

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

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

Subobject[edit]

The table creates a subobject with the following properties:

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

Parameters[edit]

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.
cost icon
Optional. Specify this parameter to define a custom currency icon. This parameter must include the file extension.
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.
status
Optional. Sets Property:Has availability, use values per that page.
rowclass
Optional. Add a css class to the row.

Example[edit]

{{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 (furniture)
| quantity = 2 <!-- displays a (2) after the item name. -->
| cost = 200 coin
}}
|}
Item Type Rarity Level Facts Cost
Endless Mystery Cat Tonic.png Endless Mystery Cat Tonic Tonic FExotic 100 Laurel.png
Piece of Elementalist Gear.png Piece of Elementalist Gear Container ERare
30 Watchwork Sprocket.png
 + 30 Silver coin 0 Copper coin
Cirque of Arah.png Cirque of Arah Ring GAscended 80
+126 Precision.png Precision
+85 Power.png Power
+85 Toughness.png Toughness
100 Laurel.png + 
Glob of Ectoplasm.png
Mystery Tonic (furniture).png Mystery Tonic (2) Tonic BBasic 2 Silver coin 0 Copper coin