Difference between revisions of "Template:Price"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
|description = This template is used to render the cost of something, in in-game currency. | |description = This template is used to render the cost of something, in in-game currency. | ||
|category=Shared Templates | |category=Shared Templates | ||
|example1=<nowiki>{{Price| | |example1=<nowiki>{{Price|1000|1000|1000|1000}}</nowiki> | ||
|example1output={{Price| | |example1output={{Price|1000|1000|1000|1000}} | ||
|parameter1name = platinum | |parameter1name = platinum | ||
|parameter1description = The amount in platinum | |parameter1description = The amount in platinum | ||
Line 15: | Line 15: | ||
|parameter4description = The amount in copper | |parameter4description = The amount in copper | ||
}} | }} | ||
</noinclude><onlyinclude>{{#if: {{{1|}}}|{{{1}}} [[File:platinum.png]] | </noinclude><onlyinclude><span style=" white-space: nowrap;">{{#ifeq: {{lc:{{#dplvar:vendorformat}}}}|table|<div style="white-space: nowrap">}}{{#if:{{{1|}}}|{{formatnum:{{{1}}}}} [[File:platinum.png|link=|Platinum]]}}{{#if:{{{2|}}}|{{#if:{{{1|}}}| }}{{formatnum:{{{2}}}}} [[File:gold.png|link=|Gold]]}}{{#if:{{{3|}}}|{{#if:{{{2|}}}| }}{{formatnum:{{{3}}}}} [[File:silver.png|link=|Silver]]}}{{#if: {{{4|}}}|{{#if:{{{3|}}}| }}{{formatnum:{{{4}}}}} [[File:copper.png|link=|Copper]]}}{{#ifeq: {{lc:{{#dplvar:vendorformat}}}}|table|</div>}}</span></onlyinclude> |
Latest revision as of 23:04, 15 March 2022
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 ![]() ![]() ![]() ![]() |
Usage[edit]
{{Price|(platinum)|(gold)|(silver)|(copper)}}
Parameter Documentation | |
platinum | The amount in platinum |
gold | The amount in gold |
silver | The amount in silver |
copper | The 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.