This template is used on approximately 7,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
((Infobox dim)) is used inside infoboxes to determine the size of an object. This is passed to geohack to make appropriate map sizes. Parameters are all optional:
((Infobox dim/core|((#if:(({length_mi|))}|((#expr:(({length_mi))}*1.609))|(({length_km|))} ))
|((#if:(({width_mi|))}|((#expr:(({width_mi))}*1.609))|(({width_km|))} ))
|((#switch: 1
| ((#if:(({area_mi2|))}|1|0)) = ((#expr:(({area_mi2))}*2.59))
| ((#if:(({area_acre|))}|1|0)) = ((#expr:(({area_acre))}*0.004047))
| ((#if:(({area_ha|))}|1|0)) = ((#expr:(({area_ha))}*0.01))
| ((#if:(({area_km2|))}|1|0)) = (({area_km2))} )) ))