الگو:Cols/توضیحات
ظاهر
این زیرصفحهٔ مستندات الگو:Cols است. این شامل اطلاعات استفاده، الگوها، پیوندهای بین زبانی و سایر اطلاعات است که در اصل الگو صفحه قرار نمیگیرد. |
Columns are currently supported only by newer versions of گکو-based browsers (such as فایرفاکس موزیلا) and وبکیت-based browsers (such as گوگل کروم and سافاری). All versions of اینترنت اکسپلورر through to version 9 and اپرا (مرورگر وب) through to version 11.0 do not support columns. See here for more information. |
اینترنت اکسپلورر | فایرفاکس موزیلا | سافاری | گوگل کروم | اپرا (مرورگر وب) |
---|---|---|---|---|
≤ 9 | ≤ 1.0 | ≤ 2 | — | ≤ 11.0 |
≥ 10 (2012) |
≥ 1.5 (2005) |
≥ 3 (2007) |
≥ 1 (2008) |
≥ 11.1 (2011) |
This template, together with {{div col end}}, is used to make a list into columns, with the option of specifying a smaller font. It has the advantage over other column templates (i.e. {{col-begin}}) that it automatically breaks each column to an equal space, so you do not manually have to find the "half way" point on two columns, for instance.
This template can create multiple columns in مرورگر وبs which support one of the following برگههای سبک آبشاری properties:
- column-count (for CSS3 compliant browsers; see CSS3 module: Multi-column layout)
- -moz-column-count (for Mozilla/گکو based browsers such as فایرفاکس موزیلا)
- -webkit-column-count (for وبکیت based browsers such as سافاری and گوگل کروم)
Usage
[ویرایش]- cols = (or {{{1}}})
- Specifies the number of columns. Defaults to 2 columns.
- colwidth = (or {{{2}}})
- Specifies the width of columns, and determines dynamically the number of columns based on screen width; more columns will be shown on wider displays. This overrides the cols= setting.
- rules =
- produces vertical rules between the columns if set to yes.
- small =
- Specifies small font size (90%) if set to yes.
- style =
- Specify any custom styling.
Examples
[ویرایش]{{Div col}} * a * b * c * d * e * f * g * h {{Div col end}}
- Produces
- a
- b
- c
- d
- e
- f
- g
- h
{{Div col|3}} * a * b * c * d * e * f * g * h {{Div col end}}
- Produces
- a
- b
- c
- d
- e
- f
- g
- h
{{Div col||10em}} * a * b * c * d * e * f * g * h {{Div col end}}
- Produces
- a
- b
- c
- d
- e
- f
- g
- h
{{Div col|rules=yes}} * a * b * c * d * e * f * g * h {{Div col end}}
- Produces
- a
- b
- c
- d
- e
- f
- g
- h
{{Div col|small=yes}} * a * b * c * d * e * f * g * h {{Div col end}}
- Produces
- a
- b
- c
- d
- e
- f
- g
- h
See also
[ویرایش]- {{multicol}}
- {{col-begin}}
- {{columns-list}}