Difference between revisions of "Module:Column-generating template families"
Jump to navigation
Jump to search
blackwiki>TheDJ (add some info on responsiveness) |
m (89 revisions imported) |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 11: | Line 11: | ||
! Column divider | ! Column divider | ||
! End template | ! End template | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|- | |- | ||
| style="text-align:center;" | "Col" | | style="text-align:center;" | "Col" | ||
| Table | | Table | ||
| {{yes}} | | {{yes}} | ||
| − | | {{ | + | | {{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 40: | Line 31: | ||
| Table | | Table | ||
| {{no}} | | {{no}} | ||
| − | | {{ | + | | {{yes}} |
| {{tl|Columns}} | | {{tl|Columns}} | ||
| – | | – | ||
| Line 60: | Line 51: | ||
| {{tl|Column}} | | {{tl|Column}} | ||
| {{tl|Columns-end}} | | {{tl|Columns-end}} | ||
| + | |- | ||
| + | | style="text-align:center;" | "Flex columns" | ||
| + | | CSS flexbox | ||
| + | | {{yes}} | ||
| + | | {{yes}} | ||
| + | | {{tl|Flex columns}} | ||
| + | | – | ||
| + | | – | ||
|- | |- | ||
| style="text-align:center;" | "Div col" | | style="text-align:center;" | "Div col" | ||
Latest revision as of 12:08, 21 September 2020
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 HTML "div" (division) open, potentially harming any subsequent formatting. |
<section begin="table" />
| Family | Type | Handles wiki
table code? |
Responsive/ Mobile suited |
Start template | Column divider | End template |
|---|---|---|---|---|---|---|
| "Col" | Table | Yes | Yes | {{Col-begin}}, {{Col-begin-fixed}} or {{Col-begin-small}} |
{{Col-break}} or {{Col-2}} .. {{Col-5}} |
{{Col-end}} |
| "Col-float" | CSS float | Yes | Yes | {{Col-float}} | {{Col-float-break}} | {{Col-float-end}} |
| "Columns" | Table | No | Yes | {{Columns}} | – | – |
| "Columns-list" | CSS columns | Yes | Yes | {{Columns-list}} (wrapper) | – | – |
| "Columns-start" | CSS float | Yes | Yes | {{Columns-start}} | {{Column}} | {{Columns-end}} |
| "Flex columns" | CSS flexbox | Yes | Yes | {{Flex columns}} | – | – |
| "Div col" | CSS columns | Yes | Yes | {{Div col}} | – | {{Div col end}} |
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" />
| 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. |