Template:Price: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
|centennialtoken=[[File:Centennial_Token.png|20px|link=Centennial Star Path]] {{formatnum:{{{1|}}}}}
|centennialtoken=[[File:Centennial_Token.png|20px|link=Centennial Star Path]] {{formatnum:{{{1|}}}}}
|parkstoken=[[File:Parks_Token.png|20px|link=Disney Parks Star Path]] {{formatnum:{{{1|}}}}}
|parkstoken=[[File:Parks_Token.png|20px|link=Disney Parks Star Path]] {{formatnum:{{{1|}}}}}
|wonderpixartoken=[[File:Wonder of Pixar Token_icon.png|20px|link=The Wonder of Pixar Star Path]] {{formatnum:{{{1|}}}}}
|moonstone=[[File:Moonstone_icon.png|20px|link=]] {{formatnum:{{{1|}}}}}
|moonstone=[[File:Moonstone_icon.png|20px|link=]] {{formatnum:{{{1|}}}}}
|energy=[[File:Energy.png|20px|link=]] {{formatnum:{{{1|}}}}}
|energy=[[File:Energy.png|20px|link=]] {{formatnum:{{{1|}}}}}
|dreamlight=[[File:Dreamlight.png|20px|link=]] [[Dreamlight|{{formatnum:{{{1|}}}}}]]
|dreamlight=[[File:Dreamlight.png|20px|link=]] [[Dreamlight|{{formatnum:{{{1|}}}}}]]
|#default=[[File:Star_Coin_icon.png|20px|link=]] {{formatnum:{{#expr:{{{1|}}}}}}}}}}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
|#default=[[File:Star_Coin_icon.png|20px|link=]] {{formatnum:{{#expr:{{{1|}}}}}}}}}}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 17:15, 7 June 2023

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

File:Wonder of Pixar Token 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 Parks Token.png 1,000
wonderpixartoken File:Wonder of Pixar Token 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