Difference between revisions of "Template:Default item parameter"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
<includeonly>{{#set:Has context=Item}}{{#if: {{{rarity|}}} | | <includeonly>{{#set:Has context=Item}}{{#if: {{{rarity|}}} | | ||
;[[Item#Quality|Rarity]] | ; [[Item#Quality|Rarity]] | ||
:{{ | : {{rarity|{{{rarity}}}}}{{#set:Has item rarity={{ucfirst:{{{rarity}}}}}}} | ||
}}<!-- | |||
-->{{#if: {{{level|}}}| | |||
; [[Character#Progression|Req. level]] | |||
: [[Has level requirement::{{{level}}}]] | |||
}}<!-- | |||
}} | -->{{#if: {{{race|}}} | | ||
; [[Playable races|Req. race]] | |||
;[[Character#Progression|Req. level]] | : [[Is for race::{{ucfirst:{{{race|}}}}}]] | ||
: | }}<!-- | ||
-->{{#if: {{{gender|}}} | | |||
;[[Playable races|Req. race]] :[[Is for race::{{ucfirst:{{{race|}}}}}]] | ; Req. gender | ||
}}{{#if: {{{gender|}}} | | : {{#switch:{{lc:{{{gender}}}}} | ||
;Req. gender | | m | masculine | male = ♂ {{#set:Is for gender=Male}} | ||
| f | feminine | female = ♀ {{#set:Is for gender=Female}} | |||
}} | |||
}}<!-- | |||
-->{{#if: {{{recast|}}} | | |||
; Recast | |||
:{{#switch: {{lc:{{{ | : {{Convert time|{{{recast|}}}}} | ||
| | }}<!-- | ||
-->{{#if: {{{cost|}}} | | |||
| | ; [[Currency|Cost]] | ||
: {{{cost|}}} | |||
}}<!-- | |||
-->{{#if: {{{value|}}} | | |||
; [[Currency|Value]] | |||
;Recast | : {{gil|{{{value|}}}}}{{#set:Has vendor value={{{value|}}}}} | ||
:{{Convert time|{{{recast|}}}}} | }}</includeonly><noinclude> | ||
}}{{#if: {{{cost|}}} | | |||
;[[Currency|Cost]] | |||
:{{{cost|}}} | |||
}}{{#if: {{{value|}}} | | |||
;[[Currency|Value]] | |||
:{{gil|{{{value|}}}}} | |||
== Documentation == | == Documentation == | ||
Line 47: | Line 36: | ||
<pre> | <pre> | ||
{{default item parameter | {{default item parameter | ||
| rarity = | | rarity = | ||
| level = | | level = | ||
| race = | | race = | ||
| | | gender = | ||
| | | recast = | ||
| cost = | | cost = | ||
| value = | | value = |
Revision as of 12:07, 29 November 2017
Documentation
Usage
This template defines values available on all items and is implemented as a subtemplate on all infobox templates for items.
{{default item parameter | rarity = | level = | race = | gender = | recast = | cost = | value = }}
Parameters
The following parameters are handled by the {{Default item parameter}} template:
- level
- Optional. Required level to use the item.
- ilvl
- Optional. Item level.
- rarity
- Specified rarity: basic (white), aetherial (pink), dungeon (green), tomestone (blue), relic (purple). Will be set to Unspecified per default.
- race
- Optional. Required race to use item.
- gender
- Optional. Required gender to use item.
- recast
- Optional. Recast time (in seconds) for consumables such as medicine and meals.
- recast-hq
- Optional. Recast time (in seconds) for consumables such as medicine and meals if the item is high quality.
- cost
- Optional. Currency cost of the item when purchased from a vendor. To match it to the display in any vendor window, use the amount and the appropriate icon template, e.g. 500 {{gil}}, 2000 {{company seal}}, or 50 {{tomestone}}
- value
- Optional. The number of gils a vendor will pay for this item; if not specified sets the item as unsellable.
- value-hq
- Optional. The number of gils a vendor will pay for this item if high quality.
- seals
- Optional. The amount of seals earned through Grand Company deliveries.
- patch
- Optional. The patch where the item became available.
- id-edb
- ID number in the link to the item on Eorzea Database, for example, if the URL is https://na.finalfantasyxiv.com/lodestone/playguide/db/item/fb177317b75/, enter fb177317b75.
- id-gt
- ID number in the link to the item on Garland Tools, for example, if the URL is http://garlandtools.org/db/#item/11252, enter 11252.
Implemented on
- {{Armor infobox}} for armor
- {{Back item infobox}} for back items
- {{Crafting infobox}} for crafting materials for crafting professions and the Mystic Forge
- {{Dye infobox}} for dyes (reference to #var:tradable here)
- {{Inventory infobox}} for bags, packs and boxes
- {{Item infobox}} for general items
- {{Trinket infobox}} for accessories
- {{Upgrade component infobox}} for upgrade components
- {{Weapon infobox}} for weapons