Template:Column-generating template families
Jump to navigation
Jump to search
Column-generating template families
{{#if: |[[File:{{{image}}}|40px|Caution|link=]] |Caution}} | The templates listed here are not interchangeable. For example, using {{Multicol}} with {{col-end}} instead of {{Multicol-end}} would leave a HTML "div" (division) open, potentially harming any subsequent formatting. |
Family | Type | <div style="padding:0.1em 0;line-height:1.2em;{{#if:Handles wiki table code?File:Dagger-14-plain.png|font-weight:normal}}">{{#if:Handles wiki table code?File:Dagger-14-plain.png|Handles wiki table code?File:Dagger-14-plain.png|font-weight:normal}} |
Start template | Break between columns | End template |
---|---|---|---|---|---|
"Col" | Table | {{Col-begin}} or {{Col-begin-small}} |
{{Col-break}} {{Col-2}} .. {{Col-5}} |
{{Col-end}} | |
"Col-float" | CSS float | File:Green check.svg | {{Col-float}} | {{Col-float-break}} | {{Col-float-end}} |
"Columns" | Table | File:Green check.svg | {{Columns}} | – | – |
"Columns-start" | CSS float | File:Green check.svg | {{Columns-start}} | {{Column}} | {{Columns-end}} |
"Div col" | CSS columns | File:Green check.svg | {{Div col}} – {{Columns-list}} (wrapper) |
– | {{Div col end}} |
"Multicol" | Table | {{Multicol}} | {{Multicol-break}} | {{Multicol-end}} |
File:Dagger-14-plain.png I.e. can the columns handle the wiki markup {| | || |- |} used to create tables? If not, templates that produce these elements (such as {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}}) and/or HTML tags ({{#switch:pair
|c|close = |s|single |o|open |p|pair = <table{{#if:| {{{params}}}}} }}{{#switch:pair |c|close = |s|single = /> |o|open = > |p|pair = {{#ifeq:table|!--||>}}... }}{{#switch:pair |s|single |o|open = |c|close |p|pair = {{#ifeq:table|!--|-->|</table>}} }}
,{{#switch:pair |c|close = |s|single |o|open |p|pair = <tr{{#if:| {{{params}}}}} }}{{#switch:pair |c|close = |s|single = /> |o|open = > |p|pair = {{#ifeq:tr|!--||>}}... }}{{#switch:pair |s|single |o|open = |c|close |p|pair = {{#ifeq:tr|!--|-->|</tr>}} }}
, etc.) will need to be used instead.
File:Test Template Info-Icon - Version (2).svg Template documentation
Used by {{Column templates}} to provide links to column-related templates.
See also
- {{Autocol}}
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |