Difference between revisions of "Template:Column-generating template families"
From PhysWiki
(tweak col width, still wider than /doc pgs) |
(sub-Aligned table (also should reduce overall width)) |
||
Line 3: | Line 3: | ||
{{Aligned table | {{Aligned table | ||
|cols=5 |class=wikitable nowrap |style=line-height:1.4em; | |cols=5 |class=wikitable nowrap |style=line-height:1.4em; | ||
− | |col1style= | + | |col1style=text-align:center;padding:0.25em; |
|col2style=text-align:center; | |col2style=text-align:center; | ||
− | |col3style=padding-right:1. | + | |col3style=padding-right:1.0em; |
− | |col4style=padding-right:1. | + | |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; | |row1style=background:whitesmoke;vertical-align:middle;font-size:100%;font-weight:bold;text-align:center; | ||
| Family | | Family | ||
− | | | + | | {{longitem|font-weight:normal|Handles wiki<br/> table code?{{sup|{{dagger}}}}}} |
− | | | + | | Start template |
| Break between columns | | Break between columns | ||
− | | | + | | End template |
+ | |||
| "Col" | | "Col" | ||
| | | | ||
Line 18: | Line 21: | ||
| {{tl|Col-break}} | | {{tl|Col-break}} | ||
: {{hlist |{{tl|Col-2}} |{{tl|Col-3}} |{{tl|Col-4}} |{{tl|Col-5}} }} | : {{hlist |{{tl|Col-2}} |{{tl|Col-3}} |{{tl|Col-4}} |{{tl|Col-5}} }} | ||
− | : {{tl|Col-6}} | + | {{Aligned table |
− | + | |style=margin-left:1.4em;line-height:1.2em; | |
− | + | |col1style=padding-right:0.3em; | |
+ | |col2style=font-size:90%; | ||
+ | | {{tl|Col-6}} | or use <nowiki>{{Col-break</nowiki>{{padlr|2px||}}<nowiki>width=16.6%}}</nowiki>,<br/>i.e. with width ≈ 100%{{thinsp|/}}6. | ||
+ | | {{tl|Col-7}} | or use <nowiki>{{Col-break</nowiki>{{padlr|2px||}}<nowiki>width=14.2%}}</nowiki>,<br/>i.e. with width ≈ 100%{{thinsp|/}}7. | ||
+ | | {{tl|Col-8}} | or use <nowiki>{{Col-break</nowiki>{{padlr|2px||}}<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||}}<nowiki>width=[W]%}}</nowiki>,<br/>where [W] ≈ 100 divided by the number of columns desired.}} | ||
| {{tl|Col-end}}<br/>or {{tl|End}} | | {{tl|Col-end}}<br/>or {{tl|End}} | ||
+ | |||
| "Col-float" | | "Col-float" | ||
| {{Y}} | | {{Y}} | ||
Line 27: | Line 36: | ||
| {{tl|Col-float-break}} | | {{tl|Col-float-break}} | ||
| {{tl|Col-float-end}} | | {{tl|Col-float-end}} | ||
+ | |||
| "Columns" | | "Columns" | ||
| {{Y}} | | {{Y}} | ||
Line 32: | Line 42: | ||
| – | | – | ||
| – | | – | ||
+ | |||
| "Columns-start" | | "Columns-start" | ||
| {{Y}} | | {{Y}} | ||
Line 37: | Line 48: | ||
| {{tl|Column}} | | {{tl|Column}} | ||
| {{tl|Columns-end}} | | {{tl|Columns-end}} | ||
+ | |||
| "Div col" | | "Div col" | ||
| {{Y}} | | {{Y}} | ||
Line 42: | Line 54: | ||
| – | | – | ||
| {{tl|Div col end}} | | {{tl|Div col end}} | ||
+ | |||
| "Multicol" | | "Multicol" | ||
| | | | ||
Line 47: | Line 60: | ||
| {{tl|Multicol-break}} | | {{tl|Multicol-break}} | ||
| {{tl|Multicol-end}} | | {{tl|Multicol-end}} | ||
+ | |||
| "TMB" | | "TMB" | ||
| | | | ||
Line 54: | Line 68: | ||
}} | }} | ||
{{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.<noinclude> | {{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.<noinclude> | ||
+ | |||
{{Documentation | {{Documentation | ||
| content = | | content = | ||
Line 63: | Line 78: | ||
[[Category:Table and column templates| ]] | [[Category:Table and column templates| ]] | ||
[[Category:Related-topic templates]] | [[Category:Related-topic templates]] | ||
− | }}<!--(end Documentation)--></noinclude> | + | }}<!--(end Documentation)--> |
+ | </noinclude> |
Revision as of 10:19, 22 August 2014
Template:120% Template:Mbox Template:Aligned table 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:95%, Template:95%, etc) will need to be used instead.
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}