Difference between revisions of "Template:Column-generating template families"
From PhysWiki
(→Column-generating template families) |
|||
Line 2: | Line 2: | ||
{{Caution|1='''The templates listed below are not interchangeable'''. For example, using {{tl|Multicol}} with {{tl|col-end}} instead of {{tl|Multicol-end}} would leave an [[HTML]] [[Span and div|"div" (division)]] open, potentially harming any subsequent formatting.}} | {{Caution|1='''The templates listed below are not interchangeable'''. For example, using {{tl|Multicol}} with {{tl|col-end}} instead of {{tl|Multicol-end}} would leave an [[HTML]] [[Span and div|"div" (division)]] open, potentially harming any subsequent formatting.}} | ||
− | { | + | {| class="wikitable nowrap" style="line-height:1.4em" |
− | + | |- | |
− | + | ! Family | |
− | + | ! Type | |
− | + | ! {{longitem|font-weight:normal|Handles wiki<br/> table code?{{sup|{{dagger}}}}}} | |
− | + | ! Start template | |
− | + | ! Break between columns | |
− | + | ! End template | |
− | + | |- valign=middle | |
− | + | | style="text-align:center" | "Col" | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | | "Col" | + | |
| Tables | | Tables | ||
− | | | + | | style="text-align:center" | |
| {{tl|Col-begin}}<br/>or {{tl|Col-begin-small}} | | {{tl|Col-begin}}<br/>or {{tl|Col-begin-small}} | ||
| {{tl|Col-break}} | | {{tl|Col-break}} | ||
Line 34: | Line 26: | ||
}} {{longitem|font-size:90%;|For nine or even more columns, use <nowiki>{{Col-break</nowiki>{{padlr|2px||}}<nowiki>width=[W]%}}</nowiki>,<br/>where [W] ≈ 100 divided by the number of columns desired.}} | }} {{longitem|font-size:90%;|For nine or even more columns, use <nowiki>{{Col-break</nowiki>{{padlr|2px||}}<nowiki>width=[W]%}}</nowiki>,<br/>where [W] ≈ 100 divided by the number of columns desired.}} | ||
| {{tl|Col-end}} | | {{tl|Col-end}} | ||
− | + | |- | |
− | | "Col-float" | + | | style="text-align:center" | "Col-float" |
| CSS float | | CSS float | ||
− | | {{Y}} | + | | style="text-align:center" | {{Y}} |
| {{tl|Col-float}} | | {{tl|Col-float}} | ||
| {{tl|Col-float-break}} | | {{tl|Col-float-break}} | ||
| {{tl|Col-float-end}} | | {{tl|Col-float-end}} | ||
− | + | |- | |
− | | "Columns" | + | | style="text-align:center" | "Columns" |
| Tables | | Tables | ||
− | | {{Y}} | + | | style="text-align:center" | {{Y}} |
| {{tl|Columns}} | | {{tl|Columns}} | ||
| – | | – | ||
| – | | – | ||
− | + | |- | |
− | | "Columns-start" | + | | style="text-align:center" | "Columns-start" |
| CSS float | | CSS float | ||
− | | {{Y}} | + | | style="text-align:center" | {{Y}} |
| {{tl|Columns-start}} | | {{tl|Columns-start}} | ||
| {{tl|Column}} | | {{tl|Column}} | ||
| {{tl|Columns-end}} | | {{tl|Columns-end}} | ||
− | + | |- | |
− | | "Div col" | + | | style="text-align:center" | "Div col" |
| CSS columns | | CSS columns | ||
− | | {{Y}} | + | | style="text-align:center" | {{Y}} |
| {{tl|Div col}}<br />– {{tl|Columns-list}} (wrapper) | | {{tl|Div col}}<br />– {{tl|Columns-list}} (wrapper) | ||
| – | | – | ||
| {{tl|Div col end}} | | {{tl|Div col end}} | ||
− | + | |- | |
− | | "Multicol" | + | | style="text-align:center" | "Multicol" |
| Tables | | Tables | ||
− | | | + | | style="text-align:center" | |
| {{tl|Multicol}} | | {{tl|Multicol}} | ||
| {{tl|Multicol-break}} | | {{tl|Multicol-break}} | ||
| {{tl|Multicol-end}} | | {{tl|Multicol-end}} | ||
− | + | |} | |
− | + | ||
{{sup|{{dagger}}}} 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 {{tlpadb|3px|(!}}, {{tlpadb|3px|!}}, {{tlpadb|3px|!!}}, {{tlpadb|3px|!-}}, {{tlpadb|3px|!)}}) and/or [[HTML element|HTML tags]] ({{resize|95%|{{tag|table}}}}, {{resize|95%|{{tag|tr}}}}, etc) will need to be used instead. | {{sup|{{dagger}}}} 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 {{tlpadb|3px|(!}}, {{tlpadb|3px|!}}, {{tlpadb|3px|!!}}, {{tlpadb|3px|!-}}, {{tlpadb|3px|!)}}) and/or [[HTML element|HTML tags]] ({{resize|95%|{{tag|table}}}}, {{resize|95%|{{tag|tr}}}}, etc) will need to be used instead. | ||
<noinclude> | <noinclude> |
Revision as of 22:40, 19 December 2014
Column-generating template families
Family | Type | Template:Longitem | Start template | Break between columns | End template |
---|---|---|---|---|---|
"Col" | Tables | Template:Tl or Template:Tl |
Template:Tl
Template:Aligned table Template:Longitem |
Template:Tl | |
"Col-float" | CSS float | Template:Y | Template:Tl | Template:Tl | Template:Tl |
"Columns" | Tables | Template:Y | Template:Tl | – | – |
"Columns-start" | CSS float | Template:Y | Template:Tl | Template:Tl | Template:Tl |
"Div col" | CSS columns | Template:Y | Template:Tl – Template:Tl (wrapper) |
– | Template:Tl |
"Multicol" | Tables | Template:Tl | Template:Tl | Template:Tl |
Template:Sup i.e. can the columns handle the wiki markup {| | || |- |} used to create tables? If not, templates that produce these elements (such as Template:Tlpadb, Template:Tlpadb, Template:Tlpadb, Template:Tlpadb, Template:Tlpadb) and/or HTML tags (Template:Resize, Template:Resize, etc) will need to be used instead.
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}