Jump to content

Template:Number

From The Perfect Tower II
Revision as of 20:53, 6 October 2026 by Speedybrain (talk | contribs)

Shows a large number as the game does, in the format each reader chose under Appearance: scientific notation (1.2e7, the default) or named numbers (12 M)

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Number1

The number to display (in long form or scientific notation)

Example
10,000,000 or 1e7
Numberrequired
Formatformat

Force one format for every reader: named or scientific. Leave it empty so readers see the format they chose under Appearance (preferred)

Example
named
Stringoptional
Prefixprefix

Add an optional prefix to the number

Example
$
Stringoptional
Suffixsuffix

Add an optional suffix to the number

Example
%
Stringoptional
Sort Keysortkey

Specify a custom sort key to override default table number sorting

Example
Z
Stringoptional
Iconicon

Add an icon (e.g. for resource display)

Example
{{Resource|White}}
Stringoptional
Icon Positioniconpos

Position of the icon (if specified), 'left' places it on the left, otherwise defaults to the right

Default
right
Example
left
Stringoptional

Large numbers show in the format each reader picks under Appearance: scientific notation (1.2e7, the default) or named numbers (12 M). The other format is in the tooltip. Numbers below a million always show in full.

Examples

Input Output
{{Number|120000}} 120,000
{{Number|18000000000}} 1.8E1018 B
{{Number|12456712473}} 1.246E1012.457 B
{{Number|7.4e87}} 7.4E877.4 OcV
{{Number|5E+34|format=named}} 50 De
{{Number|3.50e+09|format=scientific}} 3.5E9
{{Number|3555|prefix=$}} $3,555
{{Number|1.8e12|suffix=%}} 1.8E12%1.8 T%
{{Number|2e308}} Infinity
{{Number|2e28|icon={{Resource|Blue}}}} 2E2820 Oc Blue resource