Template:Price/doc: Difference between revisions
Marblemadmax (talk | contribs) Tag: Manual revert |
(add commented out update 9 star path tokens (name is still placeholder)) |
||
Line 87: | Line 87: | ||
|royalwintertoken | |royalwintertoken | ||
|{{price|1000|royalwintertoken|showLabel}} | |{{price|1000|royalwintertoken|showLabel}} | ||
<!--|- | |||
|update9_token | |||
|{{price|1000|update9_token|showLabel}} --> | |||
|} | |} | ||
<includeonly>[[Category:Formatting templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | <includeonly>[[Category:Formatting templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |
Revision as of 00:04, 15 February 2024
Description
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").
Usage
In its most basic form, this template can be used by entering the following onto a relevant page:
{{price|<<amount>>}}
The amount should be provided as a simple number, with no commas or templates.
There are also optional parameters that can be used:
{{price|<<amount>>|<<currency>>|showLabel}}
If optional parameters are not provided, Star Coins will be used as the currency, and the label will not be displayed.
Examples
{{price|100}}
results in...
''{{price|50|friendship|showLabel}}''
results in...
50 Friendship
{{price|30|wonderpixartoken}}
results in...
Amount
This parameter is the amount of currency displayed after the icon
Currency
This parameter accepts different currency types, and will default to Star Coin if there is no value added.
Event currency parameters will automatically link the generated image to the corresponding event article.
Input | Output (1000, showLabel) |
---|---|
![]() | |
dreamlight | ![]() |
energy | ![]() |
friendship | ![]() |
moonstone | ![]() |
pixeldust | ![]() |
mist | ![]() |
pixartoken | ![]() |
villaintoken | ![]() |
festivetoken | ![]() |
centennialtoken | ![]() |
parkstoken | ![]() |
wonderpixartoken | ![]() |
hauntedtoken | ![]() |
royalwintertoken | ![]() |