Կաղապար:Height

Վիքիպեդիայից՝ ազատ հանրագիտարանից
[խմբագրել] [մաքրել քեշը] Template-info.svg Template documentation

Կաղապար:Intricate template

Բովանդակություն

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.77|precision=0}} Կաղապար:Height/m to ft in
{{height|m=1.77|precision=0}} Կաղապար:Height/m to ft in
{{height|m=1.77|frac=16}} Կաղապար:Height/m to ft in
{{height|ft=6}} 6 ft 0 in ( 1 83 m)
{{height|ft=6|in=1}} 6 ft 1 in ( 1 85 m)
{{height|ft=6|in=1|precision=1}} 6 ft 1 in ( 1 9 m)
{{height|ft=5|in=7+1/2}} 5 ft Կաղապար:Convert/and/fra1 in ( 1 71 m)
{{height|ft=5|in=7+1/2|precision=1}} 5 ft Կաղապար:Convert/and/fra1 in ( 1 7 m)
{{height|in=10}} 0 ft 10 in ( 0 25 m)
{{height|m=1.72|precision=0}} Կաղապար:Height/m to ft in
{{height|ft=6|in=2|abbr=mos}} Կաղապար:Convert/LoffAoffDbSoff2Կաղապար:Convert/test/Adef
{{height|ft=6|in=2}} 6 ft 2 in ( 1 88 m)
{{height|ft=5|in=7+1/2|precision=3}} 5 ft Կաղապար:Convert/and/fra1 in ( 1 715 m)
{{height|m=2|in=2|precision=0}} Error: please specify only imperial or only metric units
  • m is for meters
  • ft is for feet
  • in is for inches

Template data[խմբագրել]

This is the TemplateData documentation for this template used by VisualEditor and other tools.


Height

The template is intended for conversion of heights specified in either meters or in feet and inches.

Template parameters
Parameter Description Type Status
Meters mmetermetersmetremetres

The height in meters. Do not use if feet and inches are specified.

Default
empty
Example
empty
Auto value
empty
number optional
Feet ftfootfeet

The feet part of the height in feet and inches. Do not use if meters are specified.

Default
empty
Example
empty
Auto value
empty
number optional
Inches ininchinches

The inches part of the height in feet and inches (optional). Do not use if meters are specified. Fractions are supported in the form u+n/d.

Default
empty
Example
empty
Auto value
empty
number optional
Precision of converted value precision

The amount of decimal places to display the converted value to. Defaults to 2 for feet and inches to meters and to 1 for meters to feet and inches. Must set "fraction" to "10" for meters to feet and inches.

Default
empty
Example
empty
Auto value
empty
number optional
Fraction denominator frac

Shows result as a fraction. The number in this parameter is the denominator of the fraction. Used only for meters to feet and inches. Set to "10" for decimals. Defaults to 2 (halves).

Default
empty
Example
empty
Auto value
empty
number optional
Abbreviation style abbr

Changes abbreviation style. Set to "yes" for all units to be abbreviated (default), "no" for all to be spelled out, or "mos" for for the units being converted to be spelled out and the converted units to be abbreviated.

Default
empty
Example
empty
Auto value
empty
string optional
Unit linking wiki

Changes whether units are linked. Set to "no" to not link units (default) or "yes" to link units.

Default
empty
Example
empty
Auto value
empty
string optional

See also[խմբագրել]
https://hy.wikipedia.org/wiki/%D4%BF%D5%A1%D5%B2%D5%A1%D5%BA%D5%A1%D6%80:Height
hy.wikipedia.org
crawl=CC-MAIN-2015-48
46583
application/http; msgtype=response
sha1:KVLCUSX7MMO452NRI5D6HSU3NSEICC6H
<urn:uuid:613b262d-73a1-41df-abcd-636cdbe7d22b>
2015-12-02T03:23:34Z
208.80.154.224
sha1:FBF4YCTUKPCDM64ALCLJNW5PVEZPGQPX
<urn:uuid:64d72cab-4418-40ea-977e-375777aa80d2>
https://hy.wikipedia.org/wiki/%D4%BF%D5%A1%D5%B2%D5%A1%D5%BA%D5%A1%D6%80:Height
response
<urn:uuid:cd33580b-61ba-4e0c-8756-2ae1437e38d0>
robots: classic
hostname: ip-10-71-132-137.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-48
operator: CommonCrawl Admin
description: Wide crawl of the web for Nov 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf