Template:Column-generating template families: Difference between revisions

From Vigyanwiki
No edit summary
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 14: Line 14:
|-
|-
| rowspan="2" | Float
| rowspan="2" | Float
| "Col-float"
| "col-float"
| {{yes}}
| {{yes}}
| {{yes}}
| {{yes}}
| {{tl|Col-float}}
| {{tl|col-float}}
| {{tl|Col-float-break}}
| {{tl|col-float-break}}
| {{tl|Col-float-end}}
| {{tl|col-float-end}}
|-
|-
| "Columns-start"
| "columns-start"
| {{yes}}
| {{yes}}
| {{yes}}
| {{yes}}
| {{tl|Columns-start}}
| {{tl|columns-start}}
| {{tl|Column}}
| {{tl|column}}
| {{tl|Columns-end}}
| {{tl|columns-end}}
|-
|-
| rowspan="2" | Columns
| rowspan="2" | Columns
| "Div col"
| "div col"
| {{yes}}
| {{yes}}
| {{yes}}
| {{yes}}
| {{tl|Div col}}
| {{tl|div col}}
| –
| –
| {{tl|Div col end}}
| {{tl|div col end}}
|-
|-
| "Columns-list"
| "columns-list"
| {{no}}
| {{no}}
| {{yes}}
| {{yes}}
| {{tl|Columns-list}} (wraps div col)  
| {{tl|columns-list}} (wraps div col)  
| –
| –
| –
| –
|-
|-
| Flexbox
| Flexbox
| "Flex columns"
| "flex columns"
| {{no}}
| {{no}}
| {{yes}}
| {{yes}}
| {{tl|Flex columns}}
| {{tl|flex columns}}
| –
| –
| –
| –
|-
|-
| Table
| Table
| "Col"
| "col"
| {{yes}}
| {{yes}}
| {{no}}
| {{no}}
| {{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}}
| {{tl|Col-end}}
| {{tl|col-end}}
|}
|}
{{sup|{{dagger}}}} Can template handle the basic [[Help:Wiki markup|wiki markup]] <code><nowiki>{|  |  ||  |-  |}</nowiki></code> [[Help:Tables|used to create tables]]? If not, special templates that produce these elements (such as {{tl|(!}}, {{tl|!}}, {{tl|!!}}, {{tl|!-}}, {{tl|!)}})—or [[HTML element|HTML tags]] ({{tag|table}}, {{tag|tr}}, etc.)—need to be used instead.<section end="table" /><noinclude>
{{sup|{{dagger}}}} Can template handle the basic [[Help:Wiki markup|wiki markup]] <code><nowiki>{|  |  ||  |-  |}</nowiki></code> [[Help:Tables|used to create tables]]? If not, special templates that produce these elements (such as {{tl|(!}}, {{tl|!}}, {{tl|!!}}, {{tl|!-}}, {{tl|!)}})—or [[HTML element|HTML tags]] ({{tag|table}}, {{tag|tr}}, etc.)—need to be used instead.<section end="table" /><noinclude>

Latest revision as of 10:06, 27 November 2022

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" />

Column templates
Type Family
Handles wiki
 table code?dagger
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}} {{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}}

dagger Can template handle the basic wiki markup {| | || |- |} used to create tables? If not, special templates that produce these elements (such as {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}})—or HTML tags (‎<table>...‎</table>, ‎<tr>...‎</tr>, etc.)—need to be used instead.<section end="table" />

Template documentation

Used by column template documentation pages to provide links to other column-related templates.

[[Category:Template documentation pages{{#translation:}}]]