Šablon:Convert/testcases/bytype/length3 (hand)
Hand (unit) is a measure of length used in WP:EQUINE for horse size (height).
This page tests {{convert/sandbox}} and {{hands/sandbox}}, which has a re-engineered "hand" unit handling (situation per 2013-12-29).
Overview
[uredi izvor]- See Template talk:Convert#Module_version_2
- convert (/sbox · edit · diff · /test · t · h · lk · Source · e · talk · hist · links # · /subpages · /doc /doc edit)
- (jezik: malajalam)
- Hands to length only (not: length to hands).
- Stand alone ("wrapper" for {convert} by functionality, shares some documentation)
- {{Hands/sandbox}}
- {Hands} template after switchover to module:convert
- Tested here
- Uses {convert/sandbox}
- Deprecated templates
- We are testing {convert/sandbox} here.
- Because this one is not used any more, it will not be tested here. It might be a reference, for earlier workings.
- {{Convert/hands}} redirects to {Convert/hand}
- Wrapper for previous {convert} template
- Usage is unclear (not in mainspace, not called by {{Hands}}).
- Will be deprecated once "hands" is OK in the module:convert.
- See below, #Using {convert/2}
- See also
- hand (unit)
- Hands/doc, Convert/hand/doc have useful descriptions. All examples from these two are reproduced below.
- Category:Subtemplates of Template Convert/wrapper templates
- "Horse Height Conversion", Onlineconversion.com: OC-horse.
Textual options
[uredi izvor]Basic
- {{convert/sandbox|hand|15.3|in cm}} → 15.3 hands (63 inches; 160 cm)
Units hand, hands, h, hh in source (input)
[uredi izvor]- {{convert/sandbox|15.3|hand|in cm}} → 15.3 hands (63 inches; 160 cm)
- {{hand|15.3}} → -- {{hand}} is not about {convert}
- {{convert/sandbox|15.3|hands|in cm}} → 15.3 hands (63 inches; 160 cm) -- plural unit "hands" accepted
- {{convert/sandbox|15.3|h|in cm}} → 15.3 hours ([pretvaranje: neslaganje jedinica]) -- h is for hour
New in {convert}: "units" handlk, hhand, hhandlk
. As source (input):
- {{convert/sandbox|13|–|15.5|handlk|in cm}} → 137 –[pretvaranje: nepoznata jedinica]
- {{hands/sandbox|13|–|15.5|handlk|in cm}} → 137–156 hands (548–624 inches, 1392–1585 cm)
- {{convert/sandbox|137|–|156|hhand|in cm}} → 137 –[pretvaranje: nepoznata jedinica]
- {{hands/sandbox|137|–|156|hhand|in cm}} → 137–156 hands (548–624 inches, 1392–1585 cm)
- {{convert/sandbox|137|–|156|hhandlk|in cm|1}} → 137 –[pretvaranje: nepoznata jedinica]
- {{hands/sandbox|137|–|156|hhandlk|in cm|1}} → 137–156 hands (548–624 inches, 1392–1585 cm)
Abbreviated
[uredi izvor]Hands to length Linked unit "h" should link to hand (unit)
- {{convert/sandbox|15.3|hand|in cm|abbr=on}} → 15.3 h (63 in; 160 cm)
- {{convert/sandbox|15.3|hand|in cm|abbr=on|lk=off}} → 15.3 h (63 in; 160 cm)
- {{hands|15.3|abbr=on|lk=off}} → 15,3 h (63 inches, 160 cm) --lk=off
- {{hands/sandbox|15.3|abbr=on|lk=off}} → 15,3 h (63 inches, 160 cm) --lk=off
{Hands} doc: "abbr=hh shows hh"
New in {convert}: "units" handlk, hhand, hhandlk
. As source (input):
- {{convert/sandbox|13|–|15.5|handlk|in cm|abbr=on}} → 137 –[pretvaranje: nepoznata jedinica]
- {{hands/sandbox|13|–|15.5|handlk|in cm|abbr=on}} → 137–156 h (548–624 inches, 1392–1585 cm)
- {{convert/sandbox|137|–|156|hhand|in cm|abbr=on}} → 137 –[pretvaranje: nepoznata jedinica]
- {{hands/sandbox|137|–|156|hhand|in cm|abbr=on}} → 137–156 h (548–624 inches, 1392–1585 cm)
- {{convert/sandbox|137|–|156|hhandlk|in cm|abbr=on|1}} → 137 –[pretvaranje: nepoznata jedinica]
- {{hands/sandbox|137|–|156|hhandlk|in cm|abbr=on|1}} → 137–156 h (548–624 inches, 1392–1585 cm)
Length to hands
New in {convert}. New units include the following variations on hands
- {{convert/sandbox|137|–|156|cm|handlk in|abbr=on|1}} → 137 –[pretvaranje: nepoznata jedinica]
- {{convert/sandbox|137|–|156|cm|hhand in|abbr=on|1}} → 137 –[pretvaranje: nepoznata jedinica]
- {{convert/sandbox|137|–|156|cm|hhandlk in|abbr=on|1}} → 137 –[pretvaranje: nepoznata jedinica]
Link unit
[uredi izvor]Default for {Hands} is: |lk=on
- {{convert/sandbox|15.3|hand|in cm}} → 15.3 hands (63 inches; 160 cm)
- {{convert/sandbox|15.3|hand|in cm|lk=off|abbr=on}} → 15.3 h (63 in; 160 cm)
- {{hands|15.3|lk=off|abbr=on}} → 15,3 h (63 inches, 160 cm)
- {{hands/sandbox|15.3|lk=off|abbr=on}} → 15,3 h (63 inches, 160 cm)
New "units", lk=off
- {{convert/sandbox|13|–|15.5|handlk|in cm|lk=off}} → 137 –[pretvaranje: nepoznata jedinica]
- {{hands/sandbox|13|–|15.5|handlk|in cm|lk=off}} → 137–156 hands (548–624 inches, 1392–1585 cm)
- {{convert/sandbox|13|–|15.5|handlk|in cm|lk=off}} → 137 –[pretvaranje: nepoznata jedinica]
- {{hands/sandbox|13|–|15.5|handlk|in cm|lk=off}} → 137–156 hands (548–624 inches, 1392–1585 cm)
- {{convert/sandbox|137|–|156|hhand|in cm|lk=off}} → 137 –[pretvaranje: nepoznata jedinica]
- {{hands/sandbox|137|–|156|hhand|in cm|lk=off}} → 137–156 hands (548–624 inches, 1392–1585 cm)
- {{convert/sandbox|137|–|156|hhandlk|in cm|1|lk=off}} → 137 –[pretvaranje: nepoznata jedinica]
- {{hands/sandbox|137|–|156|hhandlk|in cm|1|lk=off}} → 137–156 hands (548–624 inches, 1392–1585 cm)
New "units", lk=on testing:|unit=hhandlk
in hands/sandbox
- {{convert/sandbox|13|–|15.5|handlk|in cm|lk=on}} → 137 –[pretvaranje: nepoznata jedinica]
- {{hands/sandbox|13|–|15.5|handlk|in cm|lk=on}} → 137–156 hands (548–624 inches, 1392–1585 cm)
- {{convert/sandbox|137|–|156|hhand|in cm|lk=on}} → 137 –[pretvaranje: nepoznata jedinica]
- {{hands/sandbox|137|–|156|hhand|in cm|lk=on}} → 137–156 hands (548–624 inches, 1392–1585 cm)
- {{convert/sandbox|137|–|156|hhandlk|in cm|1|lk=on}} → 137 –[pretvaranje: nepoznata jedinica]
- {{hands/sandbox|137|–|156|hhandlk|in cm|1|lk=on}} → 137–156 hands (548–624 inches, 1392–1585 cm)
Adjective
[uredi izvor]- A {{convert/sandbox|15.3|hand|in cm|adj=on}} → A 15.3-hand (63-inch; 160 cm) horse
- Singular, plural
-
- {{convert/sandbox|1|lk=off}} → 1[pretvaranje: potrebno ime jedinice]
- {{hands|1|lk=off}} → 1 hands (4 inches, 10 cm)
- {{hands/sandbox|1|lk=off}} → 1 hands (4 inches, 10 cm)
- {{convert/sandbox|2|lk=off}} → 2[pretvaranje: potrebno ime jedinice]
- {{hands|2|lk=off}} → 2 hands (8 inches, 20 cm)
- {{hands/sandbox|2|lk=off}} → 2 hands (8 inches, 20 cm)
lk=in, abbr=in, range
[uredi izvor]- {{convert/sandbox|137|–|162|cm|hand|0|abbr=in|lk=in}} → 137 –[pretvaranje: nepoznata jedinica]
Length to hands
[uredi izvor]- Not available through {{Hands}}
- {{convert/sandbox|57|in|hand}} → 57 inches (14.1 hands) -- as with donkeys and miniature horses
- {{convert/sandbox|137|cm|hand}} → 137 centimetres (13.2 hands)
- {{convert/sandbox|137.1|cm|hand}} → 137.1 centimetres (13.2 hands)
- {{convert/sandbox|137.2|cm|hand}} → 137.2 centimetres (13.2 hands)
- {{convert/sandbox|137.5|cm|hand}} → 137.5 centimetres (13.2 hands)
- {{convert/sandbox|137.9|cm|hand}} → 137.9 centimetres (13.2 hands)
- {{convert/sandbox|138.4|cm|hand}} → 138.4 centimetres (13.2 hands)
- {{convert/sandbox|138.5|cm|hand}} → 138.5 centimetres (13.3 hands)
- {{convert/sandbox|2|m|hand}} → 2 metres (19.3 hands) -- "rare to use m instead of cm"
- {{convert/sandbox|2.01|m|hand}} → 2.01 metres (19.3 hands)
- {{convert/sandbox|2.02|m|hand}} → 2.02 metres (20.0 hands)
- {{convert/sandbox|2.03|m|hand}} → 2.03 metres (20.0 hands)
- {{convert/sandbox|1.67|m|hand in}} → 1.67 metres (16.2 hands; 66 in)
- {{convert/sandbox|167|cm|hand in}} → 167 centimetres (16.2 hands; 66 in) -- compare
Decimals in source (show feedback)
- {{convert/sandbox|57.54|in|hand in cm}} → 57.54 inches (14.2 hands; 57.54 in; 146.2 cm)
- {{convert/sandbox|57.44|in|hand in cm}} → 57.44 inches (14.1 hands; 57.44 in; 145.9 cm)
- {{convert/sandbox|57.45|in|hand in cm}} → 57.45 inches (14.1 hands; 57.45 in; 145.9 cm)
- {{convert/sandbox|57.45|in|hand in cm|4}} → 57.45 inches (14.1 1⁄2 hands; 57 1⁄2 in; 145.9230 cm) --precision=4
Fractions in source
- {{convert/sandbox|57+1/2|in|hand in cm}} → 57 1⁄2 inches (14.2 hands; 57.5 in; 146 cm)
- {{convert/sandbox|57+3/4|in|hand in cm}} → 57 3⁄4 inches (14.2 hands; 57.8 in; 147 cm)
- {{convert/sandbox|57+3/8|in|hand in cm}} → 57 3⁄8 inches (14.1 hands; 57.4 in; 146 cm)
- {{convert/sandbox|57+1/3|in|hand in cm}} → 57 1⁄3 inches (14.1 hands; 57.3 in; 146 cm)
Show precision
Hands to length
[uredi izvor]Default outlist in {hands} is: |in cm
- {{convert/sandbox|15.3|hand|in cm|lk=off}} → 15.3 hands (63 inches; 160 cm)
- {{hands|15.3|lk=off}} → 15,3 hands (63 inches, 160 cm)
- {{hands/sandbox|15.3|lk=off}} → 15,3 hands (63 inches, 160 cm)
- {{convert/sandbox|14.1|hand|in cm}} → 14.1 hands (57 inches; 145 cm)
- {{convert/sandbox|14.1|hand|in}} → 14.1 hands (57 inches)
- {{convert/sandbox|14.1|hand|cm}} → 14.1 hands (145 cm)
- {{convert/sandbox|14.1|hand|in cm}} → 14.1 hands (57 inches; 145 cm)
- {{convert/sandbox|14.1|hand|cm in}} → 14.1 hands (145 cm; 57 inches)
- {{convert/sandbox|14.2|hand|in cm}} → 14.2 hands (58 inches; 147 cm)
- {{convert/sandbox|14.1+3/4|hand|in cm}} → 14.1 3⁄4 hands (57.75 inches; 147 cm)
Show precision
Ranges
[uredi izvor]- Hands to length
-
- {{convert/sandbox|14.1|-|14.3|hand|in}} → 14.1—14.3 hands (57—59 inches)
- {{convert/sandbox|14.1|-|14.3|hand|cm}} → 14.1—14.3 hands (145—150 cm)
- {{convert/sandbox|14.2|to|16.1|hand|in cm}} → 14.2 to 16.1 hands (58 to 65 inches; 147 to 165 cm)
Sequence
- {{convert/sandbox|14.1|-|14.3|hand|in cm}} → 14.1—14.3 hands (57—59 inches; 145—150 cm)
- {{convert/sandbox|14.1|-|14.3|hand|cm in}} → 14.1—14.3 hands (145—150 cm; 57—59 inches)
- Length to hands
See also {convert/2}, below
- {{convert/sandbox|50|-|57|in|hand}} → 50—57 inches (12.2—14.1 hands)
- {{convert/sandbox|2|-|3|m|hand}} → 2—3 metres (19.3—29.2 hands)
- {{convert/sandbox|57|or|59|in|hand}} → 57 or 59 inches (14.1 or 14.3 hands)
- {{convert/sandbox|137|-|139|cm|hand|lk=on}} → 137—139 centimetres (13.2—13.3 hands)
Outlist for a range
- {{convert/sandbox|57|or|59|in|hand cm}} → 57 or 59 inches (14.1 or 14.3 hands; 140 or 150 cm)
- {{convert/sandbox|137|-|139|cm|hand cm}} → 137—139 centimetres (13.2—13.3 hands; 137—139 cm)
Precision, sigfig
[uredi izvor]|rinch=1
- {{convert/sandbox|14.1+1/3|hand|in cm|rinch=1}} → 14.1 1⁄3 hands (57.3333 inches; 146 cm)[pretvaranje: nevalidna opcija]
|r=1
- {{convert/sandbox|14.1+1/3|hand|in cm|r=1}} → 14.1 1⁄3 hands (57.3333 inches; 146 cm)[pretvaranje: nevalidna opcija]
Sigfig
- {{convert/sandbox|14.1|hand|in cm|sigfig=4}} → 14.1 hands (57.00 inches; 144.8 cm)
Precision by unnamed parameter
Length to hands In a range
- {{convert/sandbox|57|to|59|in|hand cm|sigfig=4}} → 57 to 59 inches (14.1 to 14.3 hands; 144.8 to 149.9 cm)
- {{convert/sandbox|57|to|59|in|hand cm|4}} → 57 to 59 inches (14.1 to 14.3 hands; 144.7800 to 149.8600 cm)
- {{convert/sandbox|157|to|160|in|hand in cm|sigfig=4}} → 157 to 160 inches (39.1 to 40.0 hands; 157.0 to 160.0 in; 398.8 to 406.4 cm)
- {{convert/sandbox|157|to|160|in|hand in cm|4}} → 157 to 160 inches (39.1 to 40.0 hands; 157 to 160 in; 398.7800 to 406.4000 cm)