Difference between revisions of "Template:Vendor item table header"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| {{STDT|npc sortable}} style="display: table" {{#vardefine:vendor_section|{{{section|General}}}}} {{#if: {{{no subobjects|}}} | {{#vardefine:suppress VTR subobjects|+}} }}
{| {{STDT|npc sortable}}
! {{#if:{{{itemWidth|}}}  |style="min-width:{{{itemWidth}}}"  }} {{!}} Item     {{#vardefine:showType    |{{{showType|true}}}}}{{#ifeq:  {{#var:showType}}  |true|
! Item
!! {{#if:{{{typeWidth|}}}  |style="min-width:{{{typeWidth}}}" }} {{!}} Type}}  {{#vardefine:showRarity  |{{{showRarity|true}}}}}{{#ifeq:{{#var:showRarity}}|true|
! Vendor
!! {{#if:{{{rarityWidth|}}}|style="min-width:{{{rarityWidth}}}"}} {{!}} Rarity}} {{#vardefine:showLevel  |{{{showLevel|true}}}}}{{#ifeq: {{#var:showLevel}} |true|
! style="max-width:200px" | Location / Coordinates
!! {{#if:{{{levelWidth|}}} |style="min-width:{{{levelWidth}}}" }} {{!}} Level}}  {{#ifeq:{{{showCostText|false}}}|true|{{#vardefine:showCostText|+}}}}  
! Section
!! {{#if:{{{costWidth|}}}  |style="min-width:{{{costWidth}}}"  }} {{!}} Cost<noinclude>
! data-sort-type="number" | Cost {{#ifeq:{{{showCostText|false}}} | true | {{#vardefine:showCostText|+}} | {{#vardefine:showCostText|}} }}
|-
! Unlock req.
|-<noinclude>
| || || || ||
| || || || ||
|}
|}


== Usage ==
== Usage ==
The table header for vendor inventories. For use with {{tl|vendor table row}}.
This template supplies the header for {{tl|vendor table}}.
<pre>
<pre>
{{vendor table header
{{vendor item table header}}
| section =
|}
| showType =
| showRarity =
| showLevel =
}}
</pre>
</pre>


== Parameters ==
== Parameters ==
;section
: Optional. The name of the section (tab) the vendor item is located in.
;showType
: Default true. Show the type of item. This can be item type or any item subtypes such as armor type.
;showRarity
: Default true. Show the [[Item#Rarity|rarity]] of the item.
;showLevel
: Default true. Show the required level to equip or use the item.
;showCostText
;showCostText
: Default false. Show the text description for item prices given with irregular currencies.
:Default false. Shows the text for the cost of each item in addition to the icon.
;no subobjects
: Default false. If present this parameter will prevent subobjects from {{tl|Vendor table row}} being stored on the page in question.


[[Category:Vendor formatting templates]]
[[Category:Vendor formatting templates]]
</noinclude>
</noinclude>

Latest revision as of 01:50, 19 November 2023

Item Vendor Location / Coordinates Section Cost Unlock req.

Usage

This template supplies the header for {{vendor table}}.

{{vendor item table header}}
|}

Parameters

showCostText
Default false. Shows the text for the cost of each item in addition to the icon.