50,495
edits
Marblemadmax (talk | contribs) |
Marblemadmax (talk | contribs) mNo edit summary |
||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Description== | ==Description== | ||
This template is used to insert a [[currency]] | This template is used to insert a value and an icon corresponding to an item of value, usually [[currency]], inline with text. It can be used both when the value is given to the player ("reward"), as well as when the value is at a cost to the player ("price"). | ||
In | ==Usage== | ||
In its most basic form, this template can be used by entering the following onto a relevant page: | |||
<pre>{{price|<<amount>>}}</pre> | |||
The amount should be provided as a simple number, with no commas or templates. | |||
There are also optional parameters that can be used: | |||
<pre>{{price|<<amount>>|<<currency>>|showLabel}}</pre> | |||
If optional parameters are not provided, Star Coins will be used as the currency, and the label will not be displayed. | |||
==Examples== | |||
<pre>{{ | <pre>{{price|100}}</pre> | ||
results in... | results in... | ||
{{ | {{price|100}} | ||
<pre>''{{price|50|friendship|showLabel}}''</pre> | |||
results in... | |||
''{{price|50|friendship|showLabel}}'' | |||
{{ | <pre>{{price|30|wonderpixartoken}}</pre> | ||
</pre> | |||
results in... | results in... | ||
{{ | {{price|30|wonderpixartoken}} | ||
==Amount== | ==Amount== | ||
Line 39: | Line 41: | ||
{|class=wikitable | {|class=wikitable | ||
!Input | !Input | ||
!Output | !Output (1000, showLabel) | ||
|- | |- | ||
| | | | ||
| | |{{price|1000|showLabel}} | ||
|- | |||
|dreamlight | |||
|{{price|1000|dreamlight|showLabel}} | |||
|- | |||
|energy | |||
|{{price|1000|energy|showLabel}} | |||
|- | |||
|friendship | |||
|{{price|1000|friendship|showLabel}} | |||
|- | |- | ||
|moonstone | |moonstone | ||
| | |{{price|1000|moonstone|showLabel}} | ||
|- | |- | ||
| | |daisycoin | ||
| | |{{price|1000|daisycoin|showLabel}} | ||
|- | |||
|pixeldust | |||
|{{price|1000|pixeldust|showLabel}} | |||
|- | |||
|mist | |||
|{{price|1000|mist|showLabel}} | |||
|- | |- | ||
|pixartoken | |pixartoken | ||
| | |{{price|1000|pixartoken|showLabel}} | ||
|- | |- | ||
|villaintoken | |villaintoken | ||
| | |{{price|1000|villaintoken|showLabel}} | ||
|- | |- | ||
|festivetoken | |festivetoken | ||
| | |{{price|1000|festivetoken|showLabel}} | ||
|- | |- | ||
|centennialtoken | |centennialtoken | ||
| | |{{price|1000|centennialtoken|showLabel}} | ||
|- | |||
|parkstoken | |||
|{{price|1000|parkstoken|showLabel}} | |||
|- | |||
|wonderpixartoken | |||
|{{price|1000|wonderpixartoken|showLabel}} | |||
|- | |||
|hauntedtoken | |||
|{{price|1000|hauntedtoken|showLabel}} | |||
|- | |||
|royalwintertoken | |||
|{{price|1000|royalwintertoken|showLabel}} | |||
|- | |||
|monstertoken | |||
|{{price|1000|monstertoken|showLabel}} | |||
|- | |||
|dayatdisneytoken | |||
|{{price|1000|dayatdisneytoken|showLabel}} | |||
|} | |} | ||
<includeonly>[[Category:Formatting templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | <includeonly>[[Category:Formatting templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |