ढाँचा:Unit length

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

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

This template displays length (or height, it is aliased as {{Unit height}}) measurement units used within various Category:Geobox templates, automatically converting between metric/imperial values. The input must be unformatted numeric values (i.e. without commas, the commas are automatically added to output).

It can display and convert following units:

  • m to ft (metres to feet) and vice-versa
  • km to mi (kilometres to miles) and vice-versa
  • mm to in (milimetres to inches) and vice-versa

The template has 3 unnamed parameters: {{Unit area| unit| value| round}}. Their meaning is as follows:

  1. unit … unit (m, ft, km, mi, mm, in) of the value parameter, it will get displayed first
  2. value … numerical value
  3. round … number of decimal digits (negative numbers can be used for rounded figures); if not specified 0 is assumed

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

  • {{Unit length||1000}}:
  • {{Unit length|m|1000}}: १,००० मी (३,२८१ फिट)
  • {{Unit length|m|1000|-2}}: १,००० मी (३,३०० फिट)
  • {{Unit length|mi|1000|3}}: १,००० मी (१,६०९.३४४ किमी)