Difference between revisions of "Template:Currency"

From Nookipedia, the Animal Crossing wiki
(+Happy Points, Happy Tickets)
m
 
(12 intermediate revisions by 4 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=|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=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Bell|Bell{{#ifeq:{{{2}}}|1||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}}]]
+
  |Play Coins=[[File:Play Coins Icon.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Play Coins|Play Coin{{#ifeq:{{{2}}}|1||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=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Medals|Medal{{#ifeq:{{{2}}}|1||s}}]]
  |MEOW Coupons=[[File:MEOW Coupon Icon.png|{{{size|18px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[MEOW Coupons|{{#if:{{{short|}}}|Coupon|MEOW Coupon}}{{#switch:{{{2}}}|1 = |#default = s}}]]
+
  |MEOW Coupons=[[File:MEOW Coupon Icon.png|{{{size|18px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[MEOW Coupons|{{#if:{{{short|}}}|Coupon|MEOW Coupon}}{{#ifeq:{{{2}}}|1||s}}]]
  |Leaf Tickets=[[File:Leaf Ticket PC Icon.png|{{{size|15px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Leaf Ticket|Leaf Ticket{{#switch:{{{2}}}|1 = |#default = s}}]]
+
  |Leaf Tickets=[[File:Leaf Ticket PC Icon.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Leaf Ticket|Leaf Ticket{{#ifeq:{{{2}}}|1||s}}]]
  |Nook Miles=[[File:Nook Miles NH Icon Cropped.png|{{{size|18px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Nook Miles|{{#if:{{{short|}}}|Mile|Nook Mile}}{{#switch:{{{2}}}|1 = |#default = s}}]]
+
  |Nook Miles=[[File:Nook Miles NH Icon Cropped.png|{{{size|18px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Nook Miles|{{#if:{{{short|}}}|Mile|Nook Mile}}{{#ifeq:{{{2}}}|1||s}}]]
  |Heart Crystals=[[File:Heart Crystal NH Inv Icon.png|{{{size|15px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{I|Heart Crystal|New Horizons}}{{#switch:{{{2}}}|1 = |#default = s}}
+
  |Heart Crystals=[[File:Heart Crystal NH Inv Icon.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} {{I|Heart Crystal|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}}
+
  |Saharah Tickets=[[File:Saharah Ticket NH Inv Icon.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}| |}}{{#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=]]{{#if:{{{2|}}}| |}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[NookLink#Nook Points|{{#if:{{{short|}}}|Point|Nook Point}}{{#ifeq:{{{2}}}|1||s}}]]
  |Happy Points=[[File:Happy Point aF Icon.png|{{{size|15px}}}|link=|alt=]] {{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Happy Point|Happy Point{{#switch:{{{2}}}|1 = |#default = s}}]]
+
|Points={{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Tom Nook Point System|Point{{#ifeq:{{{2}}}|1||s}}]]
  |Happy Tickets=<!--[[File:Happy Ticket aF Icon.png|{{{size|15px}}}|link=|alt=]]-->&nbsp;{{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Happy Ticket|Happy Ticket{{#switch:{{{2}}}|1 = |#default = s}}]]
+
  |Happy Points=[[File:Happy Point aF Icon.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}|&nbsp;|}}{{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Happy Point|Happy Point{{#ifeq:{{{2}}}|1||s}}]]
<!-- |Poki=[[File:Poki NH Inv Icon.png|{{{size|15px}}}|link=|alt=]]&nbsp;{{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Poki]]-->
+
  |Happy Tickets=<!--[[File:Happy Ticket aF Icon.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}|&nbsp;|}}-->{{#invoke:formatnum|main|lang=en|{{{2|}}}}} [[Happy Ticket|Happy Ticket{{#ifeq:{{{2}}}|1||s}}]]
 +
|Poki=[[File:Poki NH Inv Icon cropped.png|{{{size|15px}}}|link=|alt=]]{{#if:{{{2|}}}|&nbsp;|}}{{#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>

Latest revision as of 18:06, November 17, 2021

Bells

Template documentation (view)


Emotion Surprise NH Icon cropped.png
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.
Emotion Surprise NH Icon cropped.png
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:

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.

Example

{{Currency|Bells|50000}}

 50,000 Bells

{{Currency|Nook Miles|7000}}

 7,000 Nook Miles

{{Currency|Nook Miles|7000|short=yes}}
 7,000 Miles