Template:Columns

Frae Wikipedia
Lowp tae: navigation, rake
{{{col1}}} {{{col2}}} {{{col3}}} {{{col4}}} {{{col5}}} {{{col6}}} {{{col7}}} {{{col8}}} {{{col9}}} {{{col10}}}
Documentation icon Template documentation[view] [edit] [history] [purge]

Template sib tae navbox templates, siclike {{Navbox}}, tae help the makkin o (up tae seiven) columns across a page.

Syntax[eedit | eedit soorce]

{{columns
|bgcol     =       <!--Backgrund colo/ur (default none)-->
|colwidth  =       <!--Width o ilka column (default 15em)-->
|gap       =       <!--Gap atween ilka column (default 1.25em)-->
|col1width =       <!--uise tae set a different width for col1-->
|col1      =       <!--mandatory-->
|col2width =       <!--uise tae set a different width for col2 (etc)-->
|col2      =       <!--mandatory-->
|col3width = 
|col3      = 
...
|col7width = 
|col7      = 
}}

Examples[eedit | eedit soorce]

Code
{{columns
|col1 = Easiest<br/>creation<br/>o
|col2 = this<br/>template
}}
Result
Easiest
creation
o
this
template


Code
{{columns |bgcol=beige |width=8.5em |gap=3.25em

|col1 =
* These
* columns
* is
* mair
* complex

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

|col3 =
; Ilka : column
; is   : 8.5[[Em (typography)|em]]
; wide

|col4 =
{{{!}}
!colspan="2"{{!}} an
{{!-}}
{{!}} the {{!!}} gap
{{!-}}
{{!}}colspan="2"{{!}} atween
{{!-}}
{{!}} ilka {{!!}} is
{{!-}}
!colspan="2" align="center"{{!}} 3.25em
{{!}}}
}}
Result
  • These
  • columns
  • is
  • mair
  • complex
The
backgrund
is
beige
Ilka 
column
is  
8.5em
wide
an
the gap
atween
ilka is
3.25em

See an aw[eedit | eedit soorce]