Difference between revisions of "MapWeight"
From P6 Spheres
| Line 8: | Line 8: | ||
Example: <nowiki>{{MapWeight|0.03}}</nowiki>: {{MapWeight|0.03}} | Example: <nowiki>{{MapWeight|0.03}}</nowiki>: {{MapWeight|0.03}} | ||
| + | |||
| + | Example: <nowiki>{{MapWeight|0.5}}</nowiki>: {{MapWeight|0.5}} | ||
Example: <nowiki>{{MapWeight|1.0}}</nowiki>: {{MapWeight|1.0}} | Example: <nowiki>{{MapWeight|1.0}}</nowiki>: {{MapWeight|1.0}} | ||
Latest revision as of 22:55, 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|0.5}}: ½ lb.
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.