Difference between revisions of "Template:Column-generating template families"
From PhysWiki
(→Column-generating template families) |
(→Column-generating template families) |
||
| Line 16: | Line 16: | ||
| {{tl|Col-begin}}<br/>or {{tl|Col-begin-small}} | | {{tl|Col-begin}}<br/>or {{tl|Col-begin-small}} | ||
| {{tl|Col-break}} | | {{tl|Col-break}} | ||
| − | : {{hlist |{{tl|Col-2}} |{{tl|Col-3}} |{{tl|Col-4}} |{{tl|Col-5}} }} | + | : {{hlist |{{tl|Col-1}} |{{tl|Col-2}} |{{tl|Col-3}} |{{tl|Col-4}} |{{tl|Col-5}} }} |
{{Aligned table | {{Aligned table | ||
|style=margin-left:1.4em;line-height:1.2em; | |style=margin-left:1.4em;line-height:1.2em; | ||
| Line 25: | Line 25: | ||
| {{tl|Col-8}} | or use <nowiki>{{Col-break</nowiki>{{padlr|2px||}}<nowiki>width=12.5%}}</nowiki>,<br/>i.e. with width {{=}} 100%{{thinsp|/}}8. | | {{tl|Col-8}} | or use <nowiki>{{Col-break</nowiki>{{padlr|2px||}}<nowiki>width=12.5%}}</nowiki>,<br/>i.e. with width {{=}} 100%{{thinsp|/}}8. | ||
| {{tl|Col-9}} | or use <nowiki>{{Col-break</nowiki>{{padlr|2px||}}<nowiki>width=11.1%}}</nowiki>,<br/>i.e. with width {{=}} 100%{{thinsp|/}}9. | | {{tl|Col-9}} | or use <nowiki>{{Col-break</nowiki>{{padlr|2px||}}<nowiki>width=11.1%}}</nowiki>,<br/>i.e. with width {{=}} 100%{{thinsp|/}}9. | ||
| − | }} {{longitem|font-size:90%;|For | + | | {{tl|Col-10}} | or use <nowiki>{{Col-break</nowiki>{{padlr|2px||}}<nowiki>width=10.0%}}</nowiki>,<br/>i.e. with width {{=}} 100%{{thinsp|/}}10. |
| + | }} {{longitem|font-size:90%;|For eleven 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}} | ||
|- | |- | ||
Revision as of 06:26, 28 February 2015
Column-generating template families
| Family | Type | Template:Longitem | Start template | Break between columns | End template |
|---|---|---|---|---|---|
| "Col" | Table | 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" | Table | 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" | Table | 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}}}}}}