Template:Currency

From Nookipedia, the Animal Crossing wiki
Revision as of 12:54, November 7, 2021 by SuperHamster (talk | contribs) (Bells page is now unlinked by default; will be linked if link parameter is specified)

{{#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=  Nook Points
|Happy Points=  Happy Points
|Happy Tickets= Happy Tickets

}}

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:

  • {{#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=  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=  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=  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=  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=  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=  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=  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=  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=  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=  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=  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=  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=  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=  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=  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=  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.

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= 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= 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= 7,000 Points
|Happy Points= 7,000 Happy Points
|Happy Tickets=7,000 Happy Tickets
}}