Pillars of Eternity Wiki
Pillars of Eternity Wiki
(Show guid in infobox)
(Updated to portable infobox)
Line 71: Line 71:
 
-->{{#vardefine:description|{{{description}}} }}<!--
 
-->{{#vardefine:description|{{{description}}} }}<!--
 
-->{{#vardefine:location|{{{location}}} }}<!--
 
-->{{#vardefine:location|{{{location}}} }}<!--
-->{| class="infoboxtable"
+
--><infobox theme="eternity">
  +
<title source="name">
! colspan="4" class="infoboxname1" | {{#if: {{{name|}}} | {{{name}}} | {{Pagename nd}} }} {{game|{{{added_in|}}}|short}}
 
  +
<default>{{Pagename nd}} {{game|{{{added_in|}}}|short}}</default>
|-
 
  +
<format>{{{name}}} {{game|{{{added_in|}}}|short}}</format>
! colspan="4" | {{#if: {{{icon|}}} | [[File:{{{icon}}}]] | [[File:Questionmark black.png|link=]]{{#ifeq: {{NAMESPACE}} | | [[Category:Image wanted]]}} }}
 
  +
</title>
|-
 
  +
<image source="icon">
{{#if: {{{equipment_slot|}}} {{{armor_type|}}} {{{armor_category|}}} {{{requirements|}}} {{{is_soulbound|}}} {{{is_unique|}}} {{{value|}}}
 
  +
<default>Questionmark black.png</default>
| {{!}} colspan="4" class="infoboxdescription1" {{!}} General }}
 
  +
</image>
|-
 
  +
<!-- General -->
{{#if: {{{equipment_slot|}}} | {{!}} colspan="2" {{!}} <div>Equipment&nbsp;slot</div> {{!!}} colspan="2" {{!}} <div class="value">[[Armor (Deadfire)|{{{equipment_slot}}}]]</div>}}
 
  +
<group>
|-
 
  +
<header>General</header>
{{#if: {{{armor_type|}}} | {{!}} colspan="2" {{!}} <div>Armor type</div> {{!!}} colspan="2" {{!}} <div class="value">{{Item type poe2|{{{armor_type|}}}}}</div>}}
 
  +
<data source="equipment_slot">
|-
 
  +
<label>Slot</label>
{{#if: {{{armor_category|}}} | {{!}} colspan="2" {{!}} <div>Category</div> {{!!}} colspan="2" {{!}} <div class="value">{{Item type poe2|{{{armor_category|}}}}}</div>}}
 
  +
<format>[[Armor (Deadfire)|Armor]]</format>
|-
 
  +
</data>
{{#if: {{{requirements|}}} | {{!}} colspan="2" {{!}} <div>Requirements</div> {{!!}} colspan="2" {{!}} {{#if:{{#pos: {{{requirements}}} |;}} | <div class="value" style="text-align:left;"> {{#arraymap:{{{requirements|}}}|;|x|* x|\n}}</div> | <div class="value">{{{requirements}}}</div>}} }}
 
  +
<data source="armor_type">
|-
 
  +
<label>Armor type</label>
{{#if: {{{recovery_speed|}}} | {{!}} colspan="2" {{!}} <div>Recovery time</div> {{!!}} colspan="2" {{!}} <div class="value">{{{recovery_speed}}}</div>}}
 
  +
<format>{{Item type poe2|{{{armor_type|}}}}}</format>
|-
 
  +
</data>
<!-- Show is_soulbound and is_unique if either field is yes -->
 
  +
<data source="armor_category">
{{#if: {{#ifeq: {{{is_soulbound|}}} | yes | 1 }} {{#ifeq: {{{is_unique|}}} | yes | 1 }} |
 
  +
<label>Category</label>
{{!}} colspan="2" {{!}} <div>Soulbound</div> {{!!}} colspan="2" {{!}} <div class="value">{{#ifeq: {{lc:{{{is_soulbound|}}}}}|yes|{{check}}|{{cross}} }}</div>
 
  +
<format>{{Item type poe2|{{{armor_category|}}}}}</format>
{{!}}-
 
  +
</data>
{{!}} colspan="2" {{!}} <div>Unique</div> {{!!}} colspan="2" {{!}} <div class="value">{{#ifeq: {{lc:{{{is_unique|}}}}}|yes|{{check}}|{{cross}} }}</div> }}
 
  +
<data source="requirements">
|-
 
  +
<label>Requirements</label>
{{#if: {{{value|}}} | {{!}} colspan="2" {{!}} <div>{{Tooltip|Value|The value of the item as shown in the examine menu.&#10;This is how much you will receive when selling the item.}}</div> {{!!}} colspan="2" {{!}} <div class="value">{{cp2|{{{value}}}|align=text-top}}</div>}}
 
  +
<format>{{#if:{{#pos: {{{requirements}}} |;}} | {{#arraymap:{{{requirements|}}}|;|x|* x|\n}} | {{{requirements}}} }}</format>
|-
 
  +
</data>
{{#if: {{{shop_value|}}} | {{!}} colspan="2" {{!}} <div>{{Tooltip|Shop value|The value of the item as shown in a vendor window (usually 5x the value)&#10;This is how much you will have to pay to buy this item from a vendor.}}</div> {{!!}} colspan="2" {{!}} <div class="value">{{cp2|{{{shop_value}}}|align=text-top}}</div>}}
 
  +
<data source="recovery_speed">
|-
 
  +
<label>Rec. time</label>
<!-- Only show the AR table if the item has a base rating -->
 
  +
</data>
{{#if: {{{dr_base|}}}
 
  +
<data source="is_soulbound">
| {{!}} colspan="4" class="infoboxdescription1" {{!}} Armor Rating }}
 
  +
<label>Soulbound</label>
|-
 
 
<!-- Always show if is_unique or is_soulbound is yes -->
| <div>Base</div> || <div class="value">{{{dr_base}}}</div>
 
| <div>Burn</div> || <div class="value" {{#if: {{{dr_burn|}}} | >{{{dr_burn|}}} | style="color: rgba(255, 255, 255, 0.5);">{{{dr_base|}}} }}</div>
+
<format>{{#if: {{#ifeq: {{{is_soulbound|}}} | yes | 1 }} {{#ifeq: {{{is_unique|}}} | yes | 1 }} | {{#ifeq:{{lc:{{{is_soulbound|}}}}}|yes|{{check}}|{{cross}}}} }}</format>
  +
</data>
|-
 
  +
<data source="is_unique">
| <div>Crush</div> || <div class="value" {{#if: {{{dr_crush|}}} | >{{{dr_crush|}}} | style="color: rgba(255, 255, 255, 0.5);">{{{dr_base|}}} }}</div>
 
  +
<label>Unique</label>
| <div>Corrode</div> || <div class="value" {{#if: {{{dr_corrode|}}} | >{{{dr_corrode|}}} | style="color: rgba(255, 255, 255, 0.5);">{{{dr_base|}}} }}</div>
 
  +
<!-- Always show if is_unique or is_soulbound is yes -->
|-
 
| <div>Pierce</div> || <div class="value" {{#if: {{{dr_pierce|}}} | >{{{dr_pierce|}}} | style="color: rgba(255, 255, 255, 0.5);">{{{dr_base|}}} }}</div>
+
<format>{{#if: {{#ifeq: {{{is_soulbound|}}} | yes | 1 }} {{#ifeq: {{{is_unique|}}} | yes | 1 }} | {{#ifeq:{{lc:{{{is_unique|}}}}}|yes|{{check}}|{{cross}}}} }}</format>
  +
</data>
| <div>Freeze</div> || <div class="value" {{#if: {{{dr_freeze|}}} | >{{{dr_freeze|}}} | style="color: rgba(255, 255, 255, 0.5);">{{{dr_base|}}} }}</div>
 
  +
<data source="value">
|-
 
 
<label>{{Tooltip|Value|The value of the item as shown in the examine menu.&#10;This is how much you will receive when selling the item.}}</label>
| <div>Slash</div> || <div class="value" {{#if: {{{dr_slash|}}} | >{{{dr_slash|}}} | style="color: rgba(255, 255, 255, 0.5);">{{{dr_base|}}} }}</div>
 
  +
<format>{{cp2|{{{value}}}}}</format>
| <div>Shock</div> || <div class="value" {{#if: {{{dr_shock|}}} | >{{{dr_shock|}}} | style="color: rgba(255, 255, 255, 0.5);">{{{dr_base|}}} }}</div>
 
  +
</data>
|-
 
  +
<data source="shop_value">
{{#if: {{{armor_bonuses|}}}
 
 
<label>{{Tooltip|Shop value|The value of the item as shown in a vendor window (usually 5x the value)&#10;This is how much you will have to pay to buy this item from a vendor.}}</label>
| {{!}} colspan="4" class="infoboxdescription1" {{!}} Armor bonuses }}
 
  +
<format>{{cp2|{{{shop_value}}}}}</format>
|-
 
  +
</data>
{{#if: {{{armor_bonuses|}}}
 
  +
</group>
| {{!}} colspan="4" {{!}} <div class="value" style="text-align:left;"> {{#arraymap:{{{armor_bonuses|}}}|;|x|* [[x]]: {{Cargo enchantment effects|x}}|\n}}</div> }}
 
  +
<!-- Armor Rating -->
|-
 
  +
<group row-items="4">
{{#if: {{{curr_enchantments|}}} {{{poss_enchantments|}}}
 
  +
<header>Armor Rating</header>
| {{!}} colspan="4" class="infoboxdescription1" {{!}} Enchantments }}
 
  +
<data source="dr_base">
|-
 
  +
<label>Base<br/>{{DR}}</label>
{{#if: {{{curr_enchantments|}}}
 
  +
</data>
| {{!}} colspan="4" {{!}} <div class="value" style="text-align:left;"> {{#arraymap:{{{curr_enchantments|}}}|;|x|* [[x]]: {{Cargo enchantment effects|x}}|\n}}</div> }}
 
  +
<data source="dr_slash">
|-
 
  +
<label>Slash<br/>{{slash}}</label>
{{#if: {{{poss_enchantments|}}} | {{!}} colspan="2" {{!}} <div>Possible enchantments</div> {{!!}} colspan="2" {{!}} <div class="value">{{{poss_enchantments}}}</div>}}
 
  +
<default><span style="color:rgba(255, 255, 255, 0.5)">{{{dr_base}}}</span></default>
|-
 
  +
</data>
{{#if: {{{rel_quests|}}} {{{rel_items|}}} {{{rel_abilities|}}} {{{rel_talents|}}}
 
  +
<data source="dr_crush">
| {{!}} colspan="4" class="infoboxdescription1" {{!}} Related }}
 
  +
<label>Crush<br/>{{crush}}</label>
|-
 
  +
<default><span style="color:rgba(255, 255, 255, 0.5)">{{{dr_base}}}</span></default>
{{#if: {{{rel_quests|}}} | {{!}} colspan="2" {{!}} <div>Quests</div> {{!!}} colspan="2" {{!}} {{#if:{{#pos: {{{rel_quests}}} |;}} | <div class="value" style="text-align:left;"> {{#arraymap:{{{rel_quests|}}}|;|x|* [[x]]|\n}}</div> | <div class="value">[[{{{rel_quests}}}]]</div>}} }}
 
  +
</data>
|-
 
  +
<data source="dr_pierce">
{{#if: {{{rel_items|}}} | {{!}} colspan="2" {{!}} <div>Items</div> {{!!}} colspan="2" {{!}} {{#if:{{#pos: {{{rel_items}}} |;}} | <div class="value" style="text-align:left;"> {{#arraymap:{{{rel_items|}}}|;|x|* [[x]]|\n}}</div> | <div class="value">[[{{{rel_items}}}]]</div>}} }}
 
  +
<label>Pierce<br/>{{pierce}}</label>
|-
 
  +
<default><span style="color:rgba(255, 255, 255, 0.5)">{{{dr_base}}}</span></default>
{{#if: {{{rel_abilities|}}} | {{!}} colspan="2" {{!}} <div>Abilities</div> {{!!}} colspan="2" {{!}} {{#if:{{#pos: {{{rel_abilities}}} |;}} | <div class="value" style="text-align:left;"> {{#arraymap:{{{rel_abilities|}}}|;|x|* [[x]]|\n}}</div> | <div class="value">[[{{{rel_abilities}}}]]</div>}} }}
 
  +
</data>
|-
 
  +
<data source="dr_burn">
{{#if: {{{rel_talents|}}} | {{!}} colspan="2" {{!}} <div>Talents</div> {{!!}} colspan="2" {{!}} {{#if:{{#pos: {{{rel_talents}}} |;}} | <div class="value" style="text-align:left;"> {{#arraymap:{{{rel_talents|}}}|;|x|* [[x]]|\n}}</div> | <div class="value">[[{{{rel_talents}}}]]</div>}} }}
 
  +
<label>Burn<br/>{{burn}}</label>
|-
 
  +
<default><span style="color:rgba(255, 255, 255, 0.5)">{{{dr_base}}}</span></default>
{{#if: {{{internalname|}}} {{{guid|}}}
 
  +
</data>
| {{!}} colspan="4" class="infoboxdescription1" {{!}} Technical }}
 
  +
<data source="dr_freeze">
|-
 
  +
<label>Freeze<br/>{{freeze}}</label>
{{#if: {{{internalname|}}} | {{!}} colspan="2" {{!}} <div>Armor ID</div> {{!!}} colspan="2" {{!}} <div class="value" style="word-break: break-all">{{{internalname}}}</div>}}
 
  +
<default><span style="color:rgba(255, 255, 255, 0.5)">{{{dr_base}}}</span></default>
|-
 
  +
</data>
{{#if: {{{guid|}}} | {{!}} colspan="2" {{!}} <div>Guid</div> {{!!}} colspan="2" {{!}} <div class="value" style="word-break: normal">{{{guid}}}</div>}}
 
  +
<data source="dr_shock">
|}
 
  +
<label>Shock<br/>{{shock}}</label>
<!-- Auto categories --><!--
 
  +
<default><span style="color:rgba(255, 255, 255, 0.5)">{{{dr_base}}}</span></default>
  +
</data>
  +
<data source="dr_corrode">
  +
<label>Corrode<br/>{{corrode}}</label>
  +
<default><span style="color:rgba(255, 255, 255, 0.5)">{{{dr_base}}}</span></default>
  +
</data>
  +
</group>
  +
<group>
  +
<header>Armor bonuses</header>
  +
<data source="armor_bonuses">
 
<format>{{#arraymap:{{{armor_bonuses|}}}|;|x|* [[x]]: {{Cargo enchantment effects|x}}|\n}}</format>
  +
</data>
  +
</group>
  +
<!-- Enchantments-->
  +
<group>
  +
<header>Enchantments</header>
  +
<data source="curr_enchantments">
 
<format>{{#arraymap:{{{curr_enchantments|}}}|;|x|* [[x]]: {{Cargo enchantment effects|x}}|\n}}</format>
  +
</data>
  +
<data source="poss_enchantments">
  +
<label>Possible enchantments</label>
  +
</data>
  +
</group>
  +
<!-- Related -->
  +
<group>
  +
<header>Related</header>
  +
<data source="rel_quests">
  +
<label>Quests</label>
 
<format>{{#if:{{#pos: {{{rel_quests}}} |;}} | {{#arraymap:{{{rel_quests|}}}|;|x|* [[x]]|\n}} | [[{{{rel_quests}}}]] }}</format>
  +
</data>
  +
<data source="rel_items">
  +
<label>Items</label>
 
<format>{{#if:{{#pos: {{{rel_items}}} |;}} | {{#arraymap:{{{rel_items|}}}|;|x|* [[x]]|\n}} | [[{{{rel_items}}}]] }}</format>
  +
</data>
  +
<data source="rel_abilities">
  +
<label>Abilities</label>
 
<format>{{#if:{{#pos: {{{rel_talents}}} |;}} | {{#arraymap:{{{rel_talents|}}}|;|x|* [[x]]|\n}} | [[{{{rel_talents}}}]] }}</format>
  +
</data>
  +
<data source="">
  +
<label>Talents</label>
  +
<format>{{#if:{{#pos: {{{rel_talents}}} |;}} | {{#arraymap:{{{rel_talents|}}}|;|x|* [[x]]|\n}} | [[{{{rel_talents}}}]] }}</format>
  +
</data>
  +
</group>
  +
<!-- Technical -->
  +
<group collapse="open">
  +
<header>Technical</header>
  +
<data source="internalname"><label>Armor ID</label></data>
  +
<data source="guid"><label>Guid</label></data>
  +
</group>
 
</infobox><!-- Auto categories --><!--
 
-->{{#ifeq: {{NAMESPACENUMBER}} | 0 | <!--
 
-->{{#ifeq: {{NAMESPACENUMBER}} | 0 | <!--
 
-->{{#if: {{{added_in|}}} | <!--
 
-->{{#if: {{{added_in|}}} | <!--

Revision as of 07:13, 12 June 2021

This template defines the table "Armor_poe2". View table.

Template-badinfo.png Template documentation
This template's documentation has been marked as bad. Please improve or add to it.
{{Infobox armor
| name              = 
| icon              = 
| description       = 
| added_in          = 
| equipment_slot    = 
| armor_type        = 
| armor_category    = 
| requirements      = 
| is_soulbound      = 
| is_unique         = 
| value             = 
| recovery_speed    = 
| dr_base           = 
| dr_crush          = 
| dr_pierce         = 
| dr_slash          = 
| dr_burn           = 
| dr_corrode        = 
| dr_freeze         = 
| dr_shock          = 
| armor_bonuses     = 
| curr_enchantments = 
| poss_enchantments = 
| rel_quests        = 
| rel_items         = 
| rel_abilities     = 
| rel_talents       = 
| internalname      = 
| location          = 
}}