Template:Div col

From Wiki2
Revision as of 12:44, 17 May 2018 by Tim (talk | contribs) (Created page with "<!----------------------------------------------------------------------------- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE ---------------------------...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }}

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }}

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }}

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }}

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }}

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }}

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }}

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }}

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }}

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }} a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }}

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }}

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }}

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }}

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by 

Template:Documentation subpage Template:High-risk Template:Ombox Template:CSS3 multiple column layout

Template:Tl can be used to make a list into columns that wrap properly and compatibly with portable computer devices, esp. PAD operating systems and small screens. It automatically breaks the available space into equal spaces, meaning, for instance, that it is not necessary to work out the halfway point, or the one-third & two-thirds points between two columns.

  • The list content is either provided by the Template:Para parameter (which can be restrictive of what content is allowed; e.g., wiki markup like | must somehow be escaped), or terminated with Template:Tl. The Template:Tl wrapper uses the parameter method for providing content (including its limitations).
  • The template system (family) also offers parameter options to set a smaller (90%) font-size parameter (Template:Para), place vertical lines parameter ("rules") between the columns (Template:Para) and to add other custom styling parameter (Template:Para).

Template:Tl can create multiple columns in web browsers which support one of the following CSS properties:

Usage

There are six parameters for this template and their usage is described below.

Template:Para
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Can be specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
Template:Para
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
Template:Para
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing (set by browser) is 1em.
Template:Para
CSS styling to apply to the columns.
Template:Para
content to apply to the columns.
Template:S Template:Nobold
Specifies the number of columns (default 2). (Now deprecated, as colwidth, above, is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays)). For a fixed number of columns, use a template from the See also section below.

Examples

Usage of "colwidth" parameter

Important: The usage of the previous parameter "cols" is deprecated. It is strongly recommended to not use now-deprecated "cols" parameter (please leave it blank) and instead use "colwidth" parameter.

Example with column width of 10em
{{div col|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "rules" parameter

Example
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "gap" parameter

Example
{{Div col|colwidth=10em|rules=yes|gap=2em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Usage of "small" parameter

Example showing how setting "small" parameter to "yes" produces smaller font size
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "content" parameter

Example showing how to provide "content" parameter without using Template:Tlx
{{Div col|colwidth=10em|content=
* a
* b
* c
* d
* e
* f
* g
* h
}}
produces

Template loop detected: Template:Div col

Usage with multiple named parameters

When parameters are named in the template, they can be used in any order. Example:

{{Div col|colwidth=10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}

or

{{Div col|rules=yes|gap=2em|small=yes|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

and exactly the same result below Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h


Example with column width of 20em
{{div col|colwidth=20em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with column width of 30em
{{div col|colwidth=30em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example of how this template behaves if no bullets (generated by asterisk mark) are used.
{{div col|colwidth=10em}}
a
b
c
d
e
f
g
h
{{div col end}}
produces

Template loop detected: Template:Div col a b c d e f g h

Deprecated usage

Usage without parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. Example with no parameters produces two columns as the default is two columns.

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces:

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of parameters without naming the parameters

Usage of fixed column counts is deprecated, therefore this example should no longer be used as well. For a fixed number of columns, use a template from the See also section below. When parameters are not named, the template considers the first unnamed parameter to be "cols" and the second unnamed parameter to be "colwidth". Any additional unnamed parameters (e.g. third, fourth, fifth, etc. unnamed parameter) will be ignored by the template and will show an error message when previewing the page.

Example with usage of (deprecated) unnamed parameters

Note the empty column for the "number of columns" between "Div col" and "10em".

{{div col||10em|rules=yes|gap=2em|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Usage of "cols" parameter

Important: Use of now-deprecated "cols" parameter (equivalent to the first unnamed parameter) is discouraged, leave it blank and instead use the "colwidth" parameter. For a fixed number of columns, use a template from the See also section below. Template:Cot

Example with 3 columns
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
Example with 4 columns
{{Div col|4}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces

Template loop detected: Template:Div col

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

Template:Cob

Tracking categories

TemplateData

Template:TemplateDataHeader {{#switch: Div col |Div col=<templatedata> {

"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is provided by |content= or closed with .",

"params": { "cols": { "label": "cols", "description": "Specifies the number of columns.", "type": "number", "default": "2", "aliases": [ "1" ], "required": false, "deprecated": "Use colwidth parameter instead, so that the layout resizes according to the screen" }, "colwidth": { "label": "Column width", "description": "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.", "type": "string", "aliases": [ "2" ], "required": false, "example": "30em", "suggested": true }, "rules": { "label": "Rules", "description": "Produces vertical rules between the columns if set to yes.", "type": "string", "required": false, "example": "'yes' or '1px dashed blue'" }, "gap": { "label": "Gap size", "description": "Specifies the space between the content of adjacent columns.", "type": "string", "required": false, "example": "2em" }, "style": { "label": "CSS style", "description": "Specifies any custom styling.", "type": "string", "required": false }, "content": { "label": "Content", "description": "Specifies the content to divide into columns", "type": "string", "required": false }, "small": { "label": "Small font", "description": "Use a smaller font size (90%)", "example": "yes", "type": "boolean", "default": "no" } } } </templatedata> |Div col end=<templatedata> {

   "description": "Ends a multi-column list started by Template loop detected: Template:Div col. It takes no parameters.",
   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families

{{#ifeq:Div col|sandbox | |

{{#switch:Div col |Div col= |Div col end=}} es:Plantilla:Div col }}. It takes no parameters.",

   "params": {
   }

} </templatedata> }}

Redirects

{{#ifeq:Div col|Div col|

}} {{#ifeq:Div col|Div col end|

}}

See also

Template:Column-generating template families