Difference between revisions of "Template:Columns/doc"

From blackwiki
Jump to navigation Jump to search
imported>David Kernow
(moved documentation etc from template page)
 
imported>David Kernow
(category)
Line 114: Line 114:
 
<includeonly>
 
<includeonly>
 
<!--Categories-->
 
<!--Categories-->
[[Category:Wikipedia special effects templates|{{PAGENAME}}]]
+
[[Category:Table and column templates|{{PAGENAME}}]]
  
 
<!--Other languages-->
 
<!--Other languages-->
 
[[zh:Template:Columns]]
 
[[zh:Template:Columns]]
 
</includeonly>
 
</includeonly>

Revision as of 15:05, 16 February 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 (px; default 120px)-->
|gap   =   <!--Gap between each column (px; default 15px)-->
|col1  =   <!--mandatory-->
|col2  =   <!--mandatory-->
|col3  = 
|col4  = 
|col5  = 
|col6  = 
|col7  = 
}}

Examples

Code
{{columns
|col1 = Simplest<br/>instantiation<br/>of
|col2 = this<br/>template
}}
Result

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

See also