Template:Cost
Jump to navigation
Jump to search
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit the template documentation. (About template documentation) |
This Template uses the following Lua Modules: Cost |
This Template stores its Translations in the following Message Bundles: Cost/Currency, Cost/Messages |
Editors can experiment in this template's sandbox and test case pages. |
Usage
{{Cost}}
will display the numeric cost of a currency item. Whether it be Gold, Renown, Focus, Skill Medals, or Maji Market Ticket.
Syntax
{{Cost|amount|currency|show-name}}
Field | Accepted Parameters |
---|---|
amount
|
The amount of the currency, defaults to 1 . Amounts over 1000 will automatically be formatted according with the current language (Eg; 1000 → 1,000 and 1234000 → 1,234,000 )
|
currency
|
Optional. The type of currency, defaults to Gold. Can be Gold or the name of a Skill. |
show-name
|
Optional. Displays the name of the currency after the amount, defaults to 0 if the currency is not provided.
|
Supported Currencies
- Primary
-
- Gold (
Gold
) - Writ (
Writ
) - Renown (
Renown
) - Focus (
Focus
) - Skill Medals
- Tour Ticket (
Tour Ticket
)
- Gold (
- Premium
-
- Palia Coins (
Palia Coin
)
- Palia Coins (
- Items
-
- Lucky Coin (
Lucky Coin
) - Prize Wheel Coin (
Prize Wheel Coin
)
- Lucky Coin (
- Events
-
- Maji Market Ticket (
Maji Market Ticket
) - Claw Machine Token (
Claw Machine Token
) - Chapaa Chase Ticket (
Chapaa Chase Ticket
) - Lucky Envelope (
Lucky Envelope
)
- Maji Market Ticket (
Examples
Syntax | Result | Note |
---|---|---|
{{Cost|10000}}
|
10,000 Gold | The default implementation, to show gold cost |
{{Cost|10000|Gold}}
|
10,000 Gold | This will show gold cost, and also show "Gold" text because the name was explicitly typed |
{{Cost|10000|Gold|0}}
{{Cost|10000|Renown|0}}
{{Cost|10000|Lucky Coin|0}}
{{Cost|10000|Maji Market Ticket|0}}
|
10,000 | This explicitly types the currency, but also explicitly disables showing the name |
{{Cost|##|Gold}}
|
## Gold | Placeholder number |
{{Cost|10000|Renown}}
|
10,000 Renown | Item costs Renown |
{{Cost|10000|Focus}}
|
10,000 Focus | Item costs Focus |
{{Cost|10000|Writ}}
|
10,000 Writs | Item costs Writs |
{{Cost|10000|Palia Coin}}
|
10,000 Palia Coins | Items from the Premium Store cost Palia Coins |
{{Cost|10000|Lucky Coin}}
|
10,000 Lucky Coins | Item costs Lucky Coins |
{{Cost|10000|Tour Ticket}}
|
10,000 Tour Tickets | Tickets that are earned from Home Tours |
{{Cost|10000|Prize Wheel Coin}}
|
10,000 Prize Wheel Coins | Coins for Zeki's Prize Wheel |
{{Cost|10000|Cooking}}
{{Cost|10000|Hunting}}
{{Cost|10000|Bug Catching}}
{{Cost|10000|Gardening}}
{{Cost|10000|Foraging}}
{{Cost|10000|Fishing}}
{{Cost|10000|Furniture Making}}
{{Cost|10000|Mining}}
|
10,000 Cooking Medals
10,000 Hunting Medals 10,000 Bug Catching Medals 10,000 Gardening Medals
10,000 Fishing Medals 10,000 Furniture Making Medals 10,000 Mining Medals |
Costs Skill Medals |
{{Cost|10000|Maji Market Ticket}}
{{Cost|10000|Lucky Envelope}}
|
10,000 Maji Market Tickets
10,000 Lucky Envelopes |
Item costs Maji Market currencies |
Related
- This template handles translations using the following MessageBundles: