Difference between revisions of "Template:Columns/doc"
From British Juggling Convention Wiki
m (→Syntax: proportional units) |
m (→Examples: proportional units) |
||
Line 37: | Line 37: | ||
}} | }} | ||
− | + | <br/><hr/> | |
− | + | ||
; Code | ; Code | ||
<pre> | <pre> | ||
− | {{columns | + | {{columns |bgcol=beige |width=8.5em |gap=3.25em |
− | |bgcol = beige | + | |
− | |width = | + | |
− | |gap | + | |
|col1 = | |col1 = | ||
Line 58: | Line 54: | ||
|col3 = | |col3 = | ||
; Each : column | ; Each : column | ||
− | ; is : | + | ; is : 8.5[[Em (typography)|em]] |
; wide | ; wide | ||
Line 71: | Line 67: | ||
{{!}} each {{!!}} is | {{!}} each {{!!}} is | ||
{{!-}} | {{!-}} | ||
− | !colspan="2" align="center"{{!}} | + | !colspan="2" align="center"{{!}} 3.25em |
{{!}}} | {{!}}} | ||
}} | }} | ||
Line 77: | Line 73: | ||
; Result | ; Result | ||
− | {{columns | + | {{columns |bgcol=beige |width=8.5em |gap=3.25em |
− | |bgcol = beige | + | |
− | |width = | + | |
− | |gap | + | |
|col1 = | |col1 = | ||
Line 94: | Line 87: | ||
|col3 = | |col3 = | ||
; Each : column | ; Each : column | ||
− | ; is : | + | ; is : 8.5[[Em (typography)|em]] |
; wide | ; wide | ||
Line 107: | Line 100: | ||
{{!}} each {{!!}} is | {{!}} each {{!!}} is | ||
{{!-}} | {{!-}} | ||
− | !colspan="2" align="center"{{!}} | + | !colspan="2" align="center"{{!}} 3.25em |
{{!}}} | {{!}}} | ||
}} | }} |
Revision as of 11:22, 22 May 2007
Template:Template doc page viewed directly Template in the vein of navbox templates such as {{Navbox generic}} and {{Navigation}} to aid the creation of (up to seven) columns across a page.
Syntax
{{columns |bgcol = <!--Background colo/ur (default none)--> |width = <!--Width of each column (default 10em)--> |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 instantiation of |
this template |
- 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 background is beige |
|
|