Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37,8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Ne ensalutinta
Your IP address will be publicly visible if you make any edits.

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 then measurements will be shown in both centimeters and inches, if user language is German than only metric units will be shown. This template is mainly used in the "Dimensions" field of an {{Artwork}} template.

Usage

{{Size |unit= |height= |width= }}

Ŝablonaj parametroj

ParametroPriskriboDefaŭltaStato
unit
1
Unit of input (must be one of: cm, m, mm, km, in, ft, yd, mi).cmdeviga
heightheight (with word "height" displayed)emptymalnepra
widthwidth (with word "width" displayed)emptymalnepra
lengthlength (with word "length" displayed)emptymalnepra
depthdepth (with word "depth" displayed)emptymalnepra
diameterdiameter (with word "diameter" displayed)emptymalnepra
thicknessthickness (with word "thickness" displayed)emptymalnepra
precConversion precision (optional number of decimal digits).1 (2 for mm to inches)malnepra
langlanguage code (only needs to be provided if the language shall be fixed and independant from the user's preferences)value of {{int:Lang}}malnepra
1Alternative name for "unit". Unit of input (must be one of: cm, m, mm, km, in, ft, yd, mi). Deprecated.cmevitinda
2First dimension measured. Deprecated.emptyevitinda
3A second dimension measured. Deprecated.emptyevitinda
4A third dimension measured. Deprecated.emptyevitinda

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:
Module:Size

See also

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 unit translations are in Module:I18n/units.

Examples

Code Output Notes
{{Size|unit=m|height=10|width=20}} Height: 10 m; Width: 20 m Use of name parameters
{{Size|unit=mi|width=10|height=20|depth=30}} Height: 20 mejloj (32.2 km); Width: 10 mejloj (16.1 km); Depth: 30 mejloj (48.3 km) Use of name parameters
{{Size|cm|12.1234|98.1234|prec=1}} 12.1 cm × 98.1 cm 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
{{Size|cm|123}} 123 cm 1D version
{{Size|in|123|456}} 123 coloj (312.4 cm) × 456 coloj (11.6 m) 2D version
{{Size|ft|123|456|789}} 123 futoj (37.5 m) × 456 futoj (139 m) × 789 futoj (240.5 m) 3D version


Displays a size, formatted according to localised format.

Ŝablonaj parametroj

This template prefers inline formatting of parameters.

ParametroPriskriboTipoStato
langlang

language code

Defaŭlta
value of {{int:Lang}}
Ĉenomalnepra
unitunit

Unit of input

Suggested values
cm m mm km in ft yd mi
Ekzemplo
mm
Aŭtomata valoro
cm
Ĉenodeviga
heightheight

sen priskribo

Nombromalnepra
widthwidth

sen priskribo

Nombromalnepra
lengthlength

sen priskribo

Nombromalnepra
depthdepth

sen priskribo

Nombromalnepra
diameterdiameter

sen priskribo

Nombromalnepra
thicknessthickness

sen priskribo

Nombromalnepra
precprec

Conversion precision (optional number of decimal digits)

Defaŭlta
1 (2 for mm to inches)
Aŭtomata valoro
1
Nekonatamalnepra
Cookies help us deliver our services. By using our services, you agree to our use of cookies.