Template:Cost

From Palia Wiki
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; 10001,000 and 12340001,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
Premium
Items
Events

Examples

Syntax Result Note
{{Cost|10000}}
Gold.png 10,000 Gold The default implementation, to show gold cost
{{Cost|10000|Gold}}
Gold.png 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}}
Gold.png 10,000

Renown.png 10,000

Lucky Coin.png 10,000

Maji Market Ticket.png 10,000

This explicitly types the currency, but also explicitly disables showing the name
{{Cost|##|Gold}}
Gold.png ## Gold Placeholder number
{{Cost|10000|Renown}}
Renown.png 10,000 Renown Item costs Renown
{{Cost|10000|Focus}}
Focus.png 10,000 Focus Item costs Focus
{{Cost|10000|Writ}}
Writ.png 10,000 Writs Item costs Writs
{{Cost|10000|Palia Coin}}
Palia Coin.png 10,000 Palia Coins Items from the Premium Store cost Palia Coins
{{Cost|10000|Lucky Coin}}
Lucky Coin.png 10,000 Lucky Coins Item costs Lucky Coins
{{Cost|10000|Tour Ticket}}
Tour Ticket.png 10,000 Tour Tickets Tickets that are earned from Home Tours
{{Cost|10000|Prize Wheel Coin}}
Prize Wheel Coin.png 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}}
Currency Cooking.png 10,000 Cooking Medals

Currency Hunting.png 10,000 Hunting Medals

Currency Bug.png 10,000 Bug Catching Medals

Currency Gardening.png 10,000 Gardening Medals


Currency Foraging.png 10,000 Foraging Medals

Currency Fishing.png 10,000 Fishing Medals

Currency Furniture.png 10,000 Furniture Making Medals

Currency Mining.png 10,000 Mining Medals

Costs Skill Medals
{{Cost|10000|Maji Market Ticket}}
{{Cost|10000|Lucky Envelope}}
Maji Market Ticket.png 10,000 Maji Market Tickets

Lucky Envelope.png 10,000 Lucky Envelopes

Item costs Maji Market currencies

Related