Difference between revisions of "Template:Col head/doc"

From blackwiki
Jump to navigation Jump to search
imported>IagoQnsi
m (ce)
imported>Pppery
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{Uses TemplateStyles|Template:Col head/styles.css}}
 
{{CSS3 multiple column layout}}
 
{{CSS3 multiple column layout}}
 
This template is for creating headings that are designed to work well with CSS columns, such as those generated by {{tl|div col}} and {{tl|columns-list}}. Using this template prevents the heading from being placed at the very bottom of a column, which is usually undesirable.
 
This template is for creating headings that are designed to work well with CSS columns, such as those generated by {{tl|div col}} and {{tl|columns-list}}. Using this template prevents the heading from being placed at the very bottom of a column, which is usually undesirable.

Revision as of 01:38, 21 June 2020

Script error: No such module "Uses TemplateStyles".

CSS3 multiple-column layout browser support
Property Internet
Explorer
Firefox Safari Chrome Opera
column-width
column-count
≥ 10
(2012)
≥ 1.5
(2005)
≥ 3
(2007)
≥ 1
(2008)
≥ 11.1
(2011)
columns ≥ 10
(2012)
≥ 9
(2011)
≥ 3
(2007)
≥ 1
(2008)
≥ 11.1
(2011)
break-before
break-after
break-inside
≥ 10
(2012)
≥ 65
(2019)
≥ 10
(2016)
≥ 65
(2016)
≥ 15
(2013)

This template is for creating headings that are designed to work well with CSS columns, such as those generated by {{div col}} and {{columns-list}}. Using this template prevents the heading from being placed at the very bottom of a column, which is usually undesirable.

With the optional force parameter, you can also force a column break to occur immediately before this heading. This can be useful if you have two semi-related lists that you want to put in the same set of columns without allowing them to mi (for example, you might use it in a sports roster to separate the players from the staff).

Usage

Basic usage
{{col head|Your heading here}}
All parameters
{{col head|Your heading here|type=|force=y|style=|class=}}

Parameters

1st parameter
The text content of your heading
|type=
The type of heading to use. The value should be one of the following: Template:Ulist
|force=y
If set, it will try to force a column break to occur immediately before this heading. This means that the heading will appear at the start of the next column. Template:Ulist
|style=
Additional CSS to be added to the heading element
|class=
CSS class(es) to be added to the heading element

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Col head

This template is for creating headings that are designed to work well with CSS columns, such as those generated by {{div col}} and {{columns-list}}. Using this template prevents the heading from being placed at the very bottom of a column, which is usually undesirable.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text1

The text to be used for your heading

Contentrequired
Typetype

The style of heading to use. Options: h1, h2, ..., h6, bold, term, none

Default
bold
Lineoptional
Force column break?force

If set to any value, a column break will occur immediately before this heading (meaning this heading will be placed at the top of the next column)

Booleanoptional
Stylestyle

Additional CSS to apply to the heading tag

Example
color:blue; text-align:center;
Stringoptional
Classclass

Additional CSS class(es) to add to the heading tag

Stringoptional