Template:Infobox dim/doc

From blackwiki
< Template:Infobox dim
Revision as of 05:18, 23 June 2012 by imported>Hike395 (create doc page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Source

{{Infobox dim/core
    |{{#if:{{{length_mi|}}}
        |{{#expr:{{{length_mi}}}*1.609}}
        |{{{length_km|}}} }}
    |{{#if:{{{width_mi|}}}
        |{{#expr:{{{width_mi}}}*1.609}}
        |{{{width_km|}}} }} }}

See also