|
|
Line 1: |
Line 1: |
− | {{#switch: {{{1|Bells}}}
| + | {{#invoke:Currency|outputCurrency|{{{1|Bells}}}|{{{2|}}}|nolink={{{nolink|}}}|short={{{short|}}}}}<noinclude>{{Clear}}{{Documentation}}[[Category:Templates]]</noinclude> |
− | |Bells=[[File:99k Bells NH Inv Icon cropped.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{#if:{{{nolink|}}}|Bell{{#ifeq:{{{2}}}|1||s}}|[[Bell|Bell{{#ifeq:{{{2}}}|1||s}}]]}}
| |
− | |Play Coins=[[File:Play Coins Icon.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{#if:{{{nolink|}}}|Play Coin{{#ifeq:{{{2}}}|1||s}}|[[Play Coins|Play Coin{{#ifeq:{{{2}}}|1||s}}]]}}
| |
− | |Medals=[[File:Medal NL Icon.png|{{{size|18px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{#if:{{{nolink|}}}|Medal{{#ifeq:{{{2}}}|1||s}}|[[Medals|Medal{{#ifeq:{{{2}}}|1||s}}]]}}
| |
− | |MEOW Coupons=[[File:MEOW Coupon Icon.png|{{{size|18px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{#if:{{{nolink|}}}|{{#if:{{{short|}}}|Coupon|MEOW Coupon}}{{#ifeq:{{{2}}}|1||s}}|[[MEOW Coupons|{{#if:{{{short|}}}|Coupon|MEOW Coupon}}{{#ifeq:{{{2}}}|1||s}}]]}}
| |
− | |Leaf Tickets=[[File:Leaf Ticket PC Icon.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{#if:{{{nolink|}}}|Leaf Ticket{{#ifeq:{{{2}}}|1||s}}|[[Leaf Ticket|Leaf Ticket{{#ifeq:{{{2}}}|1||s}}]]}}
| |
− | |Nook Miles=[[File:Nook Miles NH Icon Cropped.png|{{{size|18px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{#if:{{{nolink|}}}|{{#if:{{{short|}}}|Mile|Nook Mile}}{{#ifeq:{{{2}}}|1||s}}|[[Nook Miles|{{#if:{{{short|}}}|Mile|Nook Mile}}{{#ifeq:{{{2}}}|1||s}}]]}}
| |
− | |Heart Crystals=[[File:Heart Crystal NH Inv Icon.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{#if:{{{nolink|}}}|Heart Crystal{{switch:{{{2}}}|1 = |#default = s}}|{{I|Heart Crystal|New Horizons}}{{#switch:{{{2}}}|1 = |#default = s}}}}
| |
− | |Saharah Tickets=[[File:Saharah Ticket NH Inv Icon.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{#if:{{{nolink|}}}|Saharah Ticket{{#switch:{{{2}}}|1 = |#default = s}}|{{I|Saharah Ticket|New Horizons}}{{#switch:{{{2}}}|1 = |#default = s}}}}
| |
− | |Nook Points=[[File:Nook Points NH Icon Cropped.png|{{{size|18px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{#if:{{{nolink|}}}|{{#if:{{{short|}}}|Point|Nook Point}}{{#ifeq:{{{2}}}|1||s}}|[[NookLink#Nook Points|{{#if:{{{short|}}}|Point|Nook Point}}{{#ifeq:{{{2}}}|1||s}}]]}}
| |
− | |Points={{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{#if:{{{nolink|}}}|Point{{#ifeq:{{{2}}}|1||s}}|[[Tom Nook Point System|Point{{#ifeq:{{{2}}}|1||s}}]]}}
| |
− | |Happy Points=[[File:Happy Point aF Icon.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{#if:{{{nolink|}}}|Happy Point{{#ifeq:{{{2}}}|1||s}}|[[Happy Point|Happy Point{{#ifeq:{{{2}}}|1||s}}]]}}
| |
− | |Happy Tickets=<!--[[File:Happy Ticket aF Icon.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}-->{{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{#if:{{{nolink|}}}|Happy Ticket{{#ifeq:{{{2}}}|1||s}}|[[Happy Ticket|Happy Ticket{{#ifeq:{{{2}}}|1||s}}]]}}
| |
− | |Poki=[[File:Poki NH Inv Icon cropped.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{#if:{{{nolink|}}}|Poki|[[Poki]]}}
| |
− | }}{{#if:{{{note|}}}|{{Note|{{{note|}}}}}}}<noinclude>{{Clear}}{{Documentation}}[[Category:Templates]]</noinclude>
| |
Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
Template documentation (view)
This template is complex or is transcluded on a large number of pages.
Due to the sensitive nature of this template, caution is advised before editing. Any changes should first be tested in a sandbox. Please consider discussing planned changes on the
talk page or with
staff members before implementing them.
This template is complex or is transcluded on a large number of pages.
Due to the sensitive nature of this template, caution is advised before editing. Any changes should first be tested in a sandbox. Please consider discussing planned changes on the
talk page or with
staff members before implementing them.
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:
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
Shorthand can be requested for some currencies by defining parameter short
. Currencies that support this:
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
- Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
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}}
Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
{{Currency|Nook Miles|7000}}
Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
{{Currency|Nook Miles|7000|short=yes}}
Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).
{{Currency|MEOW Coupons|3|no-image=yes}}
Lua error in Module:Currency at line 46: attempt to index field '?' (a nil value).