Difference between revisions of "Template:EnhItemCost"

From DDO Compendium
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
|name=EnhItemCost
|name=EnhItemCost
|description= Template used to add an AP cost  
|description= Template used to add an AP cost  
|category=Enhancement Templates
|example1=<nowiki>{{EnhItemCost|Warpriest|1|War Soul|2}}</nowiki>
|example1=<nowiki>{{EnhItemCost|Warpriest|1|War Soul|2}}</nowiki>
|example1output={{EnhItemCost|Warpriest|1|War Soul|2}}
|example1output={{EnhItemCost|Warpriest|1|War Soul|2}}
|example2=<nowiki>{{EnhItemCost|{{EnhItemCostTreeGroup|1|Arcanotechnician|Divine Disciple|Arcane Archer|Tainted Scholar}}|1|War Soul|2}}</nowiki>
|example2output={{EnhItemCost|{{EnhItemCostTreeGroup|1|Arcanotechnician|Divine Disciple|Arcane Archer|Tainted Scholar}}|1|War Soul|2}}
|parameter1name = tree
|parameter1name = tree
|parameter1description = The tree for this price, repeat up to 10 times
|parameter1description = The tree for this price, repeat up to 10 times.  Use [[Template:EnhItemCostTreeGroup]] if there are a group of trees at the same cost
|parameter2name = cost
|parameter2name = cost
|parameter2description = The AP cost
|parameter2description = The AP cost
}}</noinclude><onlyinclude>{{#if: {{#dplvar:tree}}||{{{2}}} ({{{1}}}){{#if: {{{3|}}}|, {{{4}}} ({{{3}}})}}<br>{{{5|}}}{{#if: {{{5|}}}|, {{{6}}} ({{{5}}})}}{{#if: {{{7|}}}|, {{{8}}} ({{{7}}})}}{{#if: {{{9|}}}|, {{{10}}} ({{{9}}})}}{{#if: {{{11|}}}|, {{{12}}} ({{{11}}})}}{{#if: {{{13|}}}|, {{{14}}} ({{{13}}})}}{{#if: {{{15|}}}|, {{{16}}} ({{{15}}})}}{{#if: {{{17|}}}|, {{{18}}} ({{{17}}})}}{{#if: {{{19|}}}|, {{{20}}} ({{{19}}})}}}}{{#ifeq: {{#dplvar:tree}}|{{{1}}}|{{{2}}}}}{{#ifeq: {{#dplvar:tree}}|{{{3|}}}|{{{4}}}}}{{#ifeq: {{#dplvar:tree}}|{{{5|}}}|{{{6}}}}}{{#ifeq: {{#dplvar:tree}}|{{{7|}}}|{{{8}}}}}{{#ifeq: {{#dplvar:tree}}|{{{9|}}}|{{{10}}}}}{{#ifeq: {{#dplvar:tree}}|{{{11|}}}|{{{12}}}}}{{#ifeq: {{#dplvar:tree}}|{{{13|}}}|{{{14}}}}}{{#ifeq: {{#dplvar:tree}}|{{{15|}}}|{{{16}}}}}{{#ifeq: {{#dplvar:tree}}|{{{17|}}}|{{{18}}}}}{{#ifeq: {{#dplvar:tree}}|{{{19|}}}|{{{20}}}}}</onlyinclude>
}}</noinclude><onlyinclude>{{EnhItemCostTree|{{{1}}}|{{{2}}}}}{{#if: {{{3|}}}|{{EnhItemCostTree|{{{3}}}|{{{4}}}|True}}}}{{#if: {{{5|}}}|{{EnhItemCostTree|{{{5}}}|{{{6}}}|True}}}}{{#if: {{{7|}}}|{{EnhItemCostTree|{{{7}}}|{{{8}}}|True}}}}{{#if: {{{9|}}}|{{EnhItemCostTree|{{{9}}}|{{{10}}}|True}}}}{{#if: {{{11|}}}|{{EnhItemCostTree|{{{11}}}|{{{12}}}|True}}}}{{#if: {{{13|}}}|{{EnhItemCostTree|{{{13}}}|{{{14}}}|True}}}}{{#if: {{{15|}}}|{{EnhItemCostTree|{{{15}}}|{{{16}}}|True}}}}{{#if: {{{17|}}}|{{EnhItemCostTree|{{{17}}}|{{{18}}}|True}}}}{{#if: {{{19|}}}|{{EnhItemCostTree|{{{19}}}|{{{20}}}|True}}}}</onlyinclude>

Latest revision as of 15:47, 2 July 2019


EnhItemCost[edit]

Template used to add an AP cost

Example Usage
{{EnhItemCost|Warpriest|1|War Soul|2}}1 (Warpriest), 2 (War Soul)
{{EnhItemCost|{{EnhItemCostTreeGroup|1|Arcanotechnician|Divine Disciple|Arcane Archer|Tainted Scholar}}|1|War Soul|2}}1 (Arcanotechnician, Divine Disciple, Arcane Archer, Tainted Scholar), 2 (War Soul)

Usage[edit]

{{EnhItemCost|(tree)|(cost)}}

Parameter Documentation
treeThe tree for this price, repeat up to 10 times. Use Template:EnhItemCostTreeGroup if there are a group of trees at the same cost
costThe AP cost

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


{{{1}}}