Module:Currency/doc

 Module documentation (view)

Usage
This Lua module outputs the currency and its price for the Currency template to account for preprocessor node count limits. Data is stored in a table, and can determine how certain variables are used.

Portions of the module uses Module:Formatnum, see module for more information.

Inserting a new currency
When adding a new currency to be used on pages, the following syntax must be inserted into the main  table.
 * describes the name of the currency that the editor will write in the Currency template. There is also a second instance of, which can also feature a different text to its first instance.
 * requires an image (preferably an icon) to be added. It must include the filename extension.
 * describes the default size that  will be presented in.
 * describes the link that the player will click on (provided that the link is present).
 * describes a shorter name of the currency when applying the  parameter on the main Currency template.

Example
"Bells" is the, while "Bell" functions as the second instance of  ,  , and. Its  is "99k Bells NH Inv Icon cropped.png", and the   is set to "15px".

The output is: US$Bells

"Nook Mile" is the  and , while "Nook Mile" functions as the second instance of. Its  is "Mile". Its  is "Nook Miles NH Icon Cropped.png", and the   is set to "18px".

The output is: US$Nook Miles

When short is applied, the output is: US$Nook Miles