साँचा:Height
This template employs intricate features of template syntax. You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
Instructions
संपादित करें- The template is intended for conversion of heights specified in either meters, or in feet and inches. Meters are converted to feet and inches, and feet and inches are converted to meters.
- As this template is intended for use in infoboxes, the units on both sides of the conversion are abbreviated by default. When using this template outside of infoboxes, use the abbr parameter, which can take values of yes (default; both sides of the conversion are abbreviated), no (both sides of the conversion are spelled out), or mos (WP:MOSNUM-compliant format, where the units being converted are spelled out and the units of the converted values are abbreviated).
- For conversion of meters to feet/inches, the frac parameter can be specified to either show the output inches as decimals (frac=10) or as a vulgar fraction (frac=desired denominator; the default is 2 for halves). The frac parameter is ignored for conversion of feet/inches to meters.
- When decimal output is used, the default precision is 1 for meters-to-feet/inches conversion and 2 for feet/inches-to-meters conversion, but it can be overridden by specifying a different figure using the precision parameter (see example below). The precision parameter is ignored when frac is set to anything but 10.
- wiki parameter specifies whether the names of the units should be wikified or not and can take values of either yes or no. The default value is no.
Code
संपादित करेंCode | Result |
---|---|
{{height|m=1.72}} | 1.72 मी॰ (5 फीट 7 1⁄2 इंच) |
{{height|m=1.72|precision=0}} | 1.72 मी॰ (5 फीट 8 इंच)* |
{{height|m=1.72|frac=16}} | 1.72 मी॰ (5 फीट 7 11⁄16 इंच) |
{{height|ft=6}} | 6 फीट 0 इंच (1.83 मी॰) |
{{height|ft=6|in=1}} | 6 फीट 1 इंच (1.85 मी॰) |
{{height|ft=6|in=1|precision=1}} | 6 फीट 1 इंच (1.9 मी॰) |
{{height|in=10}} | 0 फीट 10 इंच (0.25 मी॰) |
{{height|m=1.72|abbr=no}} | 1.72 मीटर (5 फीट 7 1⁄2 इंच) |
{{height|ft=6|in=2|abbr=mos}} | 6 फीट 2 इंच (1.88 मी॰) |
{{height|ft=6|in=2|wiki=yes}} | 6 फीट 2 इंच (1.88 मी॰) |
{{height|m=6|ft=2}} | त्रुटि: कृप्या एक ही प्रकार की इकाई का प्रयोग करें। |
- m is for meters
- ft is for feet
- in is for inches
See also
संपादित करें- {{convert}}
ऊपर दिए गए निर्देश साँचा:Height/doc से लिए गए है।(संपादन | इतिहास) संपादक इस साँचे के प्रयोगस्थल व प्रयोग पन्नों में प्रयोग कर सकते है। sandbox (create) and testcases (create) pages. कृपया /doc उपपृष्ठ पर श्रेणियाँ व विकियों के बिच की कड़ियाँ जोड़े। इस साँचे के उपपृष्ठ। |