Difference between revisions of "Template:Columns/doc"

From blackwiki
Jump to navigation Jump to search
imported>Yahia.barie
(bn:টেমপ্লেট:Columns)
imported>Koavf
m (→‎Examples: orphaning deprecated template for WP:TFD, replaced: {{!-}} → {{!}}- (8) using AWB)
Line 59: Line 59:
 
{{{!}}
 
{{{!}}
 
!colspan="2"{{!}} and
 
!colspan="2"{{!}} and
{{!-}}
+
{{!}}-
 
{{!}} the {{!!}} gap
 
{{!}} the {{!!}} gap
{{!-}}
+
{{!}}-
 
{{!}}colspan="2"{{!}} between
 
{{!}}colspan="2"{{!}} between
{{!-}}
+
{{!}}-
 
{{!}} each {{!!}} is
 
{{!}} each {{!!}} is
{{!-}}
+
{{!}}-
 
!colspan="2" align="center"{{!}} 3.25em
 
!colspan="2" align="center"{{!}} 3.25em
 
{{!}}}
 
{{!}}}
Line 92: Line 92:
 
{{{!}}
 
{{{!}}
 
!colspan="2"{{!}} and
 
!colspan="2"{{!}} and
{{!-}}
+
{{!}}-
 
{{!}} the {{!!}} gap
 
{{!}} the {{!!}} gap
{{!-}}
+
{{!}}-
 
{{!}}colspan="2"{{!}} between
 
{{!}}colspan="2"{{!}} between
{{!-}}
+
{{!}}-
 
{{!}} each {{!!}} is
 
{{!}} each {{!!}} is
{{!-}}
+
{{!}}-
 
!colspan="2" align="center"{{!}} 3.25em
 
!colspan="2" align="center"{{!}} 3.25em
 
{{!}}}
 
{{!}}}

Revision as of 05:24, 28 October 2012

Template in the vein of navbox templates such as {{Navbox}} to aid the creation of (up to ten) 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/>application<br/>of
|col2 = this<br/>template
}}
Result



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

See also