Difference between revisions of "Template:Col head/doc"
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
| 40px | This is a documentation subpage for Template:Col head. It contains usage information, categories and other content that is not part of the original template page. |
Script error: No such module "Uses TemplateStyles".
| 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
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | 1 | The text to be used for your heading | Content | required |
| Type | type | The style of heading to use. Options: h1, h2, ..., h6, bold, term, none
| Line | optional |
| 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) | Boolean | optional |
| Style | style | Additional CSS to apply to the heading tag
| String | optional |
| Class | class | Additional CSS class(es) to add to the heading tag | String | optional |