Difference between revisions of "Template:Columns/doc"

From British Juggling Convention Wiki
Jump to: navigation, search
(updating)
m (Syntax: proportional units)
Line 8: Line 8:
 
{{columns
 
{{columns
 
|bgcol =      <!--Background colo/ur (default none)-->
 
|bgcol =      <!--Background colo/ur (default none)-->
|width =      <!--Width of each column (px; default 120px)-->
+
|width =      <!--Width of each column (default 10em)-->
|gap  =      <!--Gap between each column (px; default 15px)-->
+
|gap  =      <!--Gap between each column (default 1.25em)-->
 
|col1width =  <!--use to set a different width for col1-->
 
|col1width =  <!--use to set a different width for col1-->
 
|col1  =      <!--mandatory-->
 
|col1  =      <!--mandatory-->

Revision as of 11:19, 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 = 100px
|gap   = 40px

|col1 =
* These
* columns
* are
* more
* complex

|col2 =
The<br/>background<br/>is<br/>beige

|col3 =
; Each : column
; is   : 100px
; wide

|col4 =
{{{!}}
!colspan="2"{{!}} and
{{!-}}
{{!}} the {{!!}} gap
{{!-}}
{{!}}colspan="2"{{!}} between
{{!-}}
{{!}} each {{!!}} is
{{!-}}
!colspan="2" align="center"{{!}} 40px
{{!}}}
}}
Result
  • These
  • columns
  • are
  • more
  • complex
The
background
is
beige
Each 
column
is  
100px
wide
and
the gap
between
each is
40px

See also