Difference between revisions of "Template:AstralPrice"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
|example2=<nowiki>{{AstralPrice|10}}</nowiki> | |example2=<nowiki>{{AstralPrice|10}}</nowiki> | ||
|example2output={{AstralPrice|10}} | |example2output={{AstralPrice|10}} | ||
|example3=<nowiki>{{AstralPrice|10}}</nowiki> | |||
|example3output={{#dplvar:set|vendorformat|table}}{{AstralPrice|10}} | |||
|parameter1name = cost | |parameter1name = cost | ||
|parameter1description = The number of shards | |parameter1description = The number of shards | ||
}} | }} | ||
</noinclude><onlyinclude>[[File:Astral Shard.png|link=|Shard]] {{formatnum:{{{1}}}}}x Astral Shard{{#ifexpr: {{{1}}}>1|s}}</onlyinclude> | </noinclude><onlyinclude>{{#switch: {{lc:{{#dplvar:vendorformat}}}} | ||
|table=<div style="display:inline-block;position:relative">[[File:Astral Shard.png|link=|Shard|36px|x36px|{{formatnum:{{{1}}}}}x Astral Shard{{#ifexpr: {{{1}}}>1|s}}]]<div style="font-size:12px;text-shadow:-1px -1px 0 #000000,1px -1px 0 #000000,-1px 1px 0 #000000,1px 1px 0 #000000;position:absolute;z-index:2;right:2px;bottom:0;width:100%;pointer-events:none;text-align:right;">{{{1}}}</div></div> | |||
|#default=[[File:Astral Shard.png|link=|Shard]] {{formatnum:{{{1}}}}}x Astral Shard{{#ifexpr: {{{1}}}>1|s}}}}</onlyinclude> |
Latest revision as of 13:17, 19 October 2021
AstralPrice[edit]
This template is used to render the cost of something, in Astral currency.
Example Usage | |
{{AstralPrice|1}} | 1x Astral Shard |
{{AstralPrice|10}} | 10x Astral Shards |
{{AstralPrice|10}} | 10 |
Usage[edit]
{{AstralPrice|(cost)}}
Parameter Documentation | |
cost | The number of shards |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
{{{1}}}