Difference between revisions of "Template:Columns/doc"
m (+) |
m (Changing {{w}} to w:) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{see also|Template:Columns-list}} | ||
Template in the vein of navbox templates such as {{tl|Navbox}} to aid the creation of (up to seven) columns across a page. | Template in the vein of navbox templates such as {{tl|Navbox}} to aid the creation of (up to seven) columns across a page. | ||
Line 84: | Line 85: | ||
|col3 = | |col3 = | ||
; Each : column | ; Each : column | ||
− | ; is : 8.5[[Em (typography)|em]] | + | ; is : 8.5[[w:Em (typography)|em]] |
; wide | ; wide | ||
Line 99: | Line 100: | ||
!colspan="2" align="center"{{!}} 3.25em | !colspan="2" align="center"{{!}} 3.25em | ||
{{!}}} | {{!}}} | ||
− | }} | + | }}<noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 14:33, 25 November 2012
See also: Template:Columns-list
Template in the vein of navbox templates such as {{Navbox}}
to aid the creation of (up to seven) columns across a page.
Syntax
{{columns |bgcol = <!--Background colo/ur (default none)--> |colwidth = <!--Width of each column (default 15em)--> |gap = <!--Gap between each column (default 1.25em)--> |col1width = <!--use to set a different width for col1--> |col1 = <!--mandatory--> |col2width = <!--use to set a different width for col2 (etc)--> |col2 = <!--mandatory--> |col3width = |col3 = ... |col7width = |col7 = }}
Examples
- Code
{{columns |col1 = Simplest<br/>instantiation<br/>of |col2 = this<br/>template }}
- Result
Simplest |
this |
|
- Code
{{columns |bgcol=beige |width=8.5em |gap=3.25em |col1 = * These * columns * are * more * complex |col2 = The<br/>background<br/>is<br/>beige |col3 = ; Each : column ; is : 8.5[[Em (typography)|em]] ; wide |col4 = {{{!}} !colspan="2"{{!}} and {{!-}} {{!}} the {{!!}} gap {{!-}} {{!}}colspan="2"{{!}} between {{!-}} {{!}} each {{!!}} is {{!-}} !colspan="2" align="center"{{!}} 3.25em {{!}}} }}
- Result
|
The |
|
|
|