Difference between revisions of "Template:Price"

From DDO Compendium
Line 15: Line 15:
|parameter4description = The amount in copper
|parameter4description = The amount in copper
}}
}}
</noinclude><onlyinclude>{{#ifeq: {{lc:{{#dplvar:vendorformat}}}}|table|<div style="white-space: nowrap">}}{{#if:{{{1|}}}|{{formatnum:{{{1}}}}} [[File:platinum.png|link=|Platinum]]}}{{#if:{{{2|}}}|{{#if:{{{1|}}}|&nbsp;}}{{formatnum:{{{2}}}}} [[File:gold.png|link=|Gold]]}}{{#if:{{{3|}}}|{{#if:{{{2|}}}|&nbsp;}}{{formatnum:{{{3}}}}} [[File:silver.png|link=|Silver]]}}{{#if: {{{4|}}}|{{#if:{{{3|}}}|&nbsp;}}{{formatnum:{{{4}}}}} [[File:copper.png|link=|Copper]]}}{{#ifeq: {{lc:{{#dplvar:vendorformat}}}}|table|</div>}}</onlyinclude>
</noinclude><onlyinclude>{{#ifeq: {{lc:{{#dplvar:vendorformat}}}}|table|XXX<div style="white-space: nowrap">}}{{#if:{{{1|}}}|{{formatnum:{{{1}}}}} [[File:platinum.png|link=|Platinum]]}}{{#if:{{{2|}}}|{{#if:{{{1|}}}|&nbsp;}}{{formatnum:{{{2}}}}} [[File:gold.png|link=|Gold]]}}{{#if:{{{3|}}}|{{#if:{{{2|}}}|&nbsp;}}{{formatnum:{{{3}}}}} [[File:silver.png|link=|Silver]]}}{{#if: {{{4|}}}|{{#if:{{{3|}}}|&nbsp;}}{{formatnum:{{{4}}}}} [[File:copper.png|link=|Copper]]}}{{#ifeq: {{lc:{{#dplvar:vendorformat}}}}|table|</div>}}</onlyinclude>

Revision as of 16:18, 19 October 2021


Price[edit]

This template is used to render the cost of something, in in-game currency.

Example Usage
{{Price|1000|1000|1000|1000}}1,000 Platinum 1,000 Gold 1,000 Silver 1,000 Copper

Usage[edit]

{{Price|(platinum)|(gold)|(silver)|(copper)}}

Parameter Documentation
platinumThe amount in platinum
goldThe amount in gold
silverThe amount in silver
copperThe amount in copper

Template

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