Template:Price

From Dreamlight Valley Wiki
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...

Friendship.png 50 Friendship

{{price|30|wonderpixartoken}}

results in...

Wonder of Pixar Token.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 Star Coins
dreamlight Dreamlight.png 1,000 Dreamlight
energy Energy.png 1,000 Energy
friendship Friendship.png 1,000 Friendship
moonstone Moonstone icon.png 1,000 Moonstones
pixeldust Pixel Dust icon.png 1,000 Pixel Dust
mist Mist.png 1,000 Mist
pixartoken Pixar Token icon.png 1,000 Tokens
villaintoken Villains Token.png 1,000 Pumpkin Tokens
festivetoken Festive Token.png 1,000 Gift Tokens
centennialtoken Centennial Token.png 1,000 Mickey Tokens
parkstoken Parks Token.png 1,000 Parks Tokens
wonderpixartoken Wonder of Pixar Token.png 1,000 Pixar Tokens
hauntedtoken Haunted Token.png 1,000 The Nightmare Before Christmas Lollipop Tokens
royalwintertoken Royal Winter Token.png 1,000 Royal Winter Tokens
monstertoken Lovely Monsters Token.png 1,000 Scream Canister Tokens