Pillars of Eternity Wiki
Pillars of Eternity Wiki
m (Exposed description as variable)
(Updated to portable infobox)
 
Line 21: Line 21:
 
}}
 
}}
 
</noinclude><!--
 
</noinclude><!--
 
--><includeonly><!-- Cargo store section -->{{#ifeq: {{NAMESPACENUMBER}} | 0 |
 
--><includeonly><!-- Cargo store section --><!-- ifeq namespace check to prevent documentation examples being stored in CargoTable -->
 
{{#ifeq: {{NAMESPACENUMBER}} | 0 |
 
 
{{#cargo_store:_table = Enchantment_poe1
 
{{#cargo_store:_table = Enchantment_poe1
 
| name = {{{name|}}}
 
| name = {{{name|}}}
Line 46: Line 44:
 
-->{{#vardefine:description|{{{description|}}}}}<!--
 
-->{{#vardefine:description|{{{description|}}}}}<!--
 
-->{{#vardefine:effects|{{{effects|}}}}}<!--
 
-->{{#vardefine:effects|{{{effects|}}}}}<!--
-->{| class="infoboxtable"
+
--><infobox theme="eternity">
  +
<title source="name">
! colspan="2" class="infoboxname1" | {{#if: {{{name|}}} | {{{name}}} | {{Pagename nd}} }} {{#ifeq:{{{added_in|}}}|wm1|{{wm1}}}}{{#ifeq:{{{added_in|}}}|wm2|{{wm2}}}}{{#ifeq:{{{added_in|}}}|dp|{{dp}}}}
 
  +
<default>{{Pagename nd}} {{#if:{{{added_in|}}} | {{game|{{{added_in}}}|short}} }}</default>
|-
 
! colspan="2" | {{#if: {{{icon|}}} | [[File:{{{icon}}}]] | <br/>[[File:Anvil icon.png|link=]] }}
+
<format>{{{name}}} {{#if:{{{added_in|}}} | {{game|{{{added_in}}}|short}} }}</format>
  +
</title>
|-
 
  +
<image source="icon">
{{#if: {{{type|}}} {{{category|}}}
 
  +
<default>Anvil icon.png</default>
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Enchantment }}
 
  +
</image>
|-
 
  +
<group>
{{#if: {{{type|}}} | {{!}} <div>Type</div> {{!!}} <div class="value">[[{{{type}}}]]</div>}}
 
  +
<header>Enchantment</header>
|-
 
  +
<data source="type">
{{#if: {{{category|}}} | {{!}} <div>Category</div> {{!!}} <div class="value">[[{{{category}}}]]</div>}}
 
  +
<label>Type</label>
|-
 
  +
<format>[[{{{type}}}]]</format>
{{#if: {{{req_level|}}} {{{req_anvils|}}} {{{white_forge|}}}
 
  +
</data>
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Requirements }}
 
  +
<data source="category">
|-
 
  +
<label>Category</label>
{{#if: {{{req_level|}}} | {{!}} <div>Level</div> {{!!}} <div class="value">{{{req_level}}}</div>}}
 
  +
<format>[[{{{category}}}]]</format>
|-
 
  +
</data>
{{#if: {{{req_anvils|}}} | {{!}} <div>Anvils</div> {{!!}} <div class="value">{{{req_anvils}}} {{anvil}}</div>}}
 
  +
</group>
|-
 
  +
<group>
{{#if: {{{white_forge|}}} | {{!}} <div>White Forge</div> {{!!}} <div class="value">{{#ifeq: {{{white_forge|}}}|yes|{{check}}|{{cross}} }}</div>}}
 
  +
<header>Requirements</header>
|-
 
  +
<data source="req_level">
{{#if: {{{ingredient1_amount|}}} {{{ingredient1_item|}}} {{{ingredient2_amount|}}} {{{ingredient2_item|}}} {{{ingredient3_amount|}}} {{{ingredient3_item|}}} {{{copper_cost|}}}
 
  +
<label>Level</label>
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Ingredients }}
 
  +
</data>
|-
 
  +
<data source="req_anvils">
{{#if: {{{ingredient1_item|}}} | {{!}} <div>Plant</div> {{!!}} <div class="value">{{#if: {{{ingredient1_amount|}}} | {{{ingredient1_amount}}}x | 1x }} [[{{{ingredient1_item}}}]]</div>}}
 
  +
<label>Anvils</label>
|-
 
  +
<format>{{{req_anvils}}} {{anvil}}</format>
{{#if: {{{ingredient2_item|}}} | {{!}} <div>Gem</div> {{!!}} <div class="value">{{#if: {{{ingredient2_amount|}}} | {{{ingredient2_amount}}}x | 1x }} [[{{{ingredient2_item}}}]]</div>}}
 
  +
</data>
|-
 
  +
<data source="white_forge">
{{#if: {{{ingredient3_item|}}} | {{!}} <div>Monster part</div> {{!!}} <div class="value">{{#if: {{{ingredient3_amount|}}} | {{{ingredient3_amount}}}x | 1x }} [[{{{ingredient3_item}}}]]</div>}}
 
  +
<label>White Forge</label>
|-
 
  +
<format>{{#ifeq:{{lc:{{{white_forge|}}}}} | yes | {{check}} }}</format>
{{#if: {{{copper_cost|}}} | {{!}} <div>Cost</div> {{!!}} <div class="value">{{formatnum:{{{copper_cost}}}}} {{cp}}</div>}}
 
  +
</data>
|-
 
  +
</group>
{{#if: {{{effects|}}}
 
  +
<group>
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Effects }}
 
  +
<header>Ingredients</header>
|-
 
  +
<data source="ingredient1_item">
{{#if: {{{effects|}}}
 
  +
<label>Plant</label>
| {{!}} colspan="2" {{!}} <div class="value" style="text-align:left;"> {{#arraymap:{{{effects|}}}|;|x|* x|\n}}</div> }}
 
 
<format>{{#if: {{{ingredient1_amount|}}} | {{{ingredient1_amount}}}x | 1x }} [[{{{ingredient1_item}}}]]</format>
|-
 
  +
</data>
{{#if: {{{internalname|}}}
 
  +
<data source="ingredient2_item">
| {{!}} colspan="2" class="infoboxdescription1" {{!}} Technical }}
 
  +
<label>Gem</label>
|-
 
 
<format>{{#if: {{{ingredient2_amount|}}} | {{{ingredient2_amount}}}x | 1x }} [[{{{ingredient2_item}}}]]</format>
{{#if: {{{internalname|}}} | {{!}} <div>Enchantment ID</div> {{!!}} <div class="value" style="word-break: break-all;">{{{internalname}}}</div>}}
 
  +
</data>
|}
 
  +
<data source="ingredient3_item">
<!-- Auto categories --><!--
 
  +
<label>Monster part</label>
 
<format>{{#if: {{{ingredient3_amount|}}} | {{{ingredient3_amount}}}x | 1x }} [[{{{ingredient3_item}}}]]</format>
  +
</data>
  +
<data source="copper_cost">
  +
<label>Cost</label>
  +
<format>{{cp|{{{copper_cost|}}}}}</format>
  +
</data>
  +
</group>
  +
<group>
  +
<header>Effects</header>
  +
<data source="effects">
 
<format>{{#arraymap:{{{effects|}}}|;|x|* x|\n}}</format>
  +
</data>
  +
</group>
  +
<group>
  +
<header>Technical</header>
  +
<data source="internalname">
  +
<label>Enchantment ID</label>
  +
</data>
  +
<data source="guid">
  +
<label>Guid</label>
  +
</data>
  +
</group>
 
</infobox><!-- Auto categories --><!--
 
-->{{#ifeq: {{NAMESPACENUMBER}} | 0 | {{#if: {{{added_in|}}} | [[Category:{{basegame|{{{added_in|}}}}} enchantments]] }} }}<!--
 
-->{{#ifeq: {{NAMESPACENUMBER}} | 0 | {{#if: {{{added_in|}}} | [[Category:{{basegame|{{{added_in|}}}}} enchantments]] }} }}<!--
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
 
{{doc}}
 
{{doc}}
<!-- ''Due to technical difficulties, for now there is only a link to the [[/doc|documentation]], instead of directly including it in the page.'' -->
 
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 07:04, 14 June 2021

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

Template-badinfo.png Template documentation
This template's documentation has been marked as bad. Please improve or add to it.
{{Infobox enchantment
| name               = 
| icon               = 
| description        = 
| added_in           = 
| type               = 
| category           = 
| req_level          = 
| req_anvils         = 
| white_forge        = 
| ingredient1_amount = 
| ingredient1_item   = 
| ingredient2_amount = 
| ingredient2_item   = 
| ingredient3_amount = 
| ingredient3_item   = 
| copper_cost        = 
| effects            = 
| internalname       = 
}}