Difference between revisions of "Template:AstralPrice"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
|description = This template is used to render the cost of something, in Astral currency. | |description = This template is used to render the cost of something, in Astral currency. | ||
|category=Shared Templates | |category=Shared Templates | ||
|example1=<nowiki>{{AstralPrice|10}}</nowiki> | |example1=<nowiki>{{AstralPrice|1}}</nowiki> | ||
| | |example1output={{AstralPrice|1}} | ||
|example2=<nowiki>{{AstralPrice|10}}</nowiki> | |||
|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>{{formatnum:{{{1}}}}} [[File:Astral Shard.png|link=|Shard]]}}</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}} | ![]() |
{{AstralPrice|10}} | ![]() |
{{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}}}x Astral ShardExpression error: Unrecognized punctuation character "{". {{{1}}}x Astral ShardExpression error: Unrecognized punctuation character "{".](https://ddo-compendium-files.s3.amazonaws.com/6/6e/Astral_Shard.png)
{{{1}}}