Шаблон:Hands/док
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted A hand is a unit of length used to measure the height of horses and ponies. One hand is four inches, and a value of '12.3 hands' represents 12 hands + 3 inches (51 inches). This template converts hands into the equivalent heights in inches and centimetres.
Note: with hands, any fractional part (numbers and vulgar fractions after the period) are inches, not a decimal fraction of a hand. Hence '14.2 hands' means 14 hands, 2 inches, not 14 2⁄10 hands.
Usage
Basic usage:
- {{hands|14.2}} → 14,2 hands (58 inches, 147 cm)
The optional parameters include:|abbr=on
to show "h" (or |abbr=hh
to show "hh"), |r=2
to round inches and cm to 2 decimal places, |rinch=2
to round the inches only, or |rcm=2
to round the centimeters only, |lk=off
to unlink the hands unit.
Input | Output |
---|---|
{{hands|14.2}} | 14,2 hands (58 inches, 147 cm) |
{{hands|14.1+3/4}} | 14,1 3⁄4 hands (57.75 inches, 147 cm) |
{{hands|15.3|lk=off}} | 15,3 hands (63 inches, 160 cm) |
{{hands|15.3|abbr=h}} | 15,3 h (63 inches, 160 cm) |
{{hands|15.3|abbr=hh}} | 15,3 hh (63 inches, 160 cm) |
{{hands|14.1+1/2}} | 14,1 1⁄2 hands (57.5 inches, 146 cm) |
{{hands|14.1+1/2|r=0}} | 14,1 1⁄2 hands (58 inches, 146 cm) |
{{hands|14.1+1/2|r=1}} | 14,1 1⁄2 hands (57.5 inches, 146.1 cm) |
{{hands|14.1+1/2|r=2}} | 14,1 1⁄2 hands (57.5 inches, 146.05 cm) |
{{hands|14.1+1/2|rinch=0}} | 14,1 1⁄2 hands (58 inches, 146 cm) |
{{hands|14.1+1/2|rcm=2}} | 14,1 1⁄2 hands (57.5 inches, 146.05 cm) |
{{hands|15.1|-|16.3}} | 15.1–16.3 šaka (61–67 inches, 155–170 cm) |
{{hands|14.2|to|16.1}} | 14.2 to 16.1 šaka (58 to 65 inches, 147 to 165 cm) |
{{hands|14.2|any text here|16.1}} | 14.2 any text here 16.1 šaka (58 any text here 65 inches, 147 any text here 165 cm) |
If the 'range' format is used, the text in the second parameter (such as "to") can take any text you wish to use, such as 'and', 'to' or –. When the range has a hyphen/dash or comma, then some spaces are omitted.
Hands can also be converted using {{convert}}, for example
- {{convert|15.3|hands}} → Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted; or
- {{convert|15.3|hands|order=flip}} → Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
This could be useful when {{convert}} units or options are needed that are not in {{hands}}, such as the illustrated |order=flip
.
Inverse
To convert other measurements into hands, use {{convert}}:
- Convert from cm: {{convert|148|to|152|cm|hand in|2}} → Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
- Convert from inches: {{convert|60|to|62|in|hand cm|2}} → Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
Using a full three-way conversion (hands, inches and centimeters) in all cases is strongly recommended, regardless of which measurement is given first.
Singular use (not recommended):
- Convert from cm: {{convert|147|cm|hand in|2}} → Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
- Convert from inches: {{convert|60|in|hand cm|1}} → Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted