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 this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
This template has existing translations, relatives, or sub-templates: |
Usage
{{Cost}}
will display the numeric cost of a currency item. Whether is be Gold, Renown, Focus, Skill Medals, or Chapaa Chase Tickets.
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
- Gold (
- Premium
-
- Palia Coins (
Palia Coin
)
- Palia Coins (
- Items
-
- Lucky Coin (
Lucky Coin
)
- Lucky Coin (
- Events
-
- Chapaa Chase Ticket (
Chapaa Chase Ticket
) - Lucky Envelope (
Lucky Envelope
)
- Chapaa Chase Ticket (
Examples
Syntax | Result | Note |
---|---|---|
{{Cost|10000}}
|
10,000 | 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|Chapaa Chase 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|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|Chapaa Chase Ticket}}
{{Cost|10000|Lucky Envelope}}
|
10,000 Chapaa Chase Tickets
10,000 Lucky Envelopes |
Item costs Maji Market currencies |