الگو:Columns/doc

از ویکی‌پدیا، دانشنامهٔ آزاد.

This is the template documentation page for الگو:Columns.

This page is not necessarily intended to be viewed directly. If it uses variables, some links may appear broken. Do not replace these variables with hardcoded page names or URLs.


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)-->
|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=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.5em
wide
and
the الگو:!! gap
between
each الگو:!! is
3.25em


[ویرایش] See also