ढाँचा:Infobox dim

स्वतन्त्र विश्वकोश, नेपाली विकिपिडियाबाट
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

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|}}} }} }}

See also[सम्पादन गर्ने]