Difference between revisions of "Template:Infobox dim/doc"
Jump to navigation
Jump to search
imported>Hike395 (create doc page) |
imported>Hike395 (update doc to incoporate use of area parameters) |
||
| Line 8: | Line 8: | ||
* width_mi | * width_mi | ||
* width_km | * width_km | ||
| + | * area_mi2 | ||
| + | * area_km2 | ||
== Source == | == Source == | ||
| Line 17: | Line 19: | ||
|{{#if:{{{width_mi|}}} | |{{#if:{{{width_mi|}}} | ||
|{{#expr:{{{width_mi}}}*1.609}} | |{{#expr:{{{width_mi}}}*1.609}} | ||
| − | |{{{width_km|}}} }} }}</pre> | + | |{{{width_km|}}} }} |
| + | |{{#if:{{{area_mi2|}}} | ||
| + | |{{#expr:{{{area_mi2}}}*2.589}} | ||
| + | |{{{area_km2|}}} }} }}</pre> | ||
== See also == | == See also == | ||
Revision as of 06:03, 23 June 2012
| 40px | This is a documentation subpage for Template:Infobox dim. It contains usage information, categories and other content that is not part of the original template page. |
Usage
{{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:
- length_mi
- length_km
- width_mi
- width_km
- area_mi2
- area_km2
Source
{{Infobox dim/core
|{{#if:{{{length_mi|}}}
|{{#expr:{{{length_mi}}}*1.609}}
|{{{length_km|}}} }}
|{{#if:{{{width_mi|}}}
|{{#expr:{{{width_mi}}}*1.609}}
|{{{width_km|}}} }}
|{{#if:{{{area_mi2|}}}
|{{#expr:{{{area_mi2}}}*2.589}}
|{{{area_km2|}}} }} }}