Template:Align Silver

From RimWorld Wiki
Revision as of 22:38, 19 September 2022 by Ickputzdirwech (talk | contribs) (work in progress)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Documentation icon Template documentation[view] [edit] [history] [purge]

Summary

This table can be used to align values of silver. This might be useful in tables and lists. It has three parameters:

  • The first parameter is the amount of silver.
  • The second parameter is the expected maximum power of ten of the first parameter. (default = 5; maximum 2)
  • The third parameter is the expected number of decimal places. (default = 2; maximum 2)

Examples

{{Align Silver|1|2}}
{{Align Silver|10|2}}

011<sp

1010<s

Default length is five:

{{Align Silver|1,000}}
{{Align Silver|10,000}}
{{Align Silver|100,000}}

01,0001,000<s

10,00010,000<

100,000100,000

Maximum length is seven:

{{Align Silver|1|7}}
{{Align Silver|10|7}}
{{Align Silver|100|7}}
{{Align Silver|1,000|7}}
{{Align Silver|10,000|7}}
{{Align Silver|100,000|7}}
{{Align Silver|1,000,000|7}}

0,000,0011<span st

0,000,01010<span s

0,000,100100<span

0,001,0001,000<spa

0,010,00010,000<sp

0,100,000100,000<s

1,000,0001,000,000

Decimal places:

{{Align Silver|10|3|2}} {{Icon Small|silver}}
{{Align Silver|1|3|2}} {{Icon Small|silver}}
{{Align Silver|0.1|3|2}} {{Icon Small|silver}}
{{Align Silver|100.01|3|2}} {{Icon Small|silver}}
{{Align Silver|0.001|3|2}} {{Icon Small|silver}}

01010<sp Silver

0011<spa Silver

000.10.1<s Silver

100.01100.01 Silver

000.0010.001 Silver

00,100100<spaSilver