Template:Vendor table row: Difference between revisions

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
support section-req
Undo revision 1311881 by Gurgum (talk) - reverting per https://discord.com/channels/312060255469305856/1506374993486020628
Tag: Undo
Line 1: Line 1:
<includeonly><!--"All" requirements include the vendor section unlock. This will be displayed on the item pages, but not in the individual vendor item rows.-->{{#vardefine:all-requirements|
<includeonly>|- id="vendor{{#vardefineecho:vendorcnt|{{#expr:{{#var:vendorcnt|0}}+1}}}}" class="{{{rowclass|{{#ifeq: {{{status|}}}|historical|gray}}}}}"
{{#arraymap:{{#var:section-req}};{{{req|}}};{{{rank|}}}|;|@@@|@@@|<br>
}}}}<!--
-->|- id="vendor{{#vardefineecho:vendorcnt|{{#expr:{{#var:vendorcnt|0}}+1}}}}" class="{{{rowclass|{{#ifeq: {{{status|}}}|historical|gray}}}}}"
| data-sort-value="{{#var:item_page}}" | {{Vendor table row result format|item={{{item|}}}|type={{{type|}}}|rarity={{{rarity|}}}|level={{{level|}}}}}
| data-sort-value="{{#var:item_page}}" | {{Vendor table row result format|item={{{item|}}}|type={{{type|}}}|rarity={{{rarity|}}}|level={{{level|}}}}}
| data-sort-value="{{uc:{{#arraymap: {{{cost|}}} |+|@@@| {{#sub:@@@|{{#pos:@@@| }}}} {{padleft:{{#replace:{{#explode:@@@| |0}}|,|}}|8}} |}}}}" style="text-align:left;" | {{#vardefine:data_cost_obj|}}{{#if:{{{cost|}}}|{{#arraymap:{{{cost|}}} | + | @@@ | {{#vardefine:cost_data|{{#explode:@@@| |0}}}}<!--
| data-sort-value="{{uc:{{#arraymap: {{{cost|}}} |+|@@@| {{#sub:@@@|{{#pos:@@@| }}}} {{padleft:{{#replace:{{#explode:@@@| |0}}|,|}}|8}} |}}}}" style="text-align:left;" | {{#vardefine:data_cost_obj|}}{{#if:{{{cost|}}}|{{#arraymap:{{{cost|}}} | + | @@@ | {{#vardefine:cost_data|{{#explode:@@@| |0}}}}<!--
Line 19: Line 16:
|Sells item 3={{#explode:{{#var:data_store_obj}}|^|2}}
|Sells item 3={{#explode:{{#var:data_store_obj}}|^|2}}
|Sells item 4={{#explode:{{#var:data_store_obj}}|^|3}}
|Sells item 4={{#explode:{{#var:data_store_obj}}|^|3}}
|Has item additional requirement={{#var:all-requirements}}
|Has item additional requirement={{{req|}}}{{{rank|}}}
|Suppress vendor unlock={{{suppress|}}}
|Suppress vendor unlock={{{suppress|}}}
|Has item cost 1={{#explode:{{#var:data_cost_obj}}|^|0}}
|Has item cost 1={{#explode:{{#var:data_cost_obj}}|^|0}}
Line 89: Line 86:
;rarity
;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]].
: Optional. Rarity of the item. Only required if the item has more than one possible rarity or undefined. Defaults to [[Property:Has item rarity]].
;req
 
: Optional. Requirements to purchase the item from the vendor.
;rank
: Optional. This may not be currently used...?
== Example ==
== Example ==
<pre>
<pre>

Revision as of 19:34, 19 May 2026


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 = 
| 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
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|showAdditional=true}}
{{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 Unlock req.
Raisins
Frumenty (3)
Meal
Meal
ABasic
ABasic


Gil 10
Homura Gladiator's Arm CBlue 70
Protean Crystal 30 + Fire Shard 1
Frumenty (2) Meal ABasic
Ice Shard 2 + Black Willow Log 5
Fire Cluster (2-8) Crystal ABasic 50
Black Willow Lumber 1 ( 1540) Clear all Savage fights, Collect all horse mounts