Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Size/doc: Difference between revisions

Template page
typo
+ thickness
Line 33: Line 33:
|8stat=optional
|8stat=optional
|9=diameter
|9=diameter
|9d=width (with word "diameter" displayed)
|9d=diameter (with word "diameter" displayed)
|9def=
|9def=
|9stat=optional
|9stat=optional
|10=prec
|10=thickness
|10d=Conversion precision (optional number of decimal digits).
|10d=thickness (with word "thickness" displayed)
|10def=1 (2 for mm to inches)
|10def=
|10stat=optional
|11=lang
|11d=language code (only needs to be provided if the language shall be fixed and independant from the user's preferences)
|11def=value of <nowiki>{{int:Lang}}</nowiki>
|11stat=optional
|11stat=optional
|11=prec
|11d=Conversion precision (optional number of decimal digits).
|11def=1 (2 for mm to inches)
|11stat=optional
|12=lang
|12d=language code (only needs to be provided if the language shall be fixed and independant from the user's preferences)
|12def=value of <nowiki>{{int:Lang}}</nowiki>
|12stat=optional
|name=Size
|name=Size
|desc=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 {{m|Artwork}} template.
|desc=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 {{m|Artwork}} template.

Revision as of 08:41, 10 December 2012

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.

Usage

{{Size |1= |2= |3= |4= |length= |height= |width= |depth= |diameter= |thickness= |prec= |lang= }}

Template parameters

ParameterDescriptionDefaultStatus
1Alternative name: "unit". Unit of input (must be one of: cm, m, mm, km, in, ft, yd, mi).cmrequired
2One dimension measured without explicitly mentionning what. It should be used for the height of paintings, among other cases.emptyoptional
3A second dimension measured (width in the case of paintings)emptyoptional
4A third dimension measuredemptyoptional
lengthlength (with word "length" displayed)emptyoptional
heightheight (with word "height" displayed)emptyoptional
widthwidth (with word "width" displayed)emptyoptional
depthdepth (with word "depth" displayed)emptyoptional
diameterdiameter (with word "diameter" displayed)emptyoptional
thicknessthickness (with word "thickness" displayed)emptyoptional
precConversion precision (optional number of decimal digits).1 (2 for mm to inches)optional
langlanguage 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:
{{Formatnum}}

Localization

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}}.

Examples

Code Output Notes
{{Size|cm|123}} 123 cm (48.4 in) 1D version
{{Size|in|123|456}} 123 in (312.4 cm) × 456 in (11.6 m) 2D version
{{Size|ft|123|456|789}} 123 ft (37.5 m) × 456 ft (139 m) × 789 ft (240.5 m) 3D version
{{Size|unit=m|height=10|width=20}} Height: 10 m (10.9 yd); Width: 20 m (21.9 yd) Use of name parameters
{{Size|unit=mi|width=10|height=20|depth=30}} Height: 20 miles (32.2 km); Width: 10 miles (16.1 km); Depth: 30 miles (48.3 km) Use of name parameters
{{Size|cm|12.1234|98.1234|prec=1}} 12.1 cm (4.8 in) × 98.1 cm (38.6 in) Use of "prec" parameter
{{Size|in|12.12|98.12|lang=fr}} 12.1 pouces (30.8 cm) × 98.1 pouces (249.2 cm) Use of "lang" parameter


Cookies help us deliver our services. By using our services, you agree to our use of cookies.