வார்ப்புரு:Columns-list
This template uses Lua: |
Template:Columns-list turns a list into a list with columns. It is a wrapper for {{div col}}, except it wraps the template by allowing for the content to be in the template rather than above and below.
Use
தொகுThe width of each column may be specified using |colwidth=
and a value in ems.
{{columns-list|colwidth=width| Text (usually a list) }}
Here, width specifies the width of the columns, and determines dynamically the number of columns based on screen width; more columns will be shown on wider displays.
If |colwidth=
is not specified, the default width of 30em will be used.
This template uses விழுத்தொடர் பாணித் தாள்கள்3 multiple-column layout, which is not supported by all Web browsers.
Property | Internet Explorer |
Firefox | Safari | Chrome | Opera |
---|---|---|---|---|---|
column-width column-count |
≥ 10 (2012) |
≥ 1.5 (2005) |
≥ 3 (2007) |
≥ 1 (2008) |
≥ 11.1 (2011) |
columns | ≥ 10 (2012) |
≥ 9 (2011) |
≥ 3 (2007) |
≥ 1 (2008) |
≥ 11.1 (2011) |
break-before break-after break-inside |
≥ 10 (2012) |
≥ 65 (2019) |
≥ 10 (2016) |
≥ 65 (2016) |
≥ 15 (2013) |
Examples
தொகுHere is an example:
{{columns-list|colwidth=35em|
* [[சியார்ச் வாசிங்டன்]]
* [[ஜான் ஆடம்ஸ்]]
* [[தாமசு ஜெஃபர்சன்]]
* [[ஜேம்ஸ் மாடிசன்]]
* [[ஜேம்ஸ் மன்ரோ]]
}}
which would render as:
HTML classes and விழுத்தொடர் பாணித் தாள்கள் styles can also be added with the |class=
and |style=
parameters. For example:
{{columns-list|colwidth=15em|class=plainlist|style=width: 600px; font-style: italic;|
* [[All About Lily Chou-Chou]]
* [[April Story]]
* [[Hana and Alice|Hana & Alice]]
* [[Hōtai Club]]
* [[The Kon Ichikawa Story]]
* [[Love Letter (1995 film)|Love Letter]]
* [[New York, I Love You]]
* [[Picnic (1996 film)|Picnic]]
* [[Rainbow Song]]
* [[Swallowtail (film)|Swallowtail]]
}}
which would render as:
This template also works with numbered lists as its "text". For example:
{{columns-list|colwidth=35em|
# [[சியார்ச் வாசிங்டன்]]
# [[ஜான் ஆடம்ஸ்]]
# [[தாமசு ஜெஃபர்சன்]]
# [[ஜேம்ஸ் மாடிசன்]]
# [[ஜேம்ஸ் மன்ரோ]]
}}
The template, in fact, works with everything since all it does is wrap the text provided around a block to be divided into columns by CSS. Do not stop at wikitext lists – more advanced lists generated by the HTML templates will work too!
Error messages
தொகுUse of the no-longer-supported parameter |cols=
, or use of the first unnamed parameter (aka |1=
) along with |2=
or a second unnamed parameter for the template's content, will generate a red error message. To fix this error, use |colwidth=
instead of attempting to specify the number of columns.
The presence of an equals sign within the template's content can also cause display problems and red error messages. To fix this problem, add |1=
in front of the template's content.
Redirects
தொகு- {{cmn}}
- {{collist}}
- {{col-list}}
- {{Columnslist}}
Tracking category
தொகு- பகுப்பு:Pages using columns-list with unknown parameters (0) (for pages in article space only)
See also
தொகுவார்ப்புரு:Column-generating template families வார்ப்புரு:HTML lists