Difference between revisions of "Template:Column-generating template families"
Jump to navigation
Jump to search
m (1 revision imported) |
(No difference)
|
Latest revision as of 01:36, 28 November 2017
Column-generating template families
{{#if: |[[File:{{{image}}}|40px|Caution|link=]] |Caution}} | {{#if: | ' }}'The templates listed here are not interchangeable. For example, using {{col-float}} with {{col-end}} instead of {{col-float-end}} would leave a HTML "div" (division) open, potentially harming any subsequent formatting. | {{#if: |{{{imageright}}} |{{#if: |Template:Ombox/shortcut}} }} |
<section begin="table" />
Family | Type | Handles wiki {{#if:|}}
table code?File:Dagger-14-plain.png |
Start template | Column divider | End template |
---|---|---|---|---|---|
"Col" | Table | Yes | {{Col-begin}} or {{Col-begin-small}} |
{{Col-break}} {{Col-2}} .. {{Col-5}} |
{{Col-end}} |
"Columns" | Table | No | {{Columns}} | – | – |
"Col-float" | CSS float | Yes | {{Col-float}} | {{Col-float-break}} | {{Col-float-end}} |
"Columns-start" | CSS float | Yes | {{Columns-start}} | {{Column}} | {{Columns-end}} |
"Div col" | CSS columns | Yes | {{Div col}} – {{Columns-list}} (wrapper) |
– | {{Div col 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 = |e|empty|s|single|v|void |o|open |p|pair = <table{{#if:| {{{params}}}}} }}{{#switch:pair |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:table|!--||>}}... }}{{#switch:pair |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:table|!--|-->|</table>}} }}
,{{#switch:pair |c|close = |e|empty|s|single|v|void |o|open |p|pair = <tr{{#if:| {{{params}}}}} }}{{#switch:pair |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:tr|!--||>}}... }}{{#switch:pair |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:tr|!--|-->|</tr>}} }}
, etc.) will need to be used instead.<section end="table" />
File:Test Template Info-Icon - Version (2).svg Template documentation
Used by {{Column templates}} to provide links to column-related templates.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |