Jump to content

Template:Column-generating template families

From Wikihoc

Column-generating template families

The templates listed here are not interchangeable. For example, using {{col-float}} with {{col-end}} instead of {{col-float-end}} would leave a {{#switch:pair

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:yes|div|div}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:div|!--||>}}...
}}{{#switch:pair
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:div|!--|-->|</div>}}
}} open, potentially harming any subsequent formatting.

<section begin="table" />

Column templates
Type Family {{#ifeq: Handles wiki
table code?{{safesubst:#switch:
no n f false off 0 = † = † ¬ = yes y t true on 1 = #default =

}} | Handles wiki
table code?{{safesubst:#switch:

no n f false off 0 = † = † ¬ = yes y t true on 1 = #default =

}} | <div style="}}display: inline-block; line-height: 1.2em; padding: .1em 0; {{#ifeq: Handles wiki
table code?{{safesubst:#switch:

no n f false off 0 = † = † ¬ = yes y t true on 1 = #default =

}} | Handles wiki
table code?{{safesubst:#switch:

no n f false off 0 = † = † ¬ = yes y t true on 1 = #default =

}} | ">Handles wiki
table code?{{safesubst:#switch:

no n f false off 0 = † = † ¬ = yes y t true on 1 = #default = }} | width: 100%; }}{{#if:|}} Responsive/
mobile suited
Start template Column divider End template
Float "col-float" Yes Yes {{col-float}} {{col-float-break}} {{col-float-end}}
"columns-start" Yes Yes {{columns-start}} {{column}} {{columns-end}}
Columns "div col" Yes Yes {{div col}} instead use {{no col break}} {{div col end}}
"columns-list" No Yes {{columns-list}} (wraps div col)
Flexbox "flex columns" No Yes {{flex columns}}
Table "col" Yes No {{col-begin}},
{{col-begin-fixed}} or
{{col-begin-small}}
{{col-break}} or
{{col-2}} .. {{col-5}}
{{col-end}}

{{safesubst:#switch:

|no
|n
|f
|false
|off
|0        = †
|         = †
|¬        = 
|yes
|y
|t
|true
|on
|1        = 
|#default = 

}} Can the template handle the basic wiki markup {| | || |- |} used to create tables? If not, special templates that produce these elements (such as {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}}) or HTML tags ({{#switch:pair

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|table|table}}{{#if:| {{{attribs}}}}}
}}{{#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 = <{{#if:|tr|tr}}{{#if:| {{{attribs}}}}}
}}{{#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.) need to be used instead.<section end="table" />