Template:Price/doc: Difference between revisions
Jump to navigation
Jump to search
Marblemadmax (talk | contribs) No edit summary |
(Update documentation for showLabel and friendship) |
||
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>{{ | <pre>''{{price|50|friendship|showLabel}}'' | ||
{{ | {{price|30|wonderpixartoken}} | ||
</pre> | </pre> | ||
results in... | results in... | ||
{{ | ''{{price|50|friendship|showLabel}}'' | ||
{{ | {{price|30|wonderpixartoken}} | ||
==Amount== | ==Amount== | ||
Line 39: | Line 41: | ||
{|class=wikitable | {|class=wikitable | ||
!Input | !Input | ||
!Output | !Output (1000, showLabel) | ||
|- | |- | ||
| | | | ||
| | |{{price|1000|showLabel}} | ||
|- | |- | ||
|dreamlight | |dreamlight | ||
| | |{{price|1000|dreamlight|showLabel}} | ||
|- | |- | ||
|energy | |energy | ||
| | |{{price|1000|energy|showLabel}} | ||
|- | |||
|friendship | |||
|{{price|1000|friendship|showLabel}} | |||
|- | |||
|moonstone | |||
|{{price|1000|moonstone|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 | |parkstoken | ||
| | |{{price|1000|parkstoken|showLabel}} | ||
|- | |- | ||
|wonderpixartoken | |wonderpixartoken | ||
| | |{{price|1000|wonderpixartoken|showLabel}} | ||
|} | |} | ||
<includeonly>[[Category:Formatting templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | <includeonly>[[Category:Formatting templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |