Template:Size/doc
Inne akcje
(ta część dokumentacji dostępna jest tylko w niektórych językach)
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.
Wykorzystanie
{{Size |unit= |height= |width= }}
Parametry szablonu
| Parametr | Opis | Wartość domyślna | Status | |
|---|---|---|---|---|
unit1 | Unit of input (must be one of: cm, m, mm, km, in, ft, yd, mi). | cm | wymagany | |
height | height (with word "height" displayed) | empty | opcjonalny | |
width | width (with word "width" displayed) | empty | opcjonalny | |
length | length (with word "length" displayed) | empty | opcjonalny | |
depth | depth (with word "depth" displayed) | empty | opcjonalny | |
diameter | diameter (with word "diameter" displayed) | empty | opcjonalny | |
thickness | thickness (with word "thickness" displayed) | empty | opcjonalny | |
prec | Conversion precision (optional number of decimal digits). | 1 (2 for mm to inches) | opcjonalny | |
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}} | opcjonalny | |
1 | Alternative name for "unit". Unit of input (must be one of: cm, m, mm, km, in, ft, yd, mi). Deprecated. | cm | przestarzały | |
2 | First dimension measured. Deprecated. | empty | przestarzały | |
3 | A second dimension measured. Deprecated. | empty | przestarzały | |
4 | A third dimension measured. Deprecated. | empty | przestarzały | |
Dodatkowe informacje
Szablon jest przeznaczony do użytkowania w następujących przestrzeniach: przestrzeń Plik (File:)
Szablon jest przeznaczony do użytkowania dla grupy: brak zdefiniowanej grupy
Bazuje na:
Module:Size
See also
(ta część dokumentacji dostępna jest tylko w niektórych językach)
Tłumaczenia
Aby dodać swój język do listy języków obsługiwanych przez ten szablon, edytuj szablon i dodaj kod do szablonu „{{LangSwitch|}}”. Aby to zrobić wpisz „|xx= Twoje tłumaczenie ” (gdzie xx jest kodem twojego języka)
(ta część dokumentacji dostępna jest tylko w niektórych językach)
All unit translations are in Module:I18n/units.
Przykłady
| 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 mil (32.2 km); Width: 10 mil (16.1 km); Depth: 30 mil (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 cali (312.4 cm) × 456 cali (11.6 m) | 2D version |
| {{Size|ft|123|456|789}} | 123 stóp (37.5 m) × 456 stóp (139 m) × 789 stóp (240.5 m) | 3D version |
Displays a size, formatted according to localised format.
| Parametr | Opis | Typ | Status | |
|---|---|---|---|---|
| lang | lang | language code
| Ciąg znaków | opcjonalny |
| unit | unit | Unit of input
| Ciąg znaków | wymagany |
| height | height | brak opisu | Liczba | opcjonalny |
| width | width | brak opisu | Liczba | opcjonalny |
| length | length | brak opisu | Liczba | opcjonalny |
| depth | depth | brak opisu | Liczba | opcjonalny |
| diameter | diameter | brak opisu | Liczba | opcjonalny |
| thickness | thickness | brak opisu | Liczba | opcjonalny |
| prec | prec | Conversion precision (optional number of decimal digits)
| Nieznany | opcjonalny |