Difference between revisions of "Template:Column-generating template families"

From blackwiki
Jump to navigation Jump to search
(more visible dots)
imported>Great Brightstar
(→‎Column-generating template families: {{Columns}} also has multicol class for responsive design)
 
(76 intermediate revisions by 26 users not shown)
Line 1: Line 1:
<noinclude>
+
=== Column-generating template families ===
Used by {{tl|Column templates}} to link to other column templates  
+
{{Caution|1='''The templates listed here are not interchangeable'''. For example, using {{tl|col-float}} with {{tl|col-end}} instead of {{tl|col-float-end}} would leave a [[HTML]] [[Span and div|"div" (division)]] open, potentially harming any subsequent formatting.}}
----
+
<section begin="table" />
 +
{| class="wikitable nowrap" style="line-height:1.4em"
 +
|- style="vertical-align:middle;"
 +
! Family
 +
! Type
 +
! {{longitem|Handles wiki <br/>&nbsp;table code?{{sup|{{dagger}}}}}}
 +
! Responsive/<br>Mobile suited
 +
! Start template
 +
! Column divider
 +
! End template
 +
|-
 +
| style="text-align:center;" | "Col"
 +
| Table
 +
| {{yes}}
 +
| {{yes}}
 +
| {{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-end}}
 +
|-
 +
| style="text-align:center;" | "Col-float"
 +
| CSS float
 +
| {{yes}}
 +
| {{yes}}
 +
| {{tl|Col-float}}
 +
| {{tl|Col-float-break}}
 +
| {{tl|Col-float-end}}
 +
|-
 +
| style="text-align:center;" | "Columns"
 +
| Table
 +
| {{no}}
 +
| {{yes}}
 +
| {{tl|Columns}}
 +
| –
 +
| –
 +
|-
 +
| style="text-align:center;" | "Columns-list"
 +
| CSS columns
 +
| {{yes}}
 +
| {{yes}}
 +
| {{tl|Columns-list}} (wrapper)
 +
| –
 +
| –
 +
|-
 +
| style="text-align:center;" | "Columns-start"
 +
| CSS float
 +
| {{yes}}
 +
| {{yes}}
 +
| {{tl|Columns-start}}
 +
| {{tl|Column}}
 +
| {{tl|Columns-end}}
 +
|-
 +
| style="text-align:center;" | "Flex columns"
 +
| CSS flexbox
 +
| {{yes}}
 +
| {{yes}}
 +
| {{tl|Flex columns}}
 +
| –
 +
| –
 +
|-
 +
| style="text-align:center;" | "Div col"
 +
| CSS columns
 +
| {{yes}}
 +
| {{yes}}
 +
| {{tl|Div col}}
 +
| –
 +
| {{tl|Div col end}}
 +
|}
 +
{{sup|{{dagger}}}} [[Id est|I.e.]], can the columns handle the [[Help:Wiki markup|wiki markup]] <nowiki>{|  |  ||  |-  |}</nowiki> [[Help:Tables|used to create tables]]? If not, templates that produce these elements (such as {{tl|(!}}, {{tl|!}}, {{tl|!!}}, {{tl|!-}}, {{tl|!)}}) or [[HTML element|HTML tags]] ({{tag|table}}, {{tag|tr}}, etc.) will need to be used instead.<section end="table" /><noinclude>
 +
{{Documentation
 +
| content =
 +
Used by {{tl|Column templates}} to provide links to column-related templates.
  
== See also ==
+
[[Category:Multi-column templates| ]]
</noinclude>
+
[[Category:Related-topic templates]]
* {{tl|Col-begin}}{{·}}{{tl|Col-begin-small}} {{lts/|Col-begin}}
 
** {{tl|Col-break}}
 
** {{tl|Col-2}}
 
** {{tl|Col-3}}
 
** {{tl|Col-4}}
 
** {{tl|Col-5}}
 
** {{tl|Col-6}} or use <nowiki>{{Col-break|width=16.6%}}</nowiki>&nbsp; where the width 16.6% is roughly 100/6.
 
** {{tl|Col-7}} or use <nowiki>{{Col-break|width=14.2%}}</nowiki>&nbsp; or for 8, use <nowiki>{{Col-break|width=12.4%}}</nowiki>, etc.
 
* {{tl|Col-end}}{{·}}{{tl|End}}
 
* {{tl|Col-float}}{{·}}{{tl|Col-float-break}}{{·}}{{tl|Col-float-end}} {{lts/|Col-float}}
 
* {{tl|Columns}} {{lts/|Columns}}
 
* {{tl|Columns-list}} {{lts/|Columns-list}}
 
* {{tl|Columns-start}}{{·}}{{tl|Column}}{{·}}{{tl|Columns-end}} {{lts/|Columns-start}}
 
* {{tl|Div col}}{{·}}{{tl|Div col end}} {{lts/|Div col}}
 
* {{tl|Multicol}}{{·}}{{tl|Multicol-break}}{{·}}{{tl|Multicol-end}} {{lts/|Multicol}}
 
* {{tl|Top}}{{·}}{{tl|Mid}}{{·}}{{tl|Bottom}} {{lts/|Top}}<noinclude>
 
* {{tl|Autocol}}
 
  
[[Category:Table and column templates| ]]
+
}}<!-- (end Documentation) -->
[[Category:See also templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 01:08, 22 July 2020

Column-generating template families

<section begin="table" />

Family Type
Handles wiki
 table code?Script error: No such module "If empty".
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}}

Script error: No such module "If empty". 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" />

Template documentation

Used by {{Column templates}} to provide links to column-related templates.