Difference between revisions of "Module:Column-generating template families"
Jump to navigation
Jump to search
blackwiki>Voidxor m (Avoid the construction "and/or" per MOS:ANDOR.) |
blackwiki>TheDJ (add flexbox columns) |
||
| Line 3: | Line 3: | ||
<section begin="table" /> | <section begin="table" /> | ||
{| class="wikitable nowrap" style="line-height:1.4em" | {| class="wikitable nowrap" style="line-height:1.4em" | ||
| − | |- | + | |- style="vertical-align:middle;" |
! Family | ! Family | ||
! Type | ! Type | ||
| Line 10: | Line 10: | ||
! Column divider | ! Column divider | ||
! End template | ! End template | ||
| − | |- style=" | + | |- |
| + | | style="text-align:center;" | "Flex columns" | ||
| + | | CSS flexbox | ||
| + | | {{yes}} | ||
| + | | {{tl|Flex columns}} | ||
| + | | – | ||
| + | | – | ||
| + | |- | ||
| style="text-align:center;" | "Col" | | style="text-align:center;" | "Col" | ||
| Table | | Table | ||
| − | | | + | | {{yes}} |
| {{tl|Col-begin}}, <br/>{{tl|Col-begin-fixed}} or<br/>{{tl|Col-begin-small}} | | {{tl|Col-begin}}, <br/>{{tl|Col-begin-fixed}} or<br/>{{tl|Col-begin-small}} | ||
| {{tl|Col-break}} or<br/>{{tl|Col-2}} .. {{tl|Col-5}} | | {{tl|Col-break}} or<br/>{{tl|Col-2}} .. {{tl|Col-5}} | ||
| Line 20: | Line 27: | ||
| style="text-align:center;" | "Col-float" | | style="text-align:center;" | "Col-float" | ||
| CSS float | | CSS float | ||
| − | | | + | | {{yes}} |
| {{tl|Col-float}} | | {{tl|Col-float}} | ||
| {{tl|Col-float-break}} | | {{tl|Col-float-break}} | ||
| Line 27: | Line 34: | ||
| style="text-align:center;" | "Columns" | | style="text-align:center;" | "Columns" | ||
| Table | | Table | ||
| − | | | + | | {{no}} |
| {{tl|Columns}} | | {{tl|Columns}} | ||
| – | | – | ||
| Line 34: | Line 41: | ||
| style="text-align:center;" | "Columns-list" | | style="text-align:center;" | "Columns-list" | ||
| CSS columns | | CSS columns | ||
| − | | | + | | {{yes}} |
| {{tl|Columns-list}} (wrapper) | | {{tl|Columns-list}} (wrapper) | ||
| – | | – | ||
| Line 41: | Line 48: | ||
| style="text-align:center;" | "Columns-start" | | style="text-align:center;" | "Columns-start" | ||
| CSS float | | CSS float | ||
| − | | | + | | {{yes}} |
| {{tl|Columns-start}} | | {{tl|Columns-start}} | ||
| {{tl|Column}} | | {{tl|Column}} | ||
| Line 48: | Line 55: | ||
| style="text-align:center;" | "Div col" | | style="text-align:center;" | "Div col" | ||
| CSS columns | | CSS columns | ||
| − | | | + | | {{yes}} |
| {{tl|Div col}} | | {{tl|Div col}} | ||
| – | | – | ||
Revision as of 12:37, 14 May 2020
Column-generating template families
| Caution | 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. |
<section begin="table" />
| Family | Type | Handles wiki
table code?File:Dagger-14-plain.png |
Start template | Column divider | End template |
|---|---|---|---|---|---|
| "Flex columns" | CSS flexbox | Yes | {{Flex columns}} | – | – |
| "Col" | Table | Yes | {{Col-begin}}, {{Col-begin-fixed}} or {{Col-begin-small}} |
{{Col-break}} or {{Col-2}} .. {{Col-5}} |
{{Col-end}} |
| "Col-float" | CSS float | Yes | {{Col-float}} | {{Col-float-break}} | {{Col-float-end}} |
| "Columns" | Table | No | {{Columns}} | – | – |
| "Columns-list" | CSS columns | Yes | {{Columns-list}} (wrapper) | – | – |
| "Columns-start" | CSS float | Yes | {{Columns-start}} | {{Column}} | {{Columns-end}} |
| "Div col" | CSS columns | Yes | {{Div col}} | – | {{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 {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}}) or HTML tags (<table>...</table>, <tr>...</tr>, etc.) will need to be used instead.<section end="table" />
50px Module documentation
Used by {{Column templates}} to provide links to column-related templates.
| You might want to create a documentation page for this Scribunto module. Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Subpages of this module. |