Template:Crop: Difference between revisions

From Space Exploration
Jump to navigation Jump to search
imported>Ahopefulhobbit
trying to get infoboxes working
 
imported>Ahopefulhobbit
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexpr: {{formatnum:{{{1|0}}}|R}} >= 1000000 | {{#expr: {{formatnum:{{{1|0}}}|R}}/1000000 round 1}}m | {{#ifexpr: {{formatnum:{{{1|0}}}|R}} >= 1000 | {{#expr: {{formatnum:{{{1|0}}}|R}}/1000 round 1}}k | {{{1|0}}} }} }}<noinclude>{{Documentation}}</noinclude>
{{#ifexpr: {{formatnum:{{{1|0}}}|R}} >= 1000000 | {{#expr: {{formatnum:{{{1|0}}}|R}}/1000000 round 1}}m | {{#ifexpr: {{formatnum:{{{1|0}}}|R}} >= 1000 | {{#expr: {{formatnum:{{{1|0}}}|R}}/1000 round 1}}k | {{{1|0}}} }} }}<noinclude>{{Documentation}}<!--This template is adapted from the Factorio Wiki [https://wiki.factorio.com/Template:Crop] and is licensed under CC BY-NC-SA 3.0.-->
</noinclude>

Latest revision as of 16:50, 14 December 2021

0

[View] [Edit] [Page history]

Documentation

This template is adapted from the Factorio Wiki and is licensed under CC BY-NC-SA 3.0.

This is a simple template that will take a large number, such as 23,000, and turn it into 23k.

Example:

{{Crop|23000}}

Makes:

23k
List of all templates