Difference between revisions of "Template:Vendor table row"
Jump to navigation
Jump to search
Tag: Manual revert |
|||
Line 6: | Line 6: | ||
--><!-- HQ or Col? -->{{#vardefine:cost_hq|false}}{{#vardefine:cost_col|?}}{{#vardefine:cost_hqcol|{{lc:{{#explode:{{#var:cost_data}}|&|1}}}}}}{{#if:{{#var:cost_hqcol}}|{{#ifeq:{{#var:cost_hqcol}}|hq|{{#vardefine:cost_hq|true}}|{{#vardefine:cost_col|{{#var:cost_hqcol}}}} }} }}<!-- | --><!-- HQ or Col? -->{{#vardefine:cost_hq|false}}{{#vardefine:cost_col|?}}{{#vardefine:cost_hqcol|{{lc:{{#explode:{{#var:cost_data}}|&|1}}}}}}{{#if:{{#var:cost_hqcol}}|{{#ifeq:{{#var:cost_hqcol}}|hq|{{#vardefine:cost_hq|true}}|{{#vardefine:cost_col|{{#var:cost_hqcol}}}} }} }}<!-- | ||
--><!-- Actual currency -->{{currency|{{#var:cost_qty|1}}|{{#var:cost_name}}|icon={{{cost icon|}}}|text={{#if:{{#var:showCostText|}}|+}}|hq={{#ifeq:{{#var:cost_hq}}|false||true}}}} {{#ifeq:{{#var:cost_col}}|?||({{Collectable|12}} {{#var:cost_col}})}}{{#vardefine:data_cost_obj|{{#var:data_cost_obj}}{{#if:{{#var:data_cost_obj}}|^}}{{#var:cost_qty}};{{#var:cost_name}};{{#var:cost_col}};{{#var:cost_hq}} }}| + }} | --><!-- Actual currency -->{{currency|{{#var:cost_qty|1}}|{{#var:cost_name}}|icon={{{cost icon|}}}|text={{#if:{{#var:showCostText|}}|+}}|hq={{#ifeq:{{#var:cost_hq}}|false||true}}}} {{#ifeq:{{#var:cost_col}}|?||({{Collectable|12}} {{#var:cost_col}})}}{{#vardefine:data_cost_obj|{{#var:data_cost_obj}}{{#if:{{#var:data_cost_obj}}|^}}{{#var:cost_qty}};{{#var:cost_name}};{{#var:cost_col}};{{#var:cost_hq}} }}| + }} | ||
{{#ifeq:{{#var:showAdditional}}|true|{{!}} style="text-align:left;" {{!}} | {{#ifeq:{{#var:showAdditional}}|true|{{!}} style="text-align:left;" {{!}} {{{req|}}} }}<!-- | ||
-->{{#if:{{#var:suppress VTR subobjects|}}||{{#subobject:vendor{{#var:vendorcnt}} | -->{{#if:{{#var:suppress VTR subobjects|}}||{{#subobject:vendor{{#var:vendorcnt}} | ||
|Has vendor={{#var:vendor_pagename|{{PAGENAME}}}} | |Has vendor={{#var:vendor_pagename|{{PAGENAME}}}} |
Revision as of 08:15, 5 November 2023
Usage
ONLY FOR USE ON VENDOR PAGE! DO NOT USE ON ITEM OR GEAR PAGES!
The table row for items for use in vendor inventory tables. For use with {{vendor table header}}. Additional formatting is provided by {{Vendor table row result format}}.
{{vendor table row | item = | cost = }} {{vendor table row | item = | type = | level = | rarity = | cost = | cost icon = | req = }}
Subobject
The table creates a subobject with the following properties:
- Has vendor
- Has vendor location (pulled from vendor table header)
- Has vendor section
- Sells item 1
- Sells item 2
- Sells item 3
- Sells item 4
- Has item additional requirement
- Has item cost 1
- Has item cost 2
- Has item cost 3
- Has item cost 4
Parameters
- item
- Required. Quantity and name of the items sold, separated by +. It accepts the form
<quantity & high-quality> <item name>
(notice that the & separates quantity and whether an item is high quality or not). - Examples:
- item = 1 Wind Shard + 3 Wind Shard
- item = 2 Fire Cluster + 1&HQ Iron Ingot
- cost
- Required. The cost of the item. Use a + symbol if the item requires multiple currencies. It accepts the form
<quantity & collectability/HQ> <item name>
(notice that the & separates quantity and collectability/whether an item is high quality or not with the flag "HQ"). Remember an item cannot be collectable and HQ at the same time. - Examples:
- cost = 2 Fire Shard + 10 Fire Crystal
- cost = 1 Raisins + 1&HQ Black Willow Log
- cost = 3&455 Black Willow Lumber
- 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.
- 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 = 1 Raisins + 3&HQ Frumenty | 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 = 2 Frumenty | cost = 2 Ice Shard + 5&HQ Black Willow Log }} {{vendor table row | item = 2-8 Fire Cluster <!-- displays a variable quantity (2-8) after the item name. --> | cost = 1&1540 Black Willow Lumber | req = Clear all Savage fights, Collect all horse mounts }} |}
Item | Type | Rarity | Level | Cost |
---|---|---|---|---|
Raisins Frumenty (3) |
Meal Meal |
Basic Basic |
— — |
10 |
Homura | Gladiator's Arm | Blue | 70 |
30 + 1 |
Frumenty (2) | Meal | Basic | — |
2 + 5 |
Fire Cluster (2-8) | Crystal | Basic | 50 |
1 ( 1540) |