Difference between revisions of "Template:Default item parameter"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(creation)
 
 
(97 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{#set:Has context=Item}}{{#if: {{{rarity|}}} |
<includeonly>{{#ifeq:{{lc:{{{type|}}}}}|currency|{{#set:Has context=Currency}}|{{#set:Has context=Item}}}}{{#if: {{{level|}}}|
;[[Item#Quality|Rarity]]
; Level
:{{#arraymap:{{lc:{{{rarity}}}}}|,|@@@|{{#switch:@@@
: [[Has level requirement::{{{level}}}]]
|gray|junk={{#set:Has item rarity=Junk}}
}}<!--
|white|common|basic={{#set:Has item rarity=Basic}}
-->{{#if: {{{ilvl|}}}|
|blue|uncommon|fine={{#set:Has item rarity=Fine}}
; [[Item Level]]
|green|mw||master|masterwork={{#set:Has item rarity=Masterwork}}
: [[Has item level::{{{ilvl}}}]]
|yellow|rare={{#set:Has item rarity=Rare}}
}}<!--
|orange|exotic={{#set:Has item rarity=Exotic}}
-->{{#if: {{{rarity|}}} |
|pink|ascended={{#set:Has item rarity=Ascended}}
; [[Rarity]]
|purple|legendary={{#set:Has item rarity=Legendary}}
: {{rarity|{{{rarity}}}}}{{#set:Has item rarity={{#switch:{{lc:{{{rarity|}}}}}| aetherial | pink = Aetherial | tomestone | blue = Tomestone | dungeon | green = Dungeon | relic | purple = Relic | basic | white = Basic}}}}
|#default={{#set:Has item rarity=Unknown}}
}}<!--
}} {{rarity|@@@}}
-->{{#if: {{{race|}}} |
|<br>}}}}{{#if: {{{level|}}}|
; [[Races|Req. race]]
;[[Character#Progression|Req. level]]  
: [[Is for race::{{ucfirst:{{{race|}}}}}]]
:{{#arraymap: {{{level}}} |,|@@@|[[Has level requirement::@@@]]}}
}}<!--
}}{{#if: {{{race|}}} |  
-->{{#if: {{{gender|}}} |
;[[Playable races|Req. race]] :[[Is for race::{{ucfirst:{{{race|}}}}}]]
; Req. gender
}}{{#if: {{{gender|}}} |  
: {{#switch:{{lc:{{{gender}}}}}
;Req. gender :[[Is for gender::{{ucfirst:{{{gender|}}}}}]]
  | m | masculine | male = &#x2642; (<span style="color:blue;">Male</span>){{#set:Is for gender=Male}}
}}{{#ifeq: {{{unique}}} | y | {{#set:Is unique=Y}}
  | f | feminine | female = &#x2640; (<span style="color:red;">Female</span>){{#set:Is for gender=Female}}
;[[Unique]]
  }}
:Yes
}}<!--
| {{#set:Is unique=N}} }}{{#vardefine:tradable|{{#var:tradable|{{#if:{{{tradable|}}}|{{{tradable}}}|yes}}}}}}{{#if:{{{bound|}}}|{{#ifeq: {{lc:{{{bound}}}}} | no | |
-->{{#if: {{{recast|}}} |
;[[Binding]]
; Recast
:{{#switch: {{lc:{{{bound}}}}}
: {{Convert time|{{{recast|}}}}} {{#if:{{{recast-hq|}}}|<sup>{{HQ|14}} {{Convert time|{{{recast-hq|}}}}}</sup>}}
|u|use|on use = [[Soulbound]] on Use {{#set:Has item binding=SoulBindOnUse}}
}}<!--
|a|acquire|on acquire = [[Soulbound]] on Acquire{{#vardefine:tradable|no}} {{#set:Has item binding=SoulbindOnAcquire}}
-->{{#if: {{{cost|}}} |  
|ab|account|account bound|account bound on acquire = [[Account Bound]]{{#vardefine:tradable|no}} {{#set:Has item binding=AccountBound}}
; Vendor [[Currency|Cost]]  
|absb|accountsoul|account soul = [[Account Bound]]<br>[[Soulbound]] on Use{{#vardefine:tradable|no}} {{#set:Has item binding=AccountBound,SoulBindOnUse|+sep=,}}
: {{{cost|}}}{{#set:Has vendor cost={{{cost|}}}}}
|abu|accountuse|account on use = [[Account Bound]] on Use {{#set:Has item binding=AccountBindOnUse}}
}}<!--
|#default = ''Unknown''
-->{{#if: {{{value|}}} |  
}} }} }}{{#if: {{{cost|}}} |  
; Vendor [[Currency|Value]]
;[[Currency#Cost versus Value|Cost]]  
: {{gil|{{{value|}}}}}{{#set:Has vendor value={{{value|}}}}} {{#if:{{{value-hq|}}}|<sup>{{HQ|14}} {{gil|{{{value-hq|}}}|size=10}}</sup>}}
:{{{cost|}}}
}}<!--
}}{{#if: {{{value|}}} |  
-->{{#if: {{#show:{{PAGENAME}}|?Has equipment supertype}} | {{#if: {{{value|}}} | {{#switch:{{{rarity|}}}|aetherial|pink|dungeon|green|tomestone|blue=<!--
;[[Currency#Cost versus Value|Value]]{{#set:Has vendor value={{{value|}}}}}
-->{{#vardefine:gc_seals|{{#switch: 1
:{{coin|{{{value|}}}}}
| {{#expr: {{{ilvl|}}} > 660}} = {{#expr: {{{ilvl}}} + 1339}}
}}<noinclude>
| {{#expr: {{{ilvl|}}} > 530}} = {{#expr: ceil(5/3 * {{{ilvl}}} + 895)}}
| {{#expr: {{{ilvl|}}} > 400}} = {{#expr: ceil(1.75 * {{{ilvl}}} + 850.5)}}
| {{#expr: {{{ilvl|}}} > 200}} = {{#expr: 2 * {{{ilvl}}} + 750}}  
| {{#expr: {{{ilvl|}}} > 0}} = {{#expr: ceil({{{ilvl|}}}*5.75)}}
| #default = 0
}}}}
; [[Grand Company|GC]] delivery
: {{company seal|{{#var:gc_seals}} {{#set:Has gc delivery value={{#var:gc_seals}}}}
}}|}}}}}}<!--
-->{{#if: {{{patch|}}} |  
; [[Patches|Patch]]
: [[Patch {{{patch}}}|{{{patch}}}]]
}}<!--
-->{{#if: {{{id-edb|}}}{{{id-gt|}}}|
; Links
: {{#if: {{{id-edb|}}}|<u style="border-bottom: 1px dotted; text-decoration: none;" title="Eorzea Database">[https://na.finalfantasyxiv.com/lodestone/playguide/db/item/{{{id-edb}}}/ EDB]</u>}} {{#if: {{{id-gt|}}}|<u style="border-bottom: 1px dotted; text-decoration: none;" title="Garland Tools">[http://garlandtools.org/db/#item/{{{id-gt}}} GT]</u>}}
}}<!--
-->{{#if: {{#show:{{PAGENAME}}|?Is untradable}}{{#show:{{PAGENAME}}|?Is market prohibited}}{{#show:{{PAGENAME}}|?Is island sanctuary item}} | | {{#if: {{{id-gt|}}}|{{#set:Has internal ID={{{id-gt|}}}}}
; [[File:Market_board_icon1.png|20px|link=Market Board]] [[Market Board|MB]] prices
: [https://universalis.app/market/{{{id-gt}}} Universalis]
}}}}{{#set:Has internal ID={{{id-gt|}}}}}
</includeonly><noinclude>


== Documentation ==
== Documentation ==
Line 44: Line 65:
<pre>
<pre>
{{default item parameter
{{default item parameter
| status =
| rarity =
| rarity =
| level =
| level =
| ilvl =
| race =  
| race =  
| unique =
| gender =  
| bound =
| recast =
| recast-hq =  
| cost =
| cost =
| value =
| value =
| value-hq =
| patch =
| id-edb =
| id-gt =
}}</pre>
}}</pre>


Line 59: Line 85:
=== Implemented on ===
=== Implemented on ===
* {{tl|Armor infobox}} for armor
* {{tl|Armor infobox}} for armor
* {{tl|Back item infobox}} for back items
* {{tl|Crafting infobox}} for crafting materials for crafting professions and the Mystic Forge
* {{tl|Crafting infobox}} for crafting materials for crafting professions and the Mystic Forge
* {{tl|Dye infobox}} for dyes (reference to #var:tradable here)
* {{tl|Inventory infobox}} for bags, packs and boxes
* {{tl|Inventory infobox}} for bags, packs and boxes
* {{tl|Item infobox}} for general items
* {{tl|Item infobox}} for general items
* {{tl|Trinket infobox}} for accessories
* {{tl|Accessory infobox}} for accessories
* {{tl|Upgrade component infobox}} for upgrade components
* {{tl|Upgrade component infobox}} for upgrade components
* {{tl|Weapon infobox}} for weapons
* {{tl|Weapon infobox}} for weapons

Latest revision as of 00:42, 25 September 2024


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 =
| ilvl = 
| race = 
| gender = 
| recast =
| recast-hq = 
| cost =
| value =
| value-hq = 
| patch =
| id-edb =
| id-gt =
}}

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