Difference between revisions of "Template:Currency"
AlexBot2004 (talk | contribs) (Updated file names) |
AlexBot2004 (talk | contribs) m |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{#switch: {{{1|Bells}}} | {{#switch: {{{1|Bells}}} | ||
− | |Bells=[[File:99k Bells NH Inv Icon cropped.png|{{{size|15px}}}|link=]] {{{2|}}} [[ | + | |Bells=[[File:99k Bells NH Inv Icon cropped.png|{{{size|15px}}}|link=]] {{{2|}}} [[Bell|Bell{{#switch:{{{2}}}|1 = |#default = s}}]] |
− | |Play Coins=[[File:Play Coins Icon.png|{{{size|15px}}}|link=]] {{{2|}}} [[Play Coins|Play Coin{{#switch:{{{2}}}|1 = |#default = s}}]] | + | |Play Coins=[[File:Play Coins Icon.png|{{{size|15px}}}|link=]] {{{2|}}} [[Play Coins|Play Coin{{#switch:{{{2}}}|1 = |#default = s}}]] |
− | |Medals=[[File:Medal NL Icon.png|{{{size|18px}}}|link=]] {{{2|}}} [[Medals|Medal{{#switch:{{{2}}}|1 = |#default = s}}]] | + | |Medals=[[File:Medal NL Icon.png|{{{size|18px}}}|link=]] {{{2|}}} [[Medals|Medal{{#switch:{{{2}}}|1 = |#default = s}}]] |
− | |MEOW Coupons=[[File:MEOW Coupon Icon.png|{{{size|18px}}}|link=]] {{{2|}}} [[MEOW Coupons|MEOW Coupon{{#switch:{{{2}}}|1 = |#default = s}}]] | + | |MEOW Coupons=[[File:MEOW Coupon Icon.png|{{{size|18px}}}|link=]] {{{2|}}} [[MEOW Coupons|MEOW Coupon{{#switch:{{{2}}}|1 = |#default = s}}]] |
− | |Leaf Tickets=[[File:Leaf Ticket PC Icon.png|{{{size|15px}}}|link=]] {{{2|}}} [[Leaf Tickets|Leaf Ticket{{#switch:{{{2}}}|1 = |#default = s}}]] | + | |Leaf Tickets=[[File:Leaf Ticket PC Icon.png|{{{size|15px}}}|link=]] {{{2|}}} [[Leaf Tickets|Leaf Ticket{{#switch:{{{2}}}|1 = |#default = s}}]] |
− | |Nook Miles=[[File:Nook Miles NH Icon.png|{{{size|18px}}}|link=]] {{{2|}}} [[Nook Miles|Nook Mile{{#switch:{{{2}}}|1 = |#default = s}}]] | + | |Nook Miles=[[File:Nook Miles NH Icon Cropped.png|{{{size|18px}}}|link=]] {{{2|}}} [[Nook Miles|{{#if:{{{short|}}}|Mile|Nook Mile}}{{#switch:{{{2}}}|1 = |#default = s}}]] |
+ | |Heart Crystals=[[File:Heart Crystal NH Inv Icon.png|{{{size|15px}}}|link=]] {{{2|}}} Heart Crystal{{#switch:{{{2}}}|1 = |#default = s}} | ||
+ | |Saharah Tickets=[[File:Saharah Ticket NH Inv Icon.png|{{{size|15px}}}|link=]] {{{2|}}} Saharah Ticket{{#switch:{{{2}}}|1 = |#default = s}} | ||
}}<noinclude>{{Clear}}{{Documentation}}[[Category:Templates]]</noinclude> | }}<noinclude>{{Clear}}{{Documentation}}[[Category:Templates]]</noinclude> |
Revision as of 17:34, January 9, 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
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}}
50000 Bells
{{Currency|Nook Miles|7000}}
7000 Nook Miles
{{Currency|Nook Miles|7000|short=yes}}
7000 Miles
{{Currency|MEOW Coupons|3|no-image=yes}}3 MEOW Coupons