From OpenMedia
Jump to: navigation, search



Displays a 1D (length), 2D (width × height) or 3D (width × height × depth) size, formatted according to localized format. For example if user language is English than measurements will be shown in both centimeters and inches, if user language is German than only metric units will be shown. Template mostly used in the "Dimensions" field of a {{Artwork}} template.




Parameter name Description Default value required or optional?

parameter #1 (1) Alternative name: "unit". Unit of input (must be one of: cm, m, mm, km, in, ft, yd, mi). cm required
parameter #2 (2) One dimension measured without explicitly mentionning what. It should be used for the height of paintings, among other cases. empty optional
parameter #3 (3) A second dimension measured (width in the case of paintings) empty optional
parameter #4 (4) A third dimension measured empty optional
length length (with word "length" displayed) empty optional
height height (with word "height" displayed) empty optional
width width (with word "width" displayed) empty optional
depth depth (with word "depth" displayed) empty optional
diameter diameter (with word "diameter" displayed) empty optional
thickness thickness (with word "thickness" displayed) empty optional
prec Conversion precision (optional number of decimal digits). 1 (2 for mm to inches) optional
lang language code (only needs to be provided if the language shall be fixed and independant from the user's preferences) value of {{int:Lang}} optional

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: no user group specified

Relies on:


To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx=Your translation" (xx being the code of your language) All translations are in subpage {{Size/label}}.


This page in other languages : Catalan | English | Esperanto | French | Dutch | Polish

Code Output Notes
{{Size|cm|123}} 123 cm (48.4 in) 1D version
{{Size|in|123|456}} 123 × 456 in (312.4 × 1,158.2 cm) 2D version
{{Size|ft|123|456|789}} 123 × 456 × 789 ft (37.5 × 139 × 240.5 m) 3D version
{{Size|unit=m|height=10|width=20}} Height<colon> 10 m (10.9 yd). Width<colon> 20 m (21.9 yd). Use of name parameters
{{Size|unit=mi|width=10|height=20|depth=30}} Height<colon> 20 mi (32.2 km). Width<colon> 10 mi (16.1 km). Depth<colon> 30 mi (48.3 km). Use of name parameters
{{Size|cm|12.1234|98.1234|prec=1}} 12.1234 × 98.1234 cm (4.8 × 38.6 in) Use of "prec" parameter
{{Size|in|12.12|98.12|lang=fr}} 30,8 × 249,2 cm Use of "lang" parameter