Template:Vendor table header: Difference between revisions
Jump to navigation
Jump to search
add section-req |
|||
| Line 1: | Line 1: | ||
<includeonly>{| {{STDT|npc sortable {{#if:{{{collapsible|}}}| mw-collapsible}}}}{{#vardefine:vendor_section|{{{section|General}}}}}{{#vardefine:vendor_variable_location|{{{location|}}}}}{{#vardefine:vendor_variable_coordinates|{{{coordinates|}}}}}{{#vardefine:vendor_pagename|{{{vendor|}}}}} {{#if: {{{no subobjects|}}} | {{#vardefine:suppress VTR subobjects|+}} }} | <includeonly>{| {{STDT|npc sortable {{#if:{{{collapsible|}}}| mw-collapsible}}}}{{#vardefine:vendor_section|{{{section|General}}}}}<!-- | ||
-->{{#vardefine:vendor_variable_location|{{{location|}}}}}<!-- | |||
-->{{#vardefine:vendor_variable_coordinates|{{{coordinates|}}}}}<!-- | |||
-->{{#vardefine:vendor_pagename|{{{vendor|}}}}}<!-- | |||
-->{{#vardefine:section-req|{{{section-req|}}}}}<!-- | |||
-->{{#if: {{{no subobjects|}}} | {{#vardefine:suppress VTR subobjects|+}} }} | |||
! {{#if:{{{itemWidth|}}} |style="min-width:{{{itemWidth}}}" }} {{!}} Item {{#vardefine:showType |{{{showType|true}}}}}{{#ifeq: {{#var:showType}} |true| | ! {{#if:{{{itemWidth|}}} |style="min-width:{{{itemWidth}}}" }} {{!}} Item {{#vardefine:showType |{{{showType|true}}}}}{{#ifeq: {{#var:showType}} |true| | ||
!! {{#if:{{{typeWidth|}}} |style="min-width:{{{typeWidth}}}" }} {{!}} Type}} {{#vardefine:showRarity |{{{showRarity|true}}}}}{{#ifeq:{{#var:showRarity}}|true| | !! {{#if:{{{typeWidth|}}} |style="min-width:{{{typeWidth}}}" }} {{!}} Type}} {{#vardefine:showRarity |{{{showRarity|true}}}}}{{#ifeq:{{#var:showRarity}}|true| | ||
Revision as of 18:52, 18 May 2026
Usage
ONLY FOR USE ON VENDOR PAGE! DO NOT USE ON ITEM OR GEAR PAGES!
The table header for vendor inventories. For use with {{vendor table row}}.
{{vendor table header
| section =
| showType =
| showRarity =
| showLevel =
| showAdditional =
| vendor =
| location =
| coordinates =
}}
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 rarity of the item.
- showLevel
- Default true. Show the required level to equip or use the item.
- showAdditional
- Default false. Show additional requirements to purchase the item.
- showCostText
- Default false. Show the text description for item prices given with irregular currencies.
- vendor
- Optional. The vendor's pagename. Defaults to
{{PAGENAME}}. - location
- Optional. Denotes the variable location that this vendor offers this selling list.
- coordinates
- Optional. Denotes the variable coordinates that this vendor offers this selling list.
- no subobjects
- Default false. If present this parameter will prevent subobjects from {{Vendor table row}} being stored on the page in question.
Examples
Default
{{vendor table header}}
{{vendor table row|item=Iron Ore|cost=18 Gil}}
|}
| Item | Type | Rarity | Level | Cost |
|---|---|---|---|---|
| Iron Ore | Material | Basic | — |
Hide columns
{{vendor table header
|showType = False
|showRarity = False
|showLevel = False}}
{{vendor table row|item=Iron Ore|cost=18 Gil}}
|}
| Item | Cost |
|---|---|
| Iron Ore |
Show optional columns/info
{{vendor table header
|showAdditional = true
|showCostText = true
}}
{{vendor table row|item=1 Artisan's Spectacles|cost=1&HQ Spruce Plywood|req={{i|Just Tooling Around}}}}
|}
| Item | Type | Rarity | Level | Cost | Unlock req. |
|---|---|---|---|---|---|
| Artisan's Spectacles | Head | Green | 50 |
1 Spruce Plywood | Just Tooling Around |