Difference between revisions of "Template:Number"
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#invoke:FormatNumber|main}}</includeonly><noinclude> <templatedata> { "params": { "1": { "label": "Number", "description": "The number to format (in lo...") |
(Update templatedata) |
||
Line 5: | Line 5: | ||
"1": { | "1": { | ||
"label": "Number", | "label": "Number", | ||
− | "description": "The number to | + | "description": "The number to display (in long form or scientific notation)", |
− | "example": "1e7", | + | "example": "10,000,000 or 1e7", |
− | " | + | "type": "number", |
− | " | + | "required": true |
}, | }, | ||
"format": { | "format": { | ||
Line 14: | Line 14: | ||
"description": "Force a specific format (named or scientific). If blank, displays both named and scientific (preferred)", | "description": "Force a specific format (named or scientific). If blank, displays both named and scientific (preferred)", | ||
"example": "named", | "example": "named", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "prefix": { | ||
+ | "label": "Prefix", | ||
+ | "description": "Add an optional prefix to the number", | ||
+ | "example": "$", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "suffix": { | ||
+ | "label": "Suffix", | ||
+ | "description": "Add an optional suffix to the number", | ||
+ | "example": "%", | ||
"type": "string" | "type": "string" | ||
} | } | ||
}, | }, | ||
− | "description": " | + | "description": "Display a large number in named and/or scientific notations, matching in-game formatting", |
"format": "inline" | "format": "inline" | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 19:20, 19 March 2021
Display a large number in named and/or scientific notations, matching in-game formatting
Parameter | Description | Type | Status | |
---|---|---|---|---|
Number | 1 | The number to display (in long form or scientific notation)
| Number | required |
Format | format | Force a specific format (named or scientific). If blank, displays both named and scientific (preferred)
| String | optional |
Prefix | prefix | Add an optional prefix to the number
| String | optional |
Suffix | suffix | Add an optional suffix to the number
| String | optional |