Difference between revisions of "Template:Item infobox"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
(Undo revision 236960 by Ma'dranKhajiit (talk))
Line 1: Line 1:
<includeonly>{| class="infobox"
<includeonly>{{#switch:{{lc:{{{release|}}}}}|heavensward = {{Heavensward expansion content}}|stormblood = {{Stormblood expansion content}}|shadowbringers = {{Shadowbringers expansion content}}}}<!--
! colspan="2" class="infoboxname" | {{{name|{{PAGENAME}}}}}
--><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>
| colspan="2" style="text-align:center;" | {{#if:{{{image|}}} | {{#if:{{{dyecolor|}}} | <div style="position:relative; height:64px;"> }}[[File:{{{image}}}|64px|{{{name|{{BASEPAGENAME}}}}}]]{{#if:{{{dyecolor|}}} | <div class="dye" {{#ifeq: {{lc:{{{dyecolor|}}}}} | transparent | | style="background:#{{{dyecolor}}}; }}"></div></div> }} | [[Category:Infoboxes lacking images]] }}
<div class="icon infobox-icon">{{#if: {{{icon|}}}
|-
| {{STFI|icon={{{icon}}}|link=File:{{{icon}}}}}{{#set:Has game icon=File:{{{icon}}}}}
{{#if: {{{type|}}} | {{!}} {{{type}}} }}
| {{#switch: {{lc:{{{type}}}}}
{{#if: {{{stack|}}} | {{!}} 1/{{{stack}}} }}
    | recipe | recipe sheet = [[Category:Recipe sheets missing icon]]
|-
    | triple triad card = {{STFI|icon=Triple Triad Card{{#if:{{{card-rarity|}}}|&nbsp;r{{{card-rarity}}}}}.png|link=File:Triple Triad Card{{#if:{{{card-rarity|}}}|&nbsp;r{{{card-rarity}}}}}.png}}{{#set:Has game icon=File:Triple Triad Card{{#if:{{{card-rarity|}}}|&nbsp;r{{{card-rarity}}}}}.png}}
{{#if: {{{pdamage|}}}{{{mdamage|}}}{{{autoattack|}}}{{{delay|}}}{{{recast|}}}{{{defense|}}}{{{mdefense|}}}{{{blockstr|}}}{{{blockrate|}}} |
    | #default = {{#vardefine:clean-icon|{{#titleparts:{{#replace:{{#replace:{{PAGENAME}}|:|-}}|/|-}}}}.png}}{{STFI|icon={{#var:clean-icon}}|link=File:{{#var:clean-icon}}}}{{#set:Has game icon=File:{{#var:clean-icon}}}} }}
{{!}} colspan="2" {{!}}
}}</div>
{{{!}} style="text-align:right; width:100%;"
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p>
{{#if: {{{pdamage|}}} | {{!}} style="width:40%;" {{!}} '''Physical Damage'''<br />{{{pdamage}}} }}
<div class="statistics item {{#if:{{{unique|}}}{{{untradable|}}}{{{unsellable|}}}||empty}}"><!--
{{#if: {{{mdamage|}}} | {{!}} style="width:40%;" {{!}} '''Magic Damage'''<br />{{{mdamage}}} }}
-->{{#if:{{{unique|}}}|{{#set:Is unique=Y}}<span class="characteristic unique" title="Only one of this item can be held at a time.">UNIQUE</span> &nbsp;}}<!--
{{#if: {{{autoattack|}}} | {{!}} style="width:32%;" {{!}} '''Auto-attack'''<br />{{{autoattack}}} }}
-->{{#if:{{{untradable|}}}|{{#set:Is untradable=Y}}<span class="characteristic untradable" title="This item cannot be traded to another player.">UNTRADABLE</span> &nbsp;}}<!--
{{#if: {{{delay|}}} | {{!}} style="width:28%;" {{!}} '''Delay'''<br />{{{delay}}} }}
-->{{#if:{{{unsellable|}}}|{{#set:Is unsellable=Y}}<span class="characteristic unsellable" title="This item cannot be sold to merchants.">UNSELLABLE</span> &nbsp;}}<!--
{{#if: {{{recast|}}} | {{!}} style="width:33%;" {{!}} '''Recast'''<br />{{{recast}}} {{!!}} style="width:33%;" {{!}} {{!!}} style="width:33%;" {{!}} }}
--></div>
{{#if: {{{defense|}}}{{{mdefense|}}} | {{!}} style="width:23%;" {{!}} {{!!}} style="width:33%;" {{!}} '''Defense'''<br />{{{defense}}} {{!!}} style="width:45%;" {{!}} '''Magic Defense'''<br />{{{mdefense}}} }}
<div class="wrapper">
{{#if: {{{blockstr|}}}{{{blockrate|}}} | {{!}} style="width:23%;" {{!}} {{!!}} style="width:33%;" {{!}} '''Block Strength'''<br />{{{blockstr}}} {{!!}} style="width:45%;" {{!}} '''Block Rate'''<br />{{{blockrate}}} }}
;[[Item|Item type]]
{{!}}} }}
:{{#arraymap: {{{type|}}} |,|@@@|{{#switch: {{lc:@@@}}
|-
<!--  | consumable
{{#if: {{{ilevel|}}}{{{ilvl|}}} | {{!}} colspan="2" style="background:#CBCBCB; width:100%;" {{!}} ITEM LEVEL {{{ilevel|}}}{{{ilvl|}}} }}
  | container
|-
  | catalyst
{{#if: {{{class|}}} | {{!}} colspan="2" style="color:green;" {{!}} {{{class}}} }}
  | crafting material
|-
  | decoration          = [[Decoration]]{{#set:Has item type=Decoration}}{{#set:Has decoration type={{ucfirst:{{{decoration type|}}}}}}}
{{#if: {{{level|}}} | {{!}} colspan="2" style="color:green;" {{!}} Lv. {{{level}}} }}
  | generic            = [[Generic]]
|-
  | gardening        =[[Has item type::Gardening]]
{{#if: {{{gender|}}} | {{!}} colspan="2" {{!}} Fits all {{lc:{{{gender}}}}}s }}
  | ingredient
|-
  | materia
{{#if: {{{conditions|}}} |
  | meal
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}}
  | medicine
{{!-}}
  | minion            =[[Has item type::Minion]]
{{!}} colspan="2" {{!}} {{{conditions}}} }}
  | miscellany
|-
  | seasonal miscellany    =[[Has item type::Seasonal Miscellany]]
{{#if: {{{effects|}}} |
  | none
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}} '''Effects'''
  | other
{{!-}}
  | orchestrion roll  =[[Has item type::Orchestrion Roll]]
{{!}} {{{effects}}} }}
  | upgrade component
|-
  | reagent
{{#if: {{{base|}}}{{{catalyst|}}} |
  | recipe
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}} '''Requirements'''
  | recipe sheet        = [[Recipe sheet]]{{#set:Has item type=Recipe sheet}}
{{!-}}
  | service            = [[Has item type::Service]] -->
{{#if: {{{base|}}} | {{!}} style="width:40%" {{!}} '''Base Item''' {{!!}} {{{base}}} }}
  | triple triad card  = [[Has item type::Triple Triad Card]]
{{!-}}
  | container          = [[Has item type::Container]]
{{#if: {{{catalyst|}}} | {{!}} style="width:40%" {{!}} '''Catalyst''' {{!!}} [[{{{catalyst}}}]] }}
  | crafting material  = [[Has item type::Crafting material]] {{#if:{{NAMESPACE}}||__NOTOC__}}
  | #default = {{ucfirst:@@@}}{{#set:Has item type={{ucfirst:@@@}}}}
}} |<br>}}{{#if: {{{material-type|}}} |
;[[material|Material type]]
:{{#arraymap: {{{material-type}}} |,|@@@|{{#switch: {{lc:@@@}}
  | basic                  = [[Crafting material#Common crafting materials|Basic material]]
  | fine                  = [[Crafting material#Fine crafting materials|Fine material]]
  | component              = [[Component]]
  | ingredient            = [[Ingredient]]
  | crafting catalyst      = [[Crafting Catalyst]]
  | part | weapon part    = [[Part]]
  | #default              = [[{{ucfirst:@@@}}]]
}}|<br>}} }}{{#switch:{{lc:{{{type|}}}}}
| armor skin
| weapon skin = {{#if: {{{skin|}}} |
;[[Skin]]
:{{#arraymap: {{{skin}}} |,|@@@|{{ifexists|@@@ (skin)
| {{cname|@@@ (skin)}}{{#set:Has skin=@@@ (skin)}}
| {{cname|@@@}}{{#set:Has skin=@@@}}
}}|<br>}}
}}
}}
|-
| recipe
{{#if: {{{desc|}}} |
| recipe sheet =
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}}  
;[[Class|Classes]]
{{!-}}
:{{#vardefine:recipe-object|{{#ask:[[Learned from recipe sheet::{{PAGENAME}}]]|link=none}}}}<!--
{{!}} colspan="2" {{!}} {{{desc}}} }}
-->{{#arraymap:{{#var:recipe-object}}|,|@@@|{{#ask:[[@@@]]|?Requires rating|?Requires discipline|link=none|format=template|template=Template:Item infobox/recipe object result format}}|}}
|-
| minion =
{{#if: {{{primaryattr|}}}{{{secondaryattr|}}}{{{strength|}}}{{{piety|}}}{{{vitality|}}}{{{dexterity|}}}{{{intelligence|}}}{{{parry|}}}{{{mind|}}}{{{accuracy|}}}{{{crit|}}}{{{directhit|}}}{{{determination|}}}{{{skillspeed|}}}{{{spellspeed|}}}{{{tenacity|}}}{{{craftsmanship|}}}{{{control|}}}{{{cp|}}}{{{gathering|}}}{{{perception|}}}{{{gp|}}} |
;[[Minion#List of minions|Minion]]
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}} '''Bonuses'''
:{{#if:{{{minion-set|}}}|[[Is part of minion set::{{ucfirst:{{{minion-set}}}}}]]}}
{{!-}}
| triple triad card =  
{{#if: {{{primaryattr|}}} | {{!}} colspan="2" {{!}} Primary Attribute +{{{primaryattr}}} }}
; Card rarity
{{!-}}
: {{#if:{{{card-rarity|}}}|{{{card-rarity}}}{{#set:Has triple triad card rarity={{{card-rarity}}}}}}}
{{#if: {{{secondaryattr|}}} | {{!}} colspan="2" {{!}} Secondary Attribute +{{{secondaryattr}}} }}
| materia =  
{{!-}}
; Requirements
{{#if: {{{strength|}}} | {{!}} colspan="2" {{!}} Strength +{{{strength}}} }}
: Base Item{{#if:{{{ilvl|}}}|&nbsp;(ilvl {{{ilvl}}}){{#set:Has item level requirement={{{ilvl}}}}}}}
{{!-}}
; Adv. melding
{{#if: {{{piety|}}} | {{!}} colspan="2" {{!}} Piety +{{{piety}}} }}
: {{#ifeq:{{{advanced-meld|n}}}|n|No|Yes}}
{{!-}}
| alcohol =  
{{#if: {{{vitality|}}} | {{!}} colspan="2" {{!}} Vitality +{{{vitality}}} }}
;Alcohol
{{!-}}
: {{#if: {{{alcohol|}}} | [[Has alcohol content::{{{alcohol}}}]] }}
{{#if: {{{dexterity|}}} | {{!}} colspan="2" {{!}} Dexterity +{{{dexterity}}} }}
}}{{#ifexpr: {{#ask:[[Has ingredient::?;?;{{PAGENAME}}]][[Has recipe source::+]]|format=count}} > 0 |
{{!-}}
;[[Crafting]]
{{#if: {{{intelligence|}}} | {{!}} colspan="2" {{!}} Intelligence +{{{intelligence}}} }}
:{{#arraymap: Carpenter, Blacksmith, Armorer, Goldsmith, Leatherworker, Weaver, Alchemist, Culinarian |,|@@@|
{{!-}}
  {{#vardefine:@@@_min_level|{{#ask:[[Has ingredient::?;?;{{PAGENAME}}]][[Requires class::@@@]]|?Requires crafting level|format=min|default=-1}}}}
{{#if: {{{parry|}}} | {{!}} colspan="2" {{!}} Parry +{{{parry}}} }}
  {{#ifexpr: {{#var:@@@_min_level|0}} >= 0 | {{@@@}} {{#var:@@@_min_level}} {{#set:Has minimum usable level=@@@;{{#var:@@@_min_level}}}} }}
{{!-}}
|<br>}}
{{#if: {{{mind|}}} | {{!}} colspan="2" {{!}} Mind +{{{mind}}} }}
}}{{Default item parameter
{{!-}}
| status = {{{status|}}}
{{#if: {{{accuracy|}}} | {{!}} colspan="2" {{!}} Accuracy +{{{accuracy}}} }}
| rarity    = {{{rarity|}}}
{{!-}}
| level      = {{{level|}}}
{{#if: {{{crit|}}} | {{!}} colspan="2" {{!}} Critical Hit Rate +{{{crit}}} }}
| ilvl      = {{{ilvl|}}}
{{!-}}
| race      = {{{race|}}}
{{#if: {{{directhit|}}} | {{!}} colspan="2" {{!}} Direct Hit Rate +{{{directhit}}} }}
| gender    = {{{race|}}}
{{!-}}
| recast    = {{{recast|}}}
{{#if: {{{slashing|}}} | {{!}} colspan="2" {{!}} Slashing Resistance +{{{slashing}}} }}
| recast-hq    = {{{recast-hq|}}}
{{!-}}
| cost      = {{{cost|}}}
{{#if: {{{piercing|}}} | {{!}} colspan="2" {{!}} Piercing Resistance +{{{piercing}}} }}
| value      = {{{value|}}}
{{!-}}
| value-hq  = {{{value-hq|}}}
{{#if: {{{blunt|}}} | {{!}} colspan="2" {{!}} Blunt Resistance +{{{blunt}}} }}
| seals      = {{{seals|}}}
{{!-}}
| patch      = {{{patch|}}}
{{#if: {{{fire|}}} | {{!}} colspan="2" {{!}} Fire Resistance +{{{fire}}} }}
| skin id    = {{#if: {{{skin|}}} | {{#arraymap:{{{skin}}}|,|@@@|{{ifexists|@@@ (skin) | {{#show:@@@ (skin)|?Has game id#|limit=1|default=}} | {{#show:@@@|?Has game id#|limit=1|default=}} }}|,}} }}
{{!-}}
{{#if: {{{ice|}}} | {{!}} colspan="2" {{!}} Ice Resistance +{{{ice}}} }}
{{!-}}
{{#if: {{{wind|}}} | {{!}} colspan="2" {{!}} Wind Resistance +{{{wind}}} }}
{{!-}}
{{#if: {{{earth|}}} | {{!}} colspan="2" {{!}} Earth Resistance +{{{earth}}} }}
{{!-}}
{{#if: {{{lightning|}}} | {{!}} colspan="2" {{!}} Lightning Resistance +{{{lightning}}} }}
{{!-}}
{{#if: {{{water|}}} | {{!}} colspan="2" {{!}} Water Resistance +{{{water}}} }}
{{!-}}
{{#if: {{{determination|}}} | {{!}} colspan="2" {{!}} Determination +{{{determination}}} }}
{{!-}}
{{#if: {{{skillspeed|}}} | {{!}} colspan="2" {{!}} Skill Speed +{{{skillspeed}}} }}
{{!-}}
{{#if: {{{spellspeed|}}} | {{!}} colspan="2" {{!}} Spell Speed +{{{spellspeed}}} }}
{{!-}}
{{#if: {{{tenacity|}}} | {{!}} colspan="2" {{!}} Tenacity +{{{tenacity}}} }}
{{!-}}
{{#if: {{{craftsmanship|}}} | {{!}} colspan="2" {{!}} Craftsmanship +{{{craftsmanship}}} }}
{{!-}}
{{#if: {{{control|}}} | {{!}} colspan="2" {{!}} Control +{{{control}}} }}
{{!-}}
{{#if: {{{cp|}}} | {{!}} colspan="2" {{!}} CP +{{{cp}}} }}
{{!-}}
{{#if: {{{gathering|}}} | {{!}} colspan="2" {{!}} Gathering +{{{gathering}}} }}
{{!-}}
{{#if: {{{perception|}}} | {{!}} colspan="2" {{!}} Perception +{{{perception}}} }}
{{!-}}
{{#if: {{{gp|}}} | {{!}} colspan="2" {{!}} GP +{{{gp}}} }}
}}
}}
|-
</div>
{{#if: {{{materia|}}} |
{{#ifeq:{{{gallery|x}}}|no| {{clear}} <!-- hide for unimplemented items with no preview option -->|
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}} '''Materia'''
{{#if:{{{gallery|}}}{{{gallery1|}}}{{#switch: {{lc:{{{type|}}}}}
{{!-}}
| miniature
{{!}} {{#ifeq: {{{materia|}}} | 1 | [[File:Materia socket.png|Materia socket]] | {{#ifeq: {{{materia|}}} | 2 | [[File:Materia socket.png|Materia socket]]<br />[[File:Materia socket.png|Materia socket]] | {{#ifeq: {{{materia|}}} | 3 | [[File:Materia socket.png|Materia socket]]<br />[[File:Materia socket.png|Materia socket]]<br />[[File:Materia socket.png|Materia socket]] | {{#ifeq: {{{materia|}}} | 4 | [[File:Materia socket.png|Materia socket]]<br />[[File:Materia socket.png|Materia socket]]<br />[[File:Materia socket.png|Materia socket]]<br />[[File:Materia socket.png|Materia socket]] }} }} }} }} }}
| decoration
|-
| weapon skin
{{#if: {{{repair|}}}{{{material|}}}{{{meld|}}} |
| outfit skin
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}} '''Crafting & Repairs'''
| instrument
{{!-}}
| musical instrument
{{#if: {{{repair|}}} | {{!}} style="width:45%" {{!}} '''Repair Level''' {{!!}} {{{repair}}} }}
| toy
{{!-}}
| travel = exist }} | <!-- Show gallery --> {{Item infobox gallery|{{{gallery|}}}
{{#if: {{{material|}}} | {{!}} style="width:45%" {{!}} '''Materials''' {{!!}} [[{{{material}}}]] }}
| name = {{{name|{{BASEPAGENAME}}}}}
{{!-}}
| gallery1 = {{{gallery1|}}}
{{#if: {{{meld|}}} | {{!}} style="width:45%" {{!}} '''Materia Melding''' {{!!}} {{{meld}}} }}
| gallery1-text = {{{gallery1-text|Click to enlarge.}}}
| gallery2 = {{{gallery2|}}}
| gallery2-text = {{{gallery2-text|Click to enlarge.}}}
| gallery3 = {{{gallery3|}}}
| gallery3-text = {{{gallery3-text|Click to enlarge.}}}
| gallery4 = {{{gallery4|}}}
| gallery4-text = {{{gallery4-text|Click to enlarge.}}}
| gallery5 = {{{gallery5|}}}
| gallery5-text = {{{gallery5-text|Click to enlarge.}}}
}}
}}
|-
| {{clear}} <!-- Do not show gallery --> }}}}
{{#if: {{{areduction|}}} | {{!}} colspan="2" style="padding-top:7px" {{!}} Aetherial Reduction: {{{areduction}}} }}
</div>
|-
{{#if:{{{description|}}}{{{effects|}}}{{#switch:{{lc:{{{type|}}}}}|service=x}}|<!-- show description section only if description, hint, or variables are defined, or if type is service -->
{{#if: {{{crafting|}}} | {{!}} colspan="2" style="padding-top:7px" {{!}} Crafting Material }}
{{Quotation|game|{{#if: {{{description|}}} | {{{description}}}{{#set:Has game description={{{description}}}}} }}
|-
{{#if:{{{effects|}}}|<div class="item-effects">Effects:</div><div class="item-effects-list">
{{#if: {{{ccatalyst|}}} | {{!}} colspan="2" style="padding-top:7px" {{!}} Crafting Catalyst }}
{{{effects|}}}
|-
</div>}}
{{#if: {{{convertible|}}}{{{convertable|}}} | {{!}} Convertible: {{{convertible|}}}{{{convertable|}}} }}
{{#if:{{{effects-hq|}}}|<div class="item-effects">Effects HQ {{HQ|14|dark}}:</div><div class="item-effects-list">
{{#if: {{{projectable|}}} | {{!}} Projectable: {{{projectable}}} }}
{{{effects-hq|}}}
|-
</div>}}<!--
{{#if: {{{desynth|}}} | {{!}} Desynthesizable: {{{desynth}}} }}
-->
{{#if: {{{dyeable|}}} | {{!}} Dyable: {{{dyeable}}} }}
{{#if:{{#switch:{{lc:{{{exp-bonus|}}}}}|n=|y=y|#default={{#switch:{{lc:{{{type|}}}}}|meal=y}}}}|<span style="color:#0a9421; padding-left:1px;">'''EXP Bonus:'''</span> +3%&nbsp;&nbsp;&nbsp;<span style="color:#0a9421;">'''Duration:'''</span> 30m<br>(Duration can be extended to 60m by consuming multiple servings)}} }}
|-
}}<!--
{{#if: {{{unique|}}} | {{!}} Unique }}
{{#if: {{{untradeable|}}} | {{!}} Untradeable }}
|-
{{#if: {{{value|}}} | {{!}} Sells for {{gil|{{{value}}}}} {{#if: {{{hqvalue|}}} | ({{HQ}} {{{hqvalue}}}) }} | {{!}} Unsellable }}
{{#if: {{{market|}}} | {{!}} Market prohibited }}
|}<!--


--------------------------------------------------
AUTOCATEGORIZATION
ITEM TOOLTIP
--------------------------------------------------


--><div class="tooltip-content" style="display:none;">
-->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace -->
{| class="infobox" style="font-size:89%; width:23em"
          {{#ifeq: {{{categorize|y}}} | n | + }}
! colspan="2" class="infoboxname" | {{{name|{{PAGENAME}}}}}
          {{#switch: {{lc:{{{status|}}}}} | historical | unimplemented | future = + }}
|-
          | <!-- Do not categorize --> |
| colspan="2" style="text-align:center;" | {{#if:{{{image|}}} | {{#if:{{{dyecolor|}}} | <div style="position:relative; height:64px;"> }}[[File:{{{image}}}|64px|{{{name|{{BASEPAGENAME}}}}}]]{{#if:{{{dyecolor|}}} | <div class="dye" {{#ifeq: {{lc:{{{dyecolor|}}}}} | transparent |  | style="background:#{{{dyecolor}}}; }}"></div></div> }} }}
{{#if:{{{icon|}}}| | {{#ifexist: File:{{#replace:{{#replace:{{PAGENAME}}|:|-}}|/|-}}.png |
|-
  | {{#switch: {{lc:{{{type}}}}} | recipe | recipe sheet = | #default = [[Category:Items missing icon]] }} }}
{{#if: {{{type|}}} | {{!}} {{{type}}} }}
{{#if: {{{stack|}}} | {{!}} 1/{{{stack}}} }}
|-
{{#if: {{{pdamage|}}}{{{mdamage|}}}{{{autoattack|}}}{{{delay|}}}{{{recast|}}}{{{defense|}}}{{{mdefense|}}}{{{blockstr|}}}{{{blockrate|}}} |
{{!}} colspan="2" {{!}}
{{{!}} style="text-align:right; width:100%;"
{{#if: {{{pdamage|}}} | {{!}} style="width:40%;" {{!}} '''Physical Damage'''<br />{{{pdamage}}} }}
{{#if: {{{mdamage|}}} | {{!}} style="width:40%;" {{!}} '''Magic Damage'''<br />{{{mdamage}}} }}
{{#if: {{{autoattack|}}} | {{!}} style="width:32%;" {{!}} '''Auto-attack'''<br />{{{autoattack}}} }}
{{#if: {{{delay|}}} | {{!}} style="width:28%;" {{!}} '''Delay'''<br />{{{delay}}} }}
{{#if: {{{recast|}}} | {{!}} style="width:33%;" {{!}} '''Recast'''<br />{{{recast}}} {{!!}} style="width:33%;" {{!}} {{!!}} style="width:33%;" {{!}} }}
{{#if: {{{defense|}}}{{{mdefense|}}} | {{!}} style="width:23%;" {{!}} {{!!}} style="width:33%;" {{!}} '''Defense'''<br />{{{defense}}} {{!!}} style="width:45%;" {{!}} '''Magic Defense'''<br />{{{mdefense}}} }}
{{#if: {{{blockstr|}}}{{{blockrate|}}} | {{!}} style="width:23%;" {{!}} {{!!}} style="width:33%;" {{!}} '''Block Strength'''<br />{{{blockstr}}} {{!!}} style="width:45%;" {{!}} '''Block Rate'''<br />{{{blockrate}}} }}
{{!}}} }}
|-
{{#if: {{{ilevel|}}} | {{!}} colspan="2" style="background:#CBCBCB; width:100%;" {{!}} ITEM LEVEL {{{ilevel}}} }}
|-
{{#if: {{{class|}}} | {{!}} colspan="2" style="color:green;" {{!}} {{{class}}} }}
|-
{{#if: {{{level|}}} | {{!}} colspan="2" style="color:green;" {{!}} Lv. {{{level}}} }}
|-
{{#if: {{{gender|}}} | {{!}} colspan="2" {{!}} Fits all {{lc:{{{gender}}}}}s }}
|-
{{#if: {{{conditions|}}} |
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}}
{{!-}}
{{!}} colspan="2" {{!}} {{{conditions}}} }}
|-
{{#if: {{{effects|}}} |
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}} '''Effects'''
{{!-}}
{{!}} {{{effects}}} }}
|-
{{#if: {{{base|}}}{{{catalyst|}}} |
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}} '''Requirements'''
{{!-}}
{{#if: {{{base|}}} | {{!}} style="width:40%" {{!}} '''Base Item''' {{!!}} {{{base}}} }}
{{!-}}
{{#if: {{{catalyst|}}} | {{!}} style="width:40%" {{!}} '''Catalyst''' {{!!}} [[{{{catalyst}}}]] }}
}}
}}
|-
{{#arraymap:{{{type|}}}|,|@@@|{{#switch: {{lc:@@@}}
{{#if: {{{desc|}}} |
| booster
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}}  
| consumable
{{!-}}
| container
{{!}} colspan="2" {{!}} {{{desc}}} }}
| gizmo
|-
| blueprint
{{#if: {{{primaryattr|}}}{{{secondaryattr|}}}{{{strength|}}}{{{piety|}}}{{{vitality|}}}{{{dexterity|}}}{{{intelligence|}}}{{{parry|}}}{{{mind|}}}{{{accuracy|}}}{{{crit|}}}{{{directhit|}}}{{{determination|}}}{{{skillspeed|}}}{{{spellspeed|}}}{{{tenacity|}}}{{{craftsmanship|}}}{{{control|}}}{{{cp|}}}{{{gathering|}}}{{{perception|}}}{{{gp|}}} |
| event item
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}} '''Bonuses'''
| feast
{{!-}}
| finisher
{{#if: {{{primaryattr|}}} | {{!}} colspan="2" {{!}} Primary Attribute +{{{primaryattr}}} }}
| food
{{!-}}
| gathering tool
{{#if: {{{secondaryattr|}}} | {{!}} colspan="2" {{!}} Secondary Attribute +{{{secondaryattr}}} }}
| gift
{{!-}}
| harvesting sickle
{{#if: {{{strength|}}} | {{!}} colspan="2" {{!}} Strength +{{{strength}}} }}
| ingredient
{{!-}}
| jewel
{{#if: {{{piety|}}} | {{!}} colspan="2" {{!}} Piety +{{{piety}}} }}
| logging axe
{{!-}}
| mail carrier
{{#if: {{{vitality|}}} | {{!}} colspan="2" {{!}} Vitality +{{{vitality}}} }}
| mining pick
{{!-}}
| salvage item
{{#if: {{{dexterity|}}} | {{!}} colspan="2" {{!}} Dexterity +{{{dexterity}}} }}
| salvage kit
{{!-}}
| talisman
{{#if: {{{intelligence|}}} | {{!}} colspan="2" {{!}} Intelligence +{{{intelligence}}} }}
| tonic
{{!-}}
| transmutation
{{#if: {{{parry|}}} | {{!}} colspan="2" {{!}} Parry +{{{parry}}} }}
| upgrade component
{{!-}}
| utility item      = {{#if: {{{key|}}} | [[Category:{{ucfirst:@@@}}s|{{ucfirst:{{{key}}}}}]] | [[Category:{{ucfirst:@@@}}s|{{PAGENAME}}]] }}
{{#if: {{{mind|}}} | {{!}} colspan="2" {{!}} Mind +{{{mind}}} }}
| miniature          = {{#if: {{{miniature set|}}}
{{!-}}
                        | {{#switch: {{lc:{{{miniature set}}}}}
{{#if: {{{accuracy|}}} | {{!}} colspan="2" {{!}} Accuracy +{{{accuracy}}} }}
                            | special = [[Category:Special miniatures]]
{{!-}}
                            | #default = [[Category:Set {{{miniature set}}} miniatures]]
{{#if: {{{crit|}}} | {{!}} colspan="2" {{!}} Critical Hit Rate +{{{crit}}} }}
                          }}
{{!-}}
                        | [[Category:Miniatures with set undefined]] }}
{{#if: {{{directhit|}}} | {{!}} colspan="2" {{!}} Direct Hit Rate +{{{directhit}}} }}
                        {{#set: Has miniature id = {{#if: {{{miniature id|}}} | {{{miniature id}}} | 999 }} }}
{{!-}}
| trap              = [[Category:Consumables]][[Category:Bundles]]
{{#if: {{{fire|}}} | {{!}} colspan="2" {{!}} Fire Resistance +{{{fire}}} }}
| trick              = [[Category:Consumables]][[Category:Bundles]]
{{!-}}
| recipe
{{#if: {{{ice|}}} | {{!}} colspan="2" {{!}} Ice Resistance +{{{ice}}} }}
| recipe sheet      = [[Category:Recipe sheets]]
{{!-}}
| token              = [[Category:Tokens]]
{{#if: {{{wind|}}} | {{!}} colspan="2" {{!}} Wind Resistance +{{{wind}}} }}
| alcohol            = [[Category:Alcohol]]
{{!-}}
| service            = [[Category:Service items]]
{{#if: {{{earth|}}} | {{!}} colspan="2" {{!}} Earth Resistance +{{{earth}}} }}
| skin
{{!-}}
| weapon skin
{{#if: {{{lightning|}}} | {{!}} colspan="2" {{!}} Lightning Resistance +{{{lightning}}} }}
| armor skin        = [[Category:Consumables|{{PAGENAME}}]] {{#ifeq: {{{skin type|}}} | back item | [[Category:Back item skins]] | [[Category:{{ucfirst:{{{type}}}}}s|{{PAGENAME}}]] }}
{{!-}}
| instrument
{{#if: {{{water|}}} | {{!}} colspan="2" {{!}} Water Resistance +{{{water}}} }}
| musical instrument = [[Category:Musical instruments]]
{{!-}}
| toy                = [[Category:Toys]]
{{#if: {{{determination|}}} | {{!}} colspan="2" {{!}} Determination +{{{determination}}} }}
| trophy            = [[Category:Trophies]]
{{!-}}
| materia
{{#if: {{{skillspeed|}}} | {{!}} colspan="2" {{!}} Skill Speed +{{{skillspeed}}} }}
| catalyst          = [[Category:Crafting catalysts]]
{{!-}}
| minion            = [[Category:Minions]]
{{#if: {{{spellspeed|}}} | {{!}} colspan="2" {{!}} Spell Speed +{{{spellspeed}}} }}
| demimateria        = [[Category:{{ucfirst:@@@}}]]
{{!-}}
| orchestrion roll  = [[Category:Orchestrion Rolls]]
{{#if: {{{tenacity|}}} | {{!}} colspan="2" {{!}} Tenacity +{{{tenacity}}} }}
| miscellany        = [[Category:Miscellaneous items]]
{{!-}}
| seasonal miscellany = [[Category:Miscellaneous items]]
{{#if: {{{craftsmanship|}}} | {{!}} colspan="2" {{!}} Craftsmanship +{{{craftsmanship}}} }}
| crystal            = [[Category:Crystals]][[Category:Crafting catalysts]]
{{!-}}
| meal              = [[Category:Meals]]
{{#if: {{{control|}}} | {{!}} colspan="2" {{!}} Control +{{{control}}} }}
| gardening = [[Category:Gardening]]
{{!-}}
| medicine              = [[Category:Medicines]]
{{#if: {{{cp|}}} | {{!}} colspan="2" {{!}} CP +{{{cp}}} }}
| decoration        = [[Category:{{#switch: {{lc:{{{decoration type|}}}}}
{{!-}}
  | plants = Plant
{{#if: {{{gathering|}}} | {{!}} colspan="2" {{!}} Gathering +{{{gathering}}} }}
  | trophies = Trophy
{{!-}}
  | festivals = Festival
{{#if: {{{perception|}}} | {{!}} colspan="2" {{!}} Perception +{{{perception}}} }}
  | obstacles = Obstacle
{{!-}}
  | turrets = Turret
{{#if: {{{gp|}}} | {{!}} colspan="2" {{!}} GP +{{{gp}}} }}
  | {{{decoration type}}} }} decorations]]
| other
| none
| generic = {{#if: {{{key|}}} | [[Category:Generic items|{{ucfirst:{{{key}}}}}]] | [[Category:Generic items|{{PAGENAME}}]]}}
| crafting material  = [[Category:items]]
| [[Category:Items with no type specified]]
}}<!-- end #switch @@@ --> |}}<!-- end #arraymap -->
{{#if: {{{material-type|}}} | {{#arraymap:{{{material-type|}}}|,|@@@|{{#switch: {{lc:@@@}}
| component = [[Category:Components]]
| lumber | wood | ingot | ore | cloth | leather | skin | stone | metal | reagent  = {{#ifexpr: {{#ask:[[Has item data object::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]|format=count|default=0}} > 0|[[Category:Refined materials]]|[[Category:Basic crafting materials]]}}
| festive = [[Category:Festive materials]]
| other = [[Category:Miscellaneous materials]]
| #default = [[Category:{{ucfirst:@@@}}]]
}}|}} }}
}}
}}
|-
{{#if: {{{minion-set|}}} | {{#arraymap:{{{minion-set|}}}|,|@@@|{{#switch: {{lc:@@@}}
{{#if: {{{materia|}}} |
| poppet = [[Category:Poppet]]
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}} '''Materia'''
| monster = [[Category:Monster]]
{{!-}}
| gadget = [[Category:Gadget]]
{{!}} {{#ifeq: {{{materia|}}} | 1 | [[File:Materia socket.png|Materia socket]] | {{#ifeq: {{{materia|}}} | 2 | [[File:Materia socket.png|Materia socket]]<br />[[File:Materia socket.png|Materia socket]] | {{#ifeq: {{{materia|}}} | 3 | [[File:Materia socket.png|Materia socket]]<br />[[File:Materia socket.png|Materia socket]]<br />[[File:Materia socket.png|Materia socket]] | {{#ifeq: {{{materia|}}} | 4 | [[File:Materia socket.png|Materia socket]]<br />[[File:Materia socket.png|Materia socket]]<br />[[File:Materia socket.png|Materia socket]]<br />[[File:Materia socket.png|Materia socket]] }} }} }} }} }}
| critter = [[Category:Critter]]
|-
}}|}}
{{#if: {{{crafting|}}} | {{!}} colspan="2" style="padding-top:7px" {{!}} Crafting Material }}
}}<!-- end #ifeq historical --></includeonly><noinclude>
|-
{{#if: {{{unique|}}} | {{!}} Unique }}
{{#if: {{{untradeable|}}} | {{!}} Untradeable }}
|-
{{#if: {{{value|}}} | {{!}} Sells for {{gil|{{{value}}}}}{{#if: {{{hqvalue|}}} | ({{HQ}} {{{hqvalue}}}) }} | {{!}} Unsellable }}
{{#if: {{{market|}}} | {{!}} Market prohibited }}
|}</div></includeonly><noinclude>
{{doc}}


[[Category:Infobox templates]]</noinclude>
== Usage ==
Use this infobox for defining general [[item]]s within the game, e.g. trophies, recipe sheets, crafting materials.
 
<pre>
{{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 =
}}
</pre>
 
== Parameters ==
; name: Optional. Name of the article. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>.
; icon: Optional. Item icon. Defaults to File:<code><nowiki>{{PAGENAME}}</nowiki></code>.png
; description: Optional. Verbatim from the game.
; effects: Optional. Item effects. Applies mostly to consumables, potions, meals, etc. See {{tl|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 <code><nowiki>type = Crafting material</nowiki></code> 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".
{{:Template:Default item parameter/documentation}}
<!--For [[miniature]]s, [[toy]]s and [[town clothing]] the following parameter may be used:
{{:Template:Item infobox gallery/documentation}} -->
 
== Examples ==
<pre>{{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
}}</pre>
{{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
}}
{{clear}}
<pre>{{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
}}</pre>
{{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
}}
{{clear}}
<pre>{{Item infobox
| name = Livia sas Junius Card
| description = An uncommon (&#9733;&#9733;) card used in the game [[Triple Triad]].
| type = triple triad card
| card-rarity = 2
| rarity = white
| untradable = y
}}</pre>
{{Item infobox
| name = Livia sas Junius Card
| description = An uncommon (&#9733;&#9733;) card used in the game [[Triple Triad]].
| type = triple triad card
| card-rarity = 2
| rarity = white
| untradable = y
}}
{{clear}}
<pre>{{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
}}</pre>
{{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
}}
{{clear}}
<pre>{{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
}}</pre>
{{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
}}
{{clear}}
 
== See also ==
* {{tl|Upgrade component infobox}} for upgrade components
* {{tl|Armor infobox}} for armors
* {{tl|Weapon infobox}} for weapons
* {{tl|Trinket infobox}} for accessories
* {{tl|Inventory infobox}} for bags, packs and boxes
 
[[Category:Infobox templates|Item infobox]]
 
</noinclude>

Revision as of 18:13, 7 March 2020


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 = 
}}

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".

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
}}
.

Max-Potion

Item type
Medicine
Rarity
ABasic
Recast
1m15s
Vendor Value
Gil 29 HQ icon.png Gil 32

This spiritous concoction instantly restores a considerable amount of HP.

Effects:

Restores up to 24 of HP (1920 points max).

Effects HQ HQ icon.png:

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
}}
.

Raisins

UNIQUE  UNTRADABLE  UNSELLABLE  
Item type
Meal
Rarity
ABasic
Vendor Value
Gil 1

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
}}
.

Livia sas Junius Card

UNTRADABLE  
Item type
Triple Triad Card
Card rarity
2
Rarity
ABasic

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
ABasic
Vendor Value
Gil 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
ABasic
Vendor Value
Gil 1

Pre-cut cloth used in the sewing of a Starlight Celebration dream hat.


— In-game description

See also