साँचा:Height/doc
नेविगेशन पर जाएँ
खोज पर जाएँ
{{
साँचा:namespace detect
| type = notice
| image =
| imageright =
| class =
| style = margin-bottom:1.0em;
| textstyle =
| text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page.
| small =
| smallimage =
| smallimageright =
| smalltext =
| subst =
| date =
| name =
}}
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}} | साँचा:height |
{{height|m=1.72|precision=0}} | साँचा:height |
{{height|m=1.72|frac=16}} | साँचा:height |
{{height|ft=6}} | साँचा:height |
{{height|ft=6|in=1}} | साँचा:height |
{{height|ft=6|in=1|precision=1}} | साँचा:height |
{{height|in=10}} | साँचा:height |
{{height|m=1.72|abbr=no}} | साँचा:height |
{{height|ft=6|in=2|abbr=mos}} | साँचा:height |
{{height|ft=6|in=2|wiki=yes}} | साँचा:height |
{{height|m=6|ft=2}} | साँचा:height |
- m is for meters
- ft is for feet
- in is for inches