Template:Size/doc: Difference between revisions
Template page
More actions
Remove category |
m Corrected spelling of Examples. |
||
| Line 10: | Line 10: | ||
# Conversion precision (optional number of decimal digits, default: 2). | # Conversion precision (optional number of decimal digits, default: 2). | ||
; | ; Examples | ||
<pre>{{Size|cm|123|456}}</pre> | <pre>{{Size|cm|123|456}}</pre> | ||
: {{Size|cm|123|456}} | : {{Size|cm|123|456}} | ||
Revision as of 21:40, 22 February 2009
- {{Size}}, {{Dim}}, {{Dimensions}}
- To display a 2D size (width × height) both in centimeters and inches, etc. (such as in the "Dimensions" field of a Painting template).
- {{Size|1|2|3|4}}
- Unit of input (must be one of: cm, m, km, in, ft, yd, mi).
- Width (in the declared unit, with "." as decimal separator).
- Height (in the declared unit, with "." as decimal separator).
- Conversion precision (optional number of decimal digits, default: 2).
- Examples
{{Size|cm|123|456}}
- 123 cm (48.4 in) × 456 cm (15 ft)
{{Size|km|12.1234|98.1234|1}}
- 12.1 km (13258.3 yd) × 98.1 km (61 miles) × 1 km (1093.6 yd)