Difference between revisions of "Template:Item infobox"

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


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


-->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace -->
--><div class="tooltip-content" style="display:none;">
          {{#ifeq: {{{categorize|y}}} | n | + }}
{| class="infobox" style="font-size:89%; width:23em"
          {{#switch: {{lc:{{{status|}}}}} | historical | unimplemented | future = + }}
! colspan="2" class="infoboxname" | {{{name|{{PAGENAME}}}}}
          | <!-- Do not categorize --> |
|-
{{#if:{{{icon|}}}| | {{#ifexist: File:{{#replace:{{#replace:{{PAGENAME}}|:|-}}|/|-}}.png |
| 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> }} }}
  | {{#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:@@@}}
|-
| booster
{{#if: {{{desc|}}} |
| consumable
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}}
| container
{{!-}}
| gizmo
{{!}} colspan="2" {{!}} {{{desc}}} }}
| blueprint
|-
| event item
{{#if: {{{primaryattr|}}}{{{secondaryattr|}}}{{{strength|}}}{{{piety|}}}{{{vitality|}}}{{{dexterity|}}}{{{intelligence|}}}{{{parry|}}}{{{mind|}}}{{{accuracy|}}}{{{crit|}}}{{{directhit|}}}{{{determination|}}}{{{skillspeed|}}}{{{spellspeed|}}}{{{tenacity|}}}{{{craftsmanship|}}}{{{control|}}}{{{cp|}}}{{{gathering|}}}{{{perception|}}}{{{gp|}}} |
| feast
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}} '''Bonuses'''
| finisher
{{!-}}
| food
{{#if: {{{primaryattr|}}} | {{!}} colspan="2" {{!}} Primary Attribute +{{{primaryattr}}} }}
| gathering tool
{{!-}}
| gift
{{#if: {{{secondaryattr|}}} | {{!}} colspan="2" {{!}} Secondary Attribute +{{{secondaryattr}}} }}
| harvesting sickle
{{!-}}
| ingredient
{{#if: {{{strength|}}} | {{!}} colspan="2" {{!}} Strength +{{{strength}}} }}
| jewel
{{!-}}
| logging axe
{{#if: {{{piety|}}} | {{!}} colspan="2" {{!}} Piety +{{{piety}}} }}
| mail carrier
{{!-}}
| mining pick
{{#if: {{{vitality|}}} | {{!}} colspan="2" {{!}} Vitality +{{{vitality}}} }}
| salvage item
{{!-}}
| salvage kit
{{#if: {{{dexterity|}}} | {{!}} colspan="2" {{!}} Dexterity +{{{dexterity}}} }}
| talisman
{{!-}}
| tonic
{{#if: {{{intelligence|}}} | {{!}} colspan="2" {{!}} Intelligence +{{{intelligence}}} }}
| transmutation
{{!-}}
| upgrade component
{{#if: {{{parry|}}} | {{!}} colspan="2" {{!}} Parry +{{{parry}}} }}
| utility item      = {{#if: {{{key|}}} | [[Category:{{ucfirst:@@@}}s|{{ucfirst:{{{key}}}}}]] | [[Category:{{ucfirst:@@@}}s|{{PAGENAME}}]] }}
{{!-}}
| miniature          = {{#if: {{{miniature set|}}}
{{#if: {{{mind|}}} | {{!}} colspan="2" {{!}} Mind +{{{mind}}} }}
                        | {{#switch: {{lc:{{{miniature set}}}}}
{{!-}}
                            | special = [[Category:Special miniatures]]
{{#if: {{{accuracy|}}} | {{!}} colspan="2" {{!}} Accuracy +{{{accuracy}}} }}
                            | #default = [[Category:Set {{{miniature set}}} miniatures]]
{{!-}}
                          }}
{{#if: {{{crit|}}} | {{!}} colspan="2" {{!}} Critical Hit Rate +{{{crit}}} }}
                        | [[Category:Miniatures with set undefined]] }}
{{!-}}
                        {{#set: Has miniature id = {{#if: {{{miniature id|}}} | {{{miniature id}}} | 999 }} }}
{{#if: {{{directhit|}}} | {{!}} colspan="2" {{!}} Direct Hit Rate +{{{directhit}}} }}
| trap              = [[Category:Consumables]][[Category:Bundles]]
{{!-}}
| trick              = [[Category:Consumables]][[Category:Bundles]]
{{#if: {{{fire|}}} | {{!}} colspan="2" {{!}} Fire Resistance +{{{fire}}} }}
| recipe
{{!-}}
| recipe sheet      = [[Category:Recipe sheets]]
{{#if: {{{ice|}}} | {{!}} colspan="2" {{!}} Ice Resistance +{{{ice}}} }}
| token              = [[Category:Tokens]]
{{!-}}
| alcohol            = [[Category:Alcohol]]
{{#if: {{{wind|}}} | {{!}} colspan="2" {{!}} Wind Resistance +{{{wind}}} }}
| service            = [[Category:Service items]]
{{!-}}
| skin
{{#if: {{{earth|}}} | {{!}} colspan="2" {{!}} Earth Resistance +{{{earth}}} }}
| weapon skin
{{!-}}
| armor skin        = [[Category:Consumables|{{PAGENAME}}]] {{#ifeq: {{{skin type|}}} | back item | [[Category:Back item skins]] | [[Category:{{ucfirst:{{{type}}}}}s|{{PAGENAME}}]] }}
{{#if: {{{lightning|}}} | {{!}} colspan="2" {{!}} Lightning Resistance +{{{lightning}}} }}
| instrument
{{!-}}
| musical instrument = [[Category:Musical instruments]]
{{#if: {{{water|}}} | {{!}} colspan="2" {{!}} Water Resistance +{{{water}}} }}
| toy                = [[Category:Toys]]
{{!-}}
| trophy            = [[Category:Trophies]]
{{#if: {{{determination|}}} | {{!}} colspan="2" {{!}} Determination +{{{determination}}} }}
| materia
{{!-}}
| catalyst          = [[Category:Crafting catalysts]]
{{#if: {{{skillspeed|}}} | {{!}} colspan="2" {{!}} Skill Speed +{{{skillspeed}}} }}
| minion            = [[Category:Minions]]
{{!-}}
| demimateria        = [[Category:{{ucfirst:@@@}}]]
{{#if: {{{spellspeed|}}} | {{!}} colspan="2" {{!}} Spell Speed +{{{spellspeed}}} }}
| orchestrion roll  = [[Category:Orchestrion Rolls]]
{{!-}}
| miscellany        = [[Category:Miscellaneous items]]
{{#if: {{{tenacity|}}} | {{!}} colspan="2" {{!}} Tenacity +{{{tenacity}}} }}
| seasonal miscellany = [[Category:Miscellaneous items]]
{{!-}}
| crystal            = [[Category:Crystals]][[Category:Crafting catalysts]]
{{#if: {{{craftsmanship|}}} | {{!}} colspan="2" {{!}} Craftsmanship +{{{craftsmanship}}} }}
| meal              = [[Category:Meals]]
{{!-}}
| gardening = [[Category:Gardening]]
{{#if: {{{control|}}} | {{!}} colspan="2" {{!}} Control +{{{control}}} }}
| medicine              = [[Category:Medicines]]
{{!-}}
| decoration        = [[Category:{{#switch: {{lc:{{{decoration type|}}}}}
{{#if: {{{cp|}}} | {{!}} colspan="2" {{!}} CP +{{{cp}}} }}
  | plants = Plant
{{!-}}
  | trophies = Trophy
{{#if: {{{gathering|}}} | {{!}} colspan="2" {{!}} Gathering +{{{gathering}}} }}
  | festivals = Festival
{{!-}}
  | obstacles = Obstacle
{{#if: {{{perception|}}} | {{!}} colspan="2" {{!}} Perception +{{{perception}}} }}
  | turrets = Turret
{{!-}}
  | {{{decoration type}}} }} decorations]]
{{#if: {{{gp|}}} | {{!}} colspan="2" {{!}} GP +{{{gp}}} }}
| 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:@@@}}
|-
| poppet = [[Category:Poppet]]
{{#if: {{{materia|}}} |
| monster = [[Category:Monster]]
{{!}} colspan="2" style="border-bottom:1px solid #666666; color:#666666; padding-top:7px;" {{!}} '''Materia'''
| gadget = [[Category:Gadget]]
{{!-}}
| critter = [[Category:Critter]]
{{!}} {{#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]] }} }} }} }} }}
}}|}}
|-
}}<!-- end #ifeq historical --></includeonly><noinclude>
{{#if: {{{crafting|}}} | {{!}} colspan="2" style="padding-top:7px" {{!}} Crafting Material }}
|-
{{#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}}


== Usage ==
[[Category:Infobox templates]]</noinclude>
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:09, 7 March 2020