Difference between revisions of "Template:Currency"
(Adding game parameter, if used in conjunction with Nook Points and set to 'ww' or 'cf' will link to Tom Nook Point System instead of Nook Points page.) |
Dorsal Axe (talk | contribs) (Preliminary support for Poki) |
||
Line 9: | Line 9: | ||
|Saharah Tickets=[[File:Saharah Ticket NH Inv Icon.png|{{{size|15px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{I|Saharah Ticket|New Horizons}}{{#switch:{{{2}}}|1 = |#default = s}} | |Saharah Tickets=[[File:Saharah Ticket NH Inv Icon.png|{{{size|15px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{I|Saharah Ticket|New Horizons}}{{#switch:{{{2}}}|1 = |#default = s}} | ||
|Nook Points=[[File:Nook Points NH Icon Cropped.png|{{{size|18px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[{{#switch:{{lc:{{{game|}}}}}|ww|cf=Tom Nook Point System|Nook Points}}|{{#if:{{{short|}}}|Point|Nook Point}}{{#switch:{{{2}}}|1 = |#default = s}}]] | |Nook Points=[[File:Nook Points NH Icon Cropped.png|{{{size|18px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[{{#switch:{{lc:{{{game|}}}}}|ww|cf=Tom Nook Point System|Nook Points}}|{{#if:{{{short|}}}|Point|Nook Point}}{{#switch:{{{2}}}|1 = |#default = s}}]] | ||
+ | <!-- |Poki=[[File:Poki NH Inv Icon.png|{{{size|15px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Poki]]--> | ||
}}{{#if:{{{note|}}}|{{Note|{{{note|}}}}}}}<noinclude>{{Clear}}{{Documentation}}[[Category:Templates]]</noinclude> | }}{{#if:{{{note|}}}|{{Note|{{{note|}}}}}}}<noinclude>{{Clear}}{{Documentation}}[[Category:Templates]]</noinclude> |
Revision as of 07:42, October 16, 2021
Template documentation (view)
Usage
{{Currency|<currency>|<quantity>}}
This template will generate the name and associated icon for a specific currency, primarily for use in tables. There are optional parameters to specify a quantity and a size for the icon; the default size is 15px. The template defaults to Bells, as this is by far the most used currency in the series. Decimal commas are not required, as the template automatically formats the number with them.
The following currencies are supported by this template:
- Bells
- Play Coins
- Medals
- MEOW Coupons
- Leaf Tickets
- Nook Miles
- Saharah Tickets
- Heart Crystals
- 18px Nook Points
Shorthand can be requested for some currencies by defining parameter short
. Currencies that support this:
For the Nook Points currency, if the game
parameter is set to 'ww' or 'cf' the template will link to Tom Nook Point System instead of Nook Points. To hide the image of the currency template, use no-image
.
Example
{{Currency|Bells|50000}}
50,000 Bells
{{Currency|Nook Miles|7000}}
7,000 Nook Miles
{{Currency|Nook Miles|7000|short=yes}}
7,000 Miles
{{Currency|MEOW Coupons|3|no-image=yes}}3 MEOW Coupons