Difference between revisions of "Template:Vendor table row"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m (Protected "Template:Vendor table row" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))

Revision as of 12:16, 31 August 2018


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. 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

The table creates a subobject with the following properties:

  • Has vendor
  • Sells item
  • Has item quantity
  • Has item cost
  • Has vendor location (pulled from vendor table header)

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.
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. Accepts a number or a variable quantity denoted by <min-max>. 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.
rowclass
Optional. Add a css class to the row.

Example

{{vendor table header}}
{{vendor table row
| item = Raisins
| cost = 10 gil
}}
{{vendor table row
| item = Homura
| cost = 30 Protean Crystal + 1 Fire Shard <!-- separate prices composed of multiple currencies with a + sign. -->
}}
{{vendor table row
| item = Frumenty
| quantity = 2 <!-- displays a (2) after the item name. -->
| cost = 14 gil
}}
{{vendor table row
| item = Fire Cluster
| quantity = 2-8 <!-- displays a variable quantity (2-8) after the item name. -->
| cost = 75 gil
}}
|}
Item Type Rarity Level Cost
style="text-align:center" style="text-align:center" style="text-align:center" | Gil 10
style="text-align:center" style="text-align:center" style="text-align:center" | Protean crystal icon1.png 30 + Fire Shard.png 1
style="text-align:center" style="text-align:center" style="text-align:center" | Gil 14
style="text-align:center" style="text-align:center" style="text-align:center" | Gil 75