Difference between revisions of "Template:Div col/doc"
From LIMSWiki
Jump to navigationJump to searchm (1 revision) |
Shawndouglas (talk | contribs) (Updated.) |
||
Line 3: | Line 3: | ||
This template 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. {{tl|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 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. {{tl|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 | This template can create multiple columns in web browsers which support one of the following CSS properties: | ||
* ''column-count'' (for | * ''column-count'' (for CSS3 compliant browsers; see [http://www.w3.org/TR/css3-multicol/ CSS3 module: Multi-column layout]) | ||
* ''-moz-column-count'' (for | * ''-moz-column-count'' (for Mozilla]]/Gecko based browsers such as Firefox) | ||
* ''-webkit-column-count'' (for | * ''-webkit-column-count'' (for WebKit based browsers such as [Safari and Google Chrome) | ||
Multiple columns are generated by using | Multiple columns are generated by using CSS3, thus only browsers that properly support the multi-column property will show multiple columns. | ||
{{CSS3 multiple column layout}} | {{CSS3 multiple column layout}} | ||
Line 120: | Line 120: | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --> | ||
[[Category:Table and column templates|{{PAGENAME}}]] | [[Category:Table and column templates|{{PAGENAME}}]] | ||
</includeonly> | </includeonly> |
Latest revision as of 02:39, 31 May 2013
This is a documentation subpage for Template:Div col. It contains usage information, categories, interlanguage links, and other content that is not part of the original template page. |
This template 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 web browsers which support one of the following CSS properties:
- column-count (for CSS3 compliant browsers; see CSS3 module: Multi-column layout)
- -moz-column-count (for Mozilla]]/Gecko based browsers such as Firefox)
- -webkit-column-count (for WebKit based browsers such as [Safari and Google Chrome)
Multiple columns are generated by using CSS3, thus only browsers that properly support the multi-column property will show multiple columns.
Internet Explorer |
Firefox | Safari | Chrome | Opera |
---|---|---|---|---|
6 | 3 | 3 | 7 | 10 |
7 | 4 | 4 | 8 | 11 |
8 | 5 | 5 | 9 | 11.1 |
9 | 10 | 12 | ||
10 | 11 | |||
12 |
Usage
- cols =
- Specifies the number of columns. Defaults to 2 columns.
- colwidth =
- 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.
- 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|cols=3}} * a * b * c * d * e * f * g * h {{Div col end}}
- Produces
- a
- b
- c
- d
- e
- f
- g
- h
{{Div col|colwidth=10em}} * 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}}