Template:Price: Difference between revisions
Marblemadmax (talk | contribs) mNo edit summary |
(fix A Day at Disney SP token name (Mickey Mouse Tokens), add placeholder for next sp token) |
||
(One intermediate revision by one other user not shown) | |||
Line 9: | Line 9: | ||
|royalwintertoken=[[File:Royal Winter Token.png|20px|link=Royal Winter Star Path]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Royal Winter Star Path|Royal Winter Tokens]]|}} | |royalwintertoken=[[File:Royal Winter Token.png|20px|link=Royal Winter Star Path]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Royal Winter Star Path|Royal Winter Tokens]]|}} | ||
|monstertoken=[[File:Lovely Monsters Token.png|20px|link=Lovely Monsters Star Path]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Lovely Monsters Star Path|Scream Canister Tokens]]|}} | |monstertoken=[[File:Lovely Monsters Token.png|20px|link=Lovely Monsters Star Path]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Lovely Monsters Star Path|Scream Canister Tokens]]|}} | ||
|dayatdisneytoken={{cleanup|TODO: Replace with actual image and improved name}}[[File: | |dayatdisneytoken=[[File:Day at Disney_Token.png|20px|link=A Day at Disney Star Path]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[A Day at Disney Star Path|Mickey Mouse Tokens]]|}} | ||
|pixeldust=[[File:Pixel_Dust_icon.png|20px|link=]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Pixel Dust]]|}} | |update11_sptoken={{cleanup|TODO: Replace with actual image and improved name}}[[File:Haunted Token.png|20px|link=Update 11 Star Path]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Update 11 Star Path|Event Tokens]]|}} | ||
|moonstone=[[File:Moonstone_icon.png|20px|link=]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Moonstones]]|}} | |pixeldust=[[File:Pixel_Dust_icon.png|20px|link=Pixel Dust]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Pixel Dust]]|}} | ||
|daisycoin=[[File: Daisy Coin_icon.png|20px|link=]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Daisy Coins]]|}} | |moonstone=[[File:Moonstone_icon.png|20px|link=Moonstones]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Moonstones]]|}} | ||
|energy=[[File:Energy.png|20px|link=]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Energy]]|}} | |daisycoin=[[File:Daisy Coin_icon.png|20px|link=Daisy Coins]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Daisy Coins]]|}} | ||
|dreamlight=[[File:Dreamlight.png|20px|link=]] [[Dreamlight|'''{{formatnum:{{{1|}}}}}''']] {{#ifeq:{{{3|}}}|showLabel|[[Dreamlight]]|}} | |energy=[[File:Energy.png|20px|link=Energy]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Energy]]|}} | ||
|friendship=[[File:Friendship.png|20px|link=]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Friendship]]|}} | |dreamlight=[[File:Dreamlight.png|20px|link=Dreamlight]] [[Dreamlight|'''{{formatnum:{{{1|}}}}}''']] {{#ifeq:{{{3|}}}|showLabel|[[Dreamlight]]|}} | ||
|mist=[[File:Mist.png|20px|link=]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Mist]]|}} | |friendship=[[File:Friendship.png|20px|link=Friendship]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Friendship]]|}} | ||
|#default=[[File:Star_Coin_icon.png|20px|link=]] {{#if:{{{1|}}}|'''{{formatnum:{{#expr:{{{1|}}}}}}}'''}} {{#ifeq:{{{2|}}}|showLabel|[[Star Coins]]|}}}}}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | |mist=[[File:Mist.png|20px|link=Mist]] '''{{formatnum:{{{1|}}}}}''' {{#ifeq:{{{3|}}}|showLabel|[[Mist]]|}} | ||
|#default=[[File:Star_Coin_icon.png|20px|link=Star Coins]] {{#if:{{{1|}}}|'''{{formatnum:{{#expr:{{{1|}}}}}}}'''}} {{#ifeq:{{{2|}}}|showLabel|[[Star Coins]]|}}}}}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> |
Latest revision as of 14:42, 18 June 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 | ![]() |
daisycoin | ![]() |
pixeldust | ![]() |
mist | ![]() |
pixartoken | ![]() |
villaintoken | ![]() |
festivetoken | ![]() |
centennialtoken | ![]() |
parkstoken | ![]() |
wonderpixartoken | ![]() |
hauntedtoken | ![]() |
royalwintertoken | ![]() |
monstertoken | ![]() |
dayatdisneytoken | ![]() |