Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Sense sessió iniciada
Your IP address will be publicly visible if you make any edits.

(aquesta part de la documentació només està disponible en algunes llengües)

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.

Utilització

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

Paràmetres de la plantilla

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

Informació addicional

La plantilla està prevista per a ser utilitzada en els següents espais de noms: l'espai de noms File (fitxers)

La plantilla està prevista per a ser utilitzada pels següents grups d'usuaris: cap grup especificat

Es basa en:
Module:Size

Vegeu també

(aquesta part de la documentació només està disponible en algunes llengües)

Traduccions

Per afegir la vostra llengua a la llista de llengües disponibles per a aquesta plantilla, editeu la plantilla i afegiu una línia dins del model «{{LangSwitch|}}». La sintaxi és «|xx=La vostra traducció» (xx és el codi de la llengua, per exemple ca per català)

(aquesta part de la documentació només està disponible en algunes llengües)

All unit translations are in Module:I18n/units.

Exemples

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 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 × 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 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


Displays a size, formatted according to localised format.

Paràmetres de la plantilla

Aquesta plantilla prefereix el format de paràmetres en la mateixa línia.

ParàmetreDescripcióTipusEstat
langlang

language code

Per defecte
value of {{int:Lang}}
Cadenaopcional
unitunit

Unit of input

Suggested values
cm m mm km in ft yd mi
Exemple
mm
Valor automàtic
cm
Cadenaobligatori
heightheight

cap descripció

Nombreopcional
widthwidth

cap descripció

Nombreopcional
lengthlength

cap descripció

Nombreopcional
depthdepth

cap descripció

Nombreopcional
diameterdiameter

cap descripció

Nombreopcional
thicknessthickness

cap descripció

Nombreopcional
precprec

Conversion precision (optional number of decimal digits)

Per defecte
1 (2 for mm to inches)
Valor automàtic
1
Desconegutopcional
Les galetes ens ajuden a proporcionar els nostres serveis. En utilitzar-los, accepteu l'ús de les galetes.