Difference between revisions of "MapWeight"
From P6 Spheres
| Line 22: | Line 22: | ||
-->|{{#ifexpr:{{{1|}}} = 0<!-- | -->|{{#ifexpr:{{{1|}}} = 0<!-- | ||
-->|-<!-- | -->|-<!-- | ||
| − | -->|{{#ifexpr:{{{1|}}} < 1<!-- | + | -->|{{#ifexpr:{{{1|}}} = 0.5<!-- |
| − | + | -->|½ lb.<!-- | |
| − | + | -->|{{#ifexpr:{{{1|}}} < 1<!-- | |
| + | -->|{{#number_format:{{{1|}}}|_}} lbs.<!-- | ||
| + | -->|{{#number_format:{{{1|}}}|0}} {{#ifeq:{{{1|}}}|1.0|lb.|lbs.}}<!-- | ||
| + | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}}</includeonly> | -->}}</includeonly> | ||
Revision as of 22:54, 14 March 2020
Accepts Float.
Returns String where float has been converted to a nice weight in pounds:
Example: {{MapWeight|-}}: -
Example: {{MapWeight|0.0}}: -
Example: {{MapWeight|0.03}}: 0.03 lbs.
Example: {{MapWeight|1.0}}: 1 lb.
Example: {{MapWeight|5.0}}: 5 lbs.
Example: {{MapWeight|2500.0}}: 2,500 lbs.
Note: {{MapWeight|1.5}}: 2 lbs.