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

From PhysWiki
Jump to: navigation, search
(bad idea to mix these)
m (72 revisions: Column template)
 
(33 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<div style="width:60.0em;">
+
=== Column-generating template families ===
{{120%|'''Column-generating template families'''}}
+
{{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.}}
{{Caution |1=<div style="padding:0.3em 0;">{{105%|'''The templates listed below are not interchangeable across rows'''}} (i.e. across families). 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.</div>}}
+
{{Aligned table
+
|cols=5 |class=wikitable nowrap |style=line-height:1.4em;
+
|col1style=text-align:center;padding:0.25em;
+
|col2style=text-align:center;
+
|col3style=padding-right:1.0em;
+
|col4style=padding-right:1.0em;
+
|col5style=padding-right:1.0em;
+
  
|row1style=background:whitesmoke;vertical-align:middle;font-size:100%;font-weight:bold;text-align:center;
+
{| class="wikitable nowrap" style="line-height:1.4em"
  | Family
+
|-
  | {{longitem|font-weight:normal|Handles wiki<br/>&nbsp;table code?{{sup|{{dagger}}}}}}
+
  ! Family
  | Start template
+
  ! Type
  | Break between columns
+
! {{longitem|Handles wiki <br/>&nbsp;table code?{{sup|{{dagger}}}}}}
  | End template
+
  ! Start template
 
+
  ! Column divider
  | "Col"
+
  ! End template
  |  
+
|- style="vertical-align:middle;"
  | {{tl|Col-begin}}<br/>or {{tl|Col-begin-small}}
+
  | style="text-align:center;" | "Col"
  | {{tl|Col-break}}
+
  | Table
: {{hlist |{{tl|Col-2}} |{{tl|Col-3}} |{{tl|Col-4}} |{{tl|Col-5}} }}
+
| style="text-align:center;"  {{yes}}
  {{Aligned table
+
  | {{tl|Col-begin}} <br/>or {{tl|Col-begin-small}}
  |style=margin-left:1.4em;line-height:1.2em;
+
  | {{tl|Col-break}} <br/>{{tl|Col-2}} .. {{tl|Col-5}}
  |col1style=padding-right:0.3em;
+
  |col2style=font-size:90%;
+
  | {{tl|Col-6}} | or use <nowiki>{{Col-break</nowiki>{{padlr|2px|&#124;}}<nowiki>width=16.6%}}</nowiki>,<br/>i.e. with width ≈ 100%{{thinsp|/}}6.
+
  | {{tl|Col-7}} | or use <nowiki>{{Col-break</nowiki>{{padlr|2px|&#124;}}<nowiki>width=14.2%}}</nowiki>,<br/>i.e. with width ≈ 100%{{thinsp|/}}7.
+
  | {{tl|Col-8}} | or use <nowiki>{{Col-break</nowiki>{{padlr|2px|&#124;}}<nowiki>width=12.5%}}</nowiki>,<br/>i.e. with width {{=}} 100%{{thinsp|/}}8.
+
  }} {{longitem|font-size:90%;|For nine or even more columns, use <nowiki>{{Col-break</nowiki>{{padlr|2px|&#124;}}<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;" | "Columns"
  | {{Y}}
+
| 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}}
 
  | {{tl|Col-float-break}}
 
  | {{tl|Col-float-break}}
 
  | {{tl|Col-float-end}}
 
  | {{tl|Col-float-end}}
 
+
|-
  | "Columns"
+
  | style="text-align:center;" | "Columns-start"
| {{Y}}
+
  | CSS float
| {{tl|Columns}}
+
  | style="text-align:center;"   {{yes}}
  |
+
| –
+
 
+
  | "Columns-start"
+
| {{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"
  | {{Y}}
+
  | CSS columns
  | {{tl|Div col}}<br/> or {{tl|Columns-list}}
+
| style="text-align:center;"  {{yes}}
  |
+
  | {{tl|Div col}} <br />{{tl|Columns-list}} (wrapper)
 +
  | {{tl|No col break}}
 
  | {{tl|Div col end}}
 
  | {{tl|Div col end}}
 
+
|}
| "Multicol"
+
{{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>
|
+
| {{tl|Multicol}}
+
| {{tl|Multicol-break}}
+
| {{tl|Multicol-end}}
+
 
+
| "TMB"
+
|
+
| {{tl|Top}}
+
| {{tl|Mid}}
+
| {{tl|Bottom}}
+
}}
+
{{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]] ({{95%|{{tag|table}}}}, {{95%|{{tag|tr}}}}, etc) will need to be used instead.
+
</div><noinclude>
+
  
 
{{Documentation
 
{{Documentation
Line 75: Line 59:
 
Used by {{tl|Column templates}} to provide links to column-related templates.
 
Used by {{tl|Column templates}} to provide links to column-related templates.
  
== See also ==
+
[[Category:Multi-column templates| ]]
* {{tl|Autocol}}
+
 
+
[[Category:Table and column templates| ]]
+
 
[[Category:Related-topic templates]]
 
[[Category:Related-topic templates]]
}}<!--(end Documentation)-->
+
 
 +
}}<!-- (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