User:Relyk/Vendor table row
From Guild Wars 2 Wiki
Jump to navigationJump to search
Usage[edit]
The table row for items for use in vendor inventory tables. for use with {{vendor table header}}.
{{vendor table row | item = | cost = }} {{vendor table row | item = | type = | quantity = | level = | rarity = | cost = }}
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
- (Not required if the id parameter is filled in instead)
- type
- The item type. Defaults to {{item type|<item>}}.
- quantity
- Quantity of item given by the purchase. Defaults to 1.
- level
- Level of the item. Only required if the item has more than one possible level. Defaults to Property:Has level requirement.
- rarity
- Rarity of the item. Only required if the item has more than one possible rarity. Defaults to Property:Has item rarity.
- cost
- The cost of the item. Use a + symbol if the item requires multiple currencies.
- id
- Optional. This parameter totally changes the internal behavior of the template. Do not use it to provide chat links because it won't work.
- If set, then the template will lookup the item matching that ID. This parameter allows item subobjects to be accessed.
Example[edit]
{{vendor table header}} {{vendor table row | item = Elementalist Gear | cost = 30 Watchwork Sprocket + 3000 coin }} {{vendor table row | item = Endless Mystery Cat Tonic | cost = 100 laurel }} {{vendor table row | item = Cirque of Arah | cost = 100 laurel + 5 Glob of Ectoplasm }}