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

From PhysWiki
Jump to: navigation, search
(Add col-float set)
m (72 revisions: Column template)
 
(70 intermediate revisions by 20 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
=== Column-generating template families ===
<noinclude>
+
{{Caution|1='''The templates listed here are not interchangeable'''. For example, using {{tl|Multicol}} with {{tl|col-end}} instead of {{tl|Multicol-end}} would leave a [[HTML]] [[Span and div|"div" (division)]] open, potentially harming any subsequent formatting.}}
Used by {{tl|Column templates}} to link to other column templates
+
----
+
  
== See also ==
+
{| class="wikitable nowrap" style="line-height:1.4em"
</noinclude>
+
|-
* {{tl|Col-begin}} ({{tl|Col-start}}), {{tl|Col-begin-small}} {{lts/|Col-begin}}
+
! Family
** {{tl|Col-break}}
+
! Type
** {{tl|Col-2}} <small>({{tl|Col-1-of-2}}, {{tl|Col-2-of-2}})</small>
+
! {{longitem|Handles wiki <br/>&nbsp;table code?{{sup|{{dagger}}}}}}
** {{tl|Col-3}} <small>({{tl|Col-1-of-3}}, {{tl|Col-2-of-3}}, {{tl|Col-3-of-3}})</small>
+
! Start template
** {{tl|Col-4}} <small>({{tl|Col-1-of-4}}, {{tl|Col-2-of-4}}, {{tl|Col-3-of-4}}, {{tl|Col-4-of-4}})</small>
+
! Column divider
** {{tl|Col-5}} <small>({{tl|Col-1-of-5}}, {{tl|Col-2-of-5}}, {{tl|Col-3-of-5}}, {{tl|Col-4-of-5}}, {{tl|Col-5-of-5}})</small>
+
! End template
<!-- ----------------- Hide deprecated templates (rarely used)
+
|- style="vertical-align:middle;"
** {{tl|Col-6}} <small>(<nowiki>{{Col-1-of-6}}, {{Col-2-of-6}}, {{Col-3-of-6}}, {{Col-4-of-6}}, {{Col-5-of-6}}, {{Col-6-of-6}}</nowiki>)</small> -->
+
| style="text-align:center;" | "Col"
** For 6, use: <nowiki>{{Col-break|width=16.6%}}</nowiki>&nbsp; where the width 16.6% is roughly 100/6.
+
| Table
** For 7, use: <nowiki>{{Col-break|width=14.2%}}</nowiki>&nbsp; or for 8, use: <nowiki>{{Col-break|width=12.4%}}</nowiki>, etc.
+
| style="text-align:center;"  {{yes}}
* {{tl|Col-end}} ({{tl|End}})
+
| {{tl|Col-begin}} <br/>or {{tl|Col-begin-small}}
* {{tl|Top}}, {{tl|Mid}}, {{tl|Bottom}}
+
| {{tl|Col-break}} <br/>{{tl|Col-2}} .. {{tl|Col-5}}
* {{tl|Columns-start}}, {{tl|Column}}, {{tl|Columns-end}} {{lts/|Columns-start}}
+
| {{tl|Col-end}}
* {{tl|Multicol}}, {{tl|Multicol-break}}, {{tl|Multicol-end}} {{lts/|Multicol}}
+
|-
* {{tl|Div col}}, {{tl|Div col end}} {{lts/|Div col}}
+
| style="text-align:center;" | "Columns"
* {{tl|col-float}}, {{tl|col-float-break}}, {{tl|col-float-end}},  
+
| Table
 +
| style="text-align:center;"  {{no}}
 +
| {{tl|Columns}}
 +
| –
 +
| –
 +
|-
 +
| style="text-align:center;" | "Multicol"
 +
| Table
 +
| style="text-align:center;"  {{yes}}
 +
| {{tl|Multicol}}
 +
| {{tl|Multicol-break}}
 +
| {{tl|Multicol-end}}
 +
|-  
 +
| style="text-align:center;" | "Col-float"
 +
| CSS float
 +
| style="text-align:center;"  {{yes}}
 +
| {{tl|Col-float}}
 +
| {{tl|Col-float-break}}
 +
| {{tl|Col-float-end}}
 +
|-
 +
| style="text-align:center;" | "Columns-start"
 +
| CSS float
 +
| style="text-align:center;"  {{yes}}
 +
| {{tl|Columns-start}}
 +
| {{tl|Column}}
 +
| {{tl|Columns-end}}
 +
|-
 +
| style="text-align:center;" | "Div col"
 +
| CSS columns
 +
| style="text-align:center;"  {{yes}}
 +
| {{tl|Div col}} <br />{{tl|Columns-list}} (wrapper)
 +
| {{tl|No col break}}
 +
| {{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|!)}}) and/or [[HTML element|HTML tags]] ({{tag|table}}, {{tag|tr}}, etc.) will need to be used instead.<noinclude>
  
<noinclude>
+
{{Documentation
[[Category:Table and column templates]]
+
| content =
 +
Used by {{tl|Column templates}} to provide links to column-related templates.
 +
 
 +
[[Category:Multi-column templates| ]]
 +
[[Category:Related-topic templates]]
 +
 
 +
}}<!-- (end Documentation) -->
 
</noinclude>
 
</noinclude>

Latest revision as of 06:06, 5 September 2016

[edit] Column-generating template families

Template:Mbox

Family Type Template:Longitem Start template Column divider End template
"Col" Table style="text-align:center;" Template:Yes Template:Tl
or Template:Tl
Template:Tl
Template:Tl .. Template:Tl
Template:Tl
"Columns" Table style="text-align:center;" Template:No Template:Tl
"Multicol" Table style="text-align:center;" Template:Yes Template:Tl Template:Tl Template:Tl
"Col-float" CSS float style="text-align:center;" Template:Yes Template:Tl Template:Tl Template:Tl
"Columns-start" CSS float style="text-align:center;" Template:Yes Template:Tl Template:Tl Template:Tl
"Div col" CSS columns style="text-align:center;" Template:Yes Template:Tl
Template:Tl (wrapper)
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:Tl, Template:Tl, Template:Tl, Template:Tl, Template:Tl) and/or HTML tags (Template:Tag, Template:Tag, etc.) will need to be used instead.

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox