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
No edit summary
templatedata
 
(4 intermediate revisions by 4 users not shown)
Line 50: Line 50:
|11d=Alternative name for "unit". Unit of input (must be one of: cm, m, mm, km, in, ft, yd, mi). <span style="color:red">Deprecated.</span>
|11d=Alternative name for "unit". Unit of input (must be one of: cm, m, mm, km, in, ft, yd, mi). <span style="color:red">Deprecated.</span>
|11def=cm
|11def=cm
|11stat=optional-
|11stat=deprecated


|12=2
|12=2
|12d=First dimension measured. <span style="color:red">Deprecated.</span>
|12d=First dimension measured. <span style="color:red">Deprecated.</span>
|12def=
|12def=
|12stat=optional-
|12stat=deprecated


|13=3
|13=3
|13d=A second dimension measured. <span style="color:red">Deprecated.</span>
|13d=A second dimension measured. <span style="color:red">Deprecated.</span>
|13def=
|13def=
|13stat=optional-
|13stat=deprecated


|14=4
|14=4
|14d=A third dimension measured. <span style="color:red">Deprecated.</span>
|14d=A third dimension measured. <span style="color:red">Deprecated.</span>
|14def=
|14def=
|14stat=optional-
|14stat=deprecated


|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 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 {{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 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 {{t|Artwork}} template.
|namespace=File
|namespace=File
|usergroup=
|usergroup=
Line 84: Line 84:
}}
}}


 
== {{Section header|Examples}} ==
== Examples ==
{{LanguageSelector|be-tarask|ca|en|eo|fr|nl|pl}}
{{LanguageSelector|ca|en|eo|fr|nl|pl}}
{|border="1" style="right"
{|border="1" style="right"
|-
|-
Line 122: Line 121:
|-
|-
|}
|}


<includeonly>
<includeonly>
Line 128: Line 126:
[[Category:Helper templates|{{PAGENAME}}]]
[[Category:Helper templates|{{PAGENAME}}]]
[[Category:Image description templates|{{PAGENAME}}]]
[[Category:Image description templates|{{PAGENAME}}]]
<!--interwikis here-->
</includeonly>
</includeonly>
<templatedata>
{
"params": {
"lang": {
"description": "language code",
"type": "string",
"default": "value of {{int:Lang}}"
},
"unit": {
"description": "Unit of input ",
"example": "mm",
"type": "string",
"suggestedvalues": [
"cm",
"m",
"mm",
"km",
"in",
"ft",
"yd",
"mi"
],
"autovalue": "cm",
"required": true
},
"height": {
"type": "number"
},
"width": {
"type": "number"
},
"length": {
"type": "number"
},
"depth": {
"type": "number"
},
"diameter": {
"type": "number"
},
"thickness": {
"type": "number"
},
"prec": {
"description": "Conversion precision (optional number of decimal digits)",
"default": "1 (2 for mm to inches)",
"autovalue": "1"
}
},
"description": "Displays a size, formatted according to localised format.",
"format": "inline"
}
</templatedata>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.