Template:Columns

From Valve Developer Community
Jump to: navigation, search

{{{col1}}}

{{{col2}}}

{{{col3}}}

{{{col4}}}

{{{col5}}}

{{{col6}}}

{{{col7}}}

{{{col8}}}

{{{col9}}}

{{{col10}}}

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
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
  • These
  • Columns
  • are
  • more
  • complex

The
background
is
beige

Each 
Column
is  
8.5
wide
and
the gap
between
each is
3.25em