Difference between revisions of "Template:Currency"
AlexBot2004 (talk | contribs) m |
SuperHamster (talk | contribs) (Bells page is now unlinked by default; will be linked if link parameter is specified) |
||
Line 1: | Line 1: | ||
{{#switch: {{{1|Bells}}} | {{#switch: {{{1|Bells}}} | ||
− | |Bells=[[File:99k Bells NH Inv Icon cropped.png|{{{size|15px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Bell|Bell{{#switch:{{{2}}}|1 = |#default = s}}]] | + | |Bells=[[File:99k Bells NH Inv Icon cropped.png|{{{size|15px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{#if:{{{link|}}}|[[Bell|}}Bell{{#switch:{{{2}}}|1 = |#default = s}}{{#if:{{{link|}}}|]]|}} |
|Play Coins=[[File:Play Coins Icon.png|{{{size|15px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Play Coins|Play Coin{{#switch:{{{2}}}|1 = |#default = s}}]] | |Play Coins=[[File:Play Coins Icon.png|{{{size|15px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Play Coins|Play Coin{{#switch:{{{2}}}|1 = |#default = s}}]] | ||
|Medals=[[File:Medal NL Icon.png|{{{size|18px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Medals|Medal{{#switch:{{{2}}}|1 = |#default = s}}]] | |Medals=[[File:Medal NL Icon.png|{{{size|18px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Medals|Medal{{#switch:{{{2}}}|1 = |#default = s}}]] |
Revision as of 13:54, November 7, 2021
{{#switch: Bells
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= MEOW Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Nook Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Nook Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
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:
- {{#switch: Bells
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= MEOW Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Nook Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Nook Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
- {{#switch: Play Coins
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= MEOW Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Nook Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Nook Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
- {{#switch: Medals
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= MEOW Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Nook Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Nook Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
- {{#switch: MEOW Coupons
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= MEOW Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Nook Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Nook Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
- {{#switch: Happy Points
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= MEOW Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Nook Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Nook Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
- {{#switch: Happy Tickets
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= MEOW Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Nook Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Nook Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
- {{#switch: Leaf Tickets
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= MEOW Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Nook Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Nook Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
- {{#switch: Nook Miles
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= MEOW Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Nook Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Nook Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
- {{#switch: Saharah Tickets
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= MEOW Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Nook Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Nook Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
- {{#switch: Heart Crystals
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= MEOW Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Nook Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Nook Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
- {{#switch: Nook Points
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= MEOW Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Nook Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Nook Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
- {{#switch: Points
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= MEOW Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Nook Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Nook Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
- {{#switch: Poki
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= MEOW Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Nook Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Nook Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
Shorthand can be requested for some currencies by defining parameter short
. Currencies that support this:
- {{#switch: MEOW Coupons
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
- {{#switch: Nook Miles
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
- {{#switch: Nook Points
|Bells= {{#if:|[[Bell|}}Bells |Play Coins= Play Coins |Medals= Medals |MEOW Coupons= Coupons |Leaf Tickets= Leaf Tickets |Nook Miles= Miles |Heart Crystals= Heart Crystals |Saharah Tickets= Saharah Tickets |Nook Points=18px Points |Happy Points= Happy Points |Happy Tickets= Happy Tickets
}}
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}}
{{#switch: Bells
|Bells= 50,000 {{#if:|[[Bell|}}Bells |Play Coins= 50,000 Play Coins |Medals= 50,000 Medals |MEOW Coupons= 50,000 MEOW Coupons |Leaf Tickets= 50,000 Leaf Tickets |Nook Miles= 50,000 Nook Miles |Heart Crystals= 50,000 Heart Crystals |Saharah Tickets= 50,000 Saharah Tickets |Nook Points=18px 50,000 Nook Points |Happy Points= 50,000 Happy Points |Happy Tickets=50,000 Happy Tickets
}}
{{Currency|Nook Miles|7000}}
{{#switch: Nook Miles
|Bells= 7,000 {{#if:|[[Bell|}}Bells |Play Coins= 7,000 Play Coins |Medals= 7,000 Medals |MEOW Coupons= 7,000 MEOW Coupons |Leaf Tickets= 7,000 Leaf Tickets |Nook Miles= 7,000 Nook Miles |Heart Crystals= 7,000 Heart Crystals |Saharah Tickets= 7,000 Saharah Tickets |Nook Points=18px 7,000 Nook Points |Happy Points= 7,000 Happy Points |Happy Tickets=7,000 Happy Tickets
}}
{{Currency|Nook Miles|7000|short=yes}}
{{#switch: Nook Miles
|Bells= 7,000 {{#if:|[[Bell|}}Bells |Play Coins= 7,000 Play Coins |Medals= 7,000 Medals |MEOW Coupons= 7,000 Coupons |Leaf Tickets= 7,000 Leaf Tickets |Nook Miles= 7,000 Miles |Heart Crystals= 7,000 Heart Crystals |Saharah Tickets= 7,000 Saharah Tickets |Nook Points=18px 7,000 Points |Happy Points= 7,000 Happy Points |Happy Tickets=7,000 Happy Tickets
}}
{{Currency|MEOW Coupons|3|no-image=yes}}
{{#switch: MEOW Coupons
|Bells= 3 {{#if:|[[Bell|}}Bells |Play Coins= 3 Play Coins |Medals= 3 Medals |MEOW Coupons= 3 MEOW Coupons |Leaf Tickets= 3 Leaf Tickets |Nook Miles= 3 Nook Miles |Heart Crystals= 3 Heart Crystals |Saharah Tickets= 3 Saharah Tickets |Nook Points=18px 3 Nook Points |Happy Points= 3 Happy Points |Happy Tickets=3 Happy Tickets}}