Template:Price

From Dreamlight Valley Wiki
Revision as of 21:10, 3 April 2023 by Lizz (talk | contribs) (add energy)
Jump to navigation Jump to search

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...

Star Coin icon.png 100

''{{price|50|friendship|showLabel}}''

results in...

Star Coin icon.png 50

{{price|30|wonderpixartoken}}

results in...

Star Coin icon.png 30

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)
Star Coin icon.png 1,000
dreamlight Dreamlight.png 1,000
energy Energy.png 1,000
friendship Star Coin icon.png 1,000
moonstone Moonstone icon.png 1,000
daisycoin Star Coin icon.png 1,000
pixeldust Star Coin icon.png 1,000
mist Star Coin icon.png 1,000
pixartoken Pixar Token icon.png 1,000
villaintoken Villains Token.png 1,000
festivetoken Festive Token.png 1,000
centennialtoken Centennial Token.png 1,000
parkstoken Star Coin icon.png 1,000
wonderpixartoken Star Coin icon.png 1,000
hauntedtoken Star Coin icon.png 1,000
royalwintertoken Star Coin icon.png 1,000
monstertoken Star Coin icon.png 1,000
dayatdisneytoken Star Coin icon.png 1,000