Difference between revisions of "Template:Vendor table header"
Jump to navigation
Jump to search
m |
|||
(20 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{| {{STDT|npc sortable}}{{#vardefine:vendor_section|{{{section|General}}}}} {{#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|}}}}} {{#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| | ||
!! {{#if:{{{rarityWidth|}}}|style="min-width:{{{rarityWidth}}}"}} {{!}} Rarity}} {{#vardefine:showLevel |{{{showLevel|true}}}}}{{#ifeq: {{#var:showLevel}} |true| | !! {{#if:{{{rarityWidth|}}}|style="min-width:{{{rarityWidth}}}"}} {{!}} Rarity}} {{#vardefine:showLevel |{{{showLevel|true}}}}}{{#ifeq: {{#var:showLevel}} |true| | ||
!! {{#if:{{{levelWidth|}}} |style="min-width:{{{levelWidth}}}" }} {{!}} Level}} | !! {{#if:{{{levelWidth|}}} |style="min-width:{{{levelWidth}}}" }} {{!}} Level}} {{#ifeq:{{{showCostText|false}}}|true|{{#vardefine:showCostText|+}}}} | ||
!! {{#if:{{{costWidth|}}} |style="min-width:{{{costWidth}}}" }} {{!}} Cost | !! {{#if:{{{costWidth|}}} |style="min-width:{{{costWidth}}}" }} {{!}} Cost {{#vardefine:showAdditional |{{{showAdditional|false}}}}}{{#ifeq: {{#var:showAdditional}} |true| | ||
| | !! Unlock req.}} {{#if:{{{section|}}}{{{hideUnspecifiedCategory|}}}||[[Category:Vendors with unspecified sections]]}}</includeonly><noinclude> | ||
| || || || | |||
== Usage == | == Usage == | ||
'''ONLY FOR USE ON VENDOR PAGE! DO NOT USE ON ITEM OR GEAR PAGES!'''<br> | |||
The table header for vendor inventories. For use with {{tl|vendor table row}}. | The table header for vendor inventories. For use with {{tl|vendor table row}}. | ||
<pre> | <pre> | ||
Line 17: | Line 16: | ||
| showRarity = | | showRarity = | ||
| showLevel = | | showLevel = | ||
| | | showAdditional = | ||
| vendor = | |||
| location = | |||
| coordinates = | |||
}} | }} | ||
</pre> | </pre> | ||
Line 30: | Line 32: | ||
;showLevel | ;showLevel | ||
: Default true. Show the required level to equip or use the item. | : Default true. Show the required level to equip or use the item. | ||
; | ;showAdditional | ||
: Default true. Show the item | : Default true. Show additional requirements to purchase the item. | ||
;showCostText | ;showCostText | ||
: Default false. Show the text description for item prices given with irregular currencies. | : Default false. Show the text description for item prices given with irregular currencies. | ||
; vendor | |||
: Optional. The vendor's pagename. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>. | |||
;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 | ;no subobjects | ||
: Default false. If present this parameter will prevent subobjects from {{tl|Vendor table row}} being stored on the page in question. | : Default false. If present this parameter will prevent subobjects from {{tl|Vendor table row}} being stored on the page in question. |
Latest revision as of 23:54, 25 November 2023
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 true. 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.