Difference between revisions of "Template:Item infobox"
(Added END comments to @skin section) |
m (Added END comments) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{lc:{{{release|}}}}}|heavensward = {{Heavensward expansion content}}|stormblood = {{Stormblood expansion content}}|shadowbringers = {{Shadowbringers expansion content}}|endwalker = {{Endwalker expansion content}}}}<!-- | <includeonly>{{#switch:{{lc:{{{release|}}}}}|heavensward = {{Heavensward expansion content}}|stormblood = {{Stormblood expansion content}}|shadowbringers = {{Shadowbringers expansion content}}|endwalker = {{Endwalker expansion content}}<!-- END #switch:{{lc:{{{release|}}}}} -->}}<!-- | ||
--><div class="infobox-n {{#ifeq: {{lc:{{{type|}}}}} | crafting material | crafting | item }}"> | --><div class="infobox-n {{#ifeq: {{lc:{{{type|}}}}} | crafting material | crafting | item }}"> | ||
<div style="float:left;height:50px;position:relative;top:0px;left:0px;visibility:hidden;">.</div> | <div style="float:left;height:50px;position:relative;top:0px;left:0px;visibility:hidden;">.</div> | ||
Line 47: | Line 47: | ||
| container = [[Has item type::Container]] | | container = [[Has item type::Container]] | ||
| crafting material = [[Has item type::Crafting material]] {{#if:{{NAMESPACE}}||__NOTOC__}} | | crafting material = [[Has item type::Crafting material]] {{#if:{{NAMESPACE}}||__NOTOC__}} | ||
| #default = {{ucfirst:@@@}}{{#set:Has item type={{ucfirst:@@@}}}} | | #default = {{ucfirst:@@@}}{{#set:Has item type={{ucfirst:@@@}}<!-- END #set:Has item type -->}} | ||
}} |<br>}}{{#if: {{{material-type|}}} | | <!-- END #switch:{{lc:@@@}} -->}} |<br>}}{{#if: {{{material-type|}}} | | ||
;[[material|Material type]] | ;[[material|Material type]] | ||
:{{#arraymap: {{{material-type}}} |,|@@@|{{#switch: {{lc:@@@}} | :{{#arraymap: {{{material-type}}} |,|@@@|{{#switch: {{lc:@@@}} | ||
Line 68: | Line 68: | ||
| {{cname|@@@}}{{#set:Has skin=@@@}} | | {{cname|@@@}}{{#set:Has skin=@@@}} | ||
}}<!-- END #ifexist:@@@ (skin) -->|<br>}}<!-- END #arraymap --> | }}<!-- END #ifexist:@@@ (skin) -->|<br>}}<!-- END #arraymap --> | ||
}}<!-- END #if:{{{skin|}}} --> | }}<!-- END #if:{{{skin|}}} --><!-- continue #arraymap: {{{type}}} --> | ||
| recipe | | recipe | ||
| recipe sheet = | | recipe sheet = | ||
;[[Class|Classes]] | ;[[Class|Classes]] | ||
:{{#vardefine:recipe-object|{{#ask:[[Learned from recipe sheet::{{PAGENAME}}]]|link=none}}}}<!-- | :{{#vardefine:recipe-object|{{#ask:[[Learned from recipe sheet::{{PAGENAME}}]]|link=none}}<!-- END #vardefine:recipe-object -->}}<!-- | ||
-->{{#arraymap:{{#var:recipe-object}}|,|@@@|{{#ask:[[@@@]]|?Requires rating|?Requires discipline|link=none|format=template|template=Template:Item infobox/recipe object result format}}|}} | -->{{#arraymap:{{#var:recipe-object}}|,|@@@|{{#ask:[[@@@]]|?Requires rating|?Requires discipline|link=none|format=template|template=Template:Item infobox/recipe object result format}}|}} | ||
| minion = | | minion = | ||
Line 79: | Line 79: | ||
| triple triad card = | | triple triad card = | ||
; Card rarity | ; Card rarity | ||
: {{#if:{{{card-rarity|}}}|{{{card-rarity}}}{{#set:Has triple triad card rarity={{{card-rarity}}}}}}} | : {{#if:{{{card-rarity|}}}|{{{card-rarity}}}{{#set:Has triple triad card rarity={{{card-rarity}}}}}<!-- END #if:{{{card-rarity|}}} -->}} | ||
| materia = | | materia = | ||
; Requirements | ; Requirements | ||
: Base Item{{#if:{{{ilvl|}}}| (ilvl {{{ilvl}}}){{#set:Has item level requirement={{{ilvl}}}}}}} | : Base Item{{#if:{{{ilvl|}}}| (ilvl {{{ilvl}}}){{#set:Has item level requirement={{{ilvl}}}}}<!-- END #if:{{{ilvl|}}} -->}} | ||
; Adv. melding | ; Adv. melding | ||
: {{#ifeq:{{{advanced-meld|n}}}|n|No|Yes}} | : {{#ifeq:{{{advanced-meld|n}}}|n|No|Yes}} | ||
| alcohol = | | alcohol = | ||
;Alcohol | ;Alcohol | ||
: {{#if: {{{alcohol|}}} | [[Has alcohol content::{{{alcohol}}}]] }} | : {{#if: {{{alcohol|}}} | [[Has alcohol content::{{{alcohol}}}]] <!-- END #if:{{{alcohol|}}} -->}} | ||
}}{{#ifexpr: {{#ask:[[Has ingredient::?;?;{{PAGENAME}}]][[Has recipe source::+]]|format=count}} > 0 | | <!-- END ??? -->}}{{#ifexpr: {{#ask:[[Has ingredient::?;?;{{PAGENAME}}]][[Has recipe source::+]]|format=count}} > 0 | | ||
;[[Crafting]] | ;[[Crafting]] | ||
:{{#arraymap: Carpenter, Blacksmith, Armorer, Goldsmith, Leatherworker, Weaver, Alchemist, Culinarian, Any |,|@@@| | :{{#arraymap: Carpenter, Blacksmith, Armorer, Goldsmith, Leatherworker, Weaver, Alchemist, Culinarian, Any |,|@@@| | ||
{{#vardefine:@@@_min_level|{{#ask:[[Has ingredient::?;?;{{PAGENAME}}]][[Requires class::@@@]]|?Requires crafting level|format=min|default=-1}}}} | {{#vardefine:@@@_min_level|{{#ask:[[Has ingredient::?;?;{{PAGENAME}}]][[Requires class::@@@]]|?Requires crafting level|format=min|default=-1}}<!-- END #vardefine:@@@_min_level -->}} | ||
{{#ifexpr: {{#var:@@@_min_level|0}} >= 0 | {{@@@}} {{#var:@@@_min_level}} {{#set:Has minimum usable level=@@@;{{#var:@@@_min_level}}}} }} | {{#ifexpr: {{#var:@@@_min_level|0}} >= 0 | {{@@@}} {{#var:@@@_min_level}} {{#set:Has minimum usable level=@@@;{{#var:@@@_min_level}}<!-- END #set -->}}<!-- END #ifexpr -->}} | ||
|<br>}} | |<br><!-- END #arraymap Crafting -->}} | ||
}}{{Default item parameter | <!-- END #ifexpr -->}}{{Default item parameter | ||
| status = {{{status|}}} | | status = {{{status|}}} | ||
| rarity = {{{rarity|}}} | | rarity = {{{rarity|}}} | ||
Line 111: | Line 111: | ||
| id-edb = {{{id-edb|}}} | | id-edb = {{{id-edb|}}} | ||
| id-gt = {{{id-gt|}}} | | id-gt = {{{id-gt|}}} | ||
}} | <!-- END {{Default item parameter}} -->}} | ||
</div> | </div> | ||
{{#ifeq:{{{gallery|x}}}|no| {{clear}} <!-- hide for unimplemented items with no preview option -->| | {{#ifeq:{{{gallery|x}}}|no| {{clear}} <!-- hide for unimplemented items with no preview option -->| |
Revision as of 06:46, 18 June 2023
Usage
Use this infobox for defining general items within the game, e.g. trophies, recipe sheets, crafting materials.
{{item infobox | name = | icon = | description = | type = | effects = | effects-hq = | material-type = | unique = | untradable = | unsellable = | rarity = | level = | ilvl = | race = | gender = | recast = | recast-hq = | cost = | value = | value-hq = | seals = | patch = | release = | id-edb = | id-gt = }}
Parameters
- name
- Optional. Name of the article. Defaults to
{{PAGENAME}}
. - icon
- Optional. Item icon. Defaults to File:
{{PAGENAME}}
.png - description
- Optional. Verbatim from the game.
- effects
- Optional. Item effects. Applies mostly to consumables, potions, meals, etc. See {{item effect}} for details on how to apply one or multiple effects.
- effects-hq
- Optional. Item effects if the item is high quality. Applies mostly to consumables, potions, meals, etc.
- type
- Various item types. Includes meal, minion, other, container, crafting material, etc.
- material-type
- Optional. The material type for any item with
type = Crafting material
set. Examples are: cloth, ingredient, reagent, etc. - unique/untradeable/unsellable
- Optional. Input "y" in the appropriate fields if the item has the trait, otherwise leave blank.
- release
- Optional. Expansion this item belongs to. Accepts: heavensward, or stormblood, or "shadowbringers" or "endwalker".
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.
Examples
{{Item infobox | name = Max-Potion | icon = Max-Potion.png | description = This spiritous concoction instantly restores a considerable amount of HP. | effects = {{item effect|restore hp|percent=24|max=1920}} | effects-hq = {{item effect|restore hp|percent=30|max=2400}} | type = medicine | recast = 75 | value = 29 | value-hq = 32 | rarity = white | patch = 2.0 | id-edb = 810081f550e | id-gt = 13637 }}
Max-Potion
“This spiritous concoction instantly restores a considerable amount of HP.
Effects:Restores up to 24 of HP (1920 points max).
Restores up to 30 of HP (2400 points max).
— In-game description
{{Item infobox | name = Raisins | icon = Raisins.png | description = Dried lowland grapes, sweetened in the sun. | effects = {{item effect|spell speed|percent=8|max=2}}{{item effect|vitality|percent=1}}{{item effect|direct hit rate|percent=1}} | type = meal | value = 1 | rarity = white | unique = y | untradable = y | unsellable = y }}
“Dried lowland grapes, sweetened in the sun.
Effects:Spell Speed +8 (Max 2)
Vitality +1
Direct Hit Rate +1
EXP Bonus: +3% Duration: 30m
(Duration can be extended to 60m by consuming multiple servings)— In-game description
{{Item infobox | name = Livia sas Junius Card | description = An uncommon (★★) card used in the game [[Triple Triad]]. | type = triple triad card | card-rarity = 2 | rarity = white | untradable = y }}
“An uncommon (★★) card used in the game Triple Triad.
— In-game description
{{Item infobox | name = Mind Materia V | icon = Mind Materia V.png | effects = {{item effect|mind|value=15}} | type = materia | ilvl = 160 | advanced-meld = n | rarity = white | value = 990 }}
Mind Materia V
- Item type
- Materia
- Requirements
- Base Item (ilvl 160)
- Adv. melding
- No
- Item Level
- 160
- Rarity
- Basic
- Vendor Value
- 990
“Effects:Mind +15
— In-game description
{{Item infobox | name = Dream Tunic Materials | icon = Dream Tunic Materials.png | description = Pre-cut cloth used in the sewing of a Starlight Celebration dream hat. | type = crafting material | material-type = cloth | rarity = white | value = 1 }}
Dream Tunic Materials
- Item type
- Crafting material
- Material type
- Cloth
- Rarity
- Basic
- Vendor Value
- 1
“Pre-cut cloth used in the sewing of a Starlight Celebration dream hat.
— In-game description
See also
- {{Upgrade component infobox}} for upgrade components
- {{Armor infobox}} for armors
- {{Weapon infobox}} for weapons
- {{Accessory infobox}} for accessories
- {{Inventory infobox}} for bags, packs and boxes