Template:Columns/doc

From LPedia
< Template:Columns
Revision as of 02:37, 15 February 2022 by AMK152 (talk | contribs) (Created page with "{{Documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION AFTER THIS LINE --> {{tl|Columns}} may be used to create up to 2 (two) columns across a page. {{caution|This templa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Documentation subpage Template:Tl may be used to create up to 2 (two) columns across a page.

Template:Caution

Syntax

Values for col1 and col2, i.e. the contents of the first and second columns, are expected.

{{Columns
| background =   <!-- Background (default is none) -->
| style =        <!-- Use to add extra overall CSS styling -->
| colwidth =     <!-- Width of each column (default 15.0em) -->
| gapbetween =   <!-- Gap (gutter) between each column (default 1.25em) -->
| col1width =    <!-- Use to set a custom width for col1 -->
| col1 =         <!-- (REQUIRED) First column's contents -->
| col2width =    <!-- Use to set a custom width for col2 (and so on) -->
| col2 =         <!-- (REQUIRED) Second column's contents -->
}}

The parameters  colstyle  and  col1style  to  col2style  may also be used to tailor all and/or individual columns' CSS styling.

Examples

Template:Larger
{{Columns
| col1 = This is a simple application of the columns template, demonstrating the default column widths
| col2 = and gaps between columns. See the next example for a more customized use of the template.
}}
Template:Larger



Template:Larger
{{Columns |background=beige |colwidth=8.5em |gap<!--between-->=3.25em

| col1 =
* These
* columns
* are
* more
* complex

| col2 =
The<br />background<br />is<br />beige
}}
Template:Larger

See also

Template:Column-generating template families