Template:Col-begin
Jump to navigation
Jump to search
This documentation is transcluded from Template:Col-begin/doc.
The {{Col-begin}}, {{Col-break}} and {{Col-end}} templates control columns of text on a page:
- {{col-begin}} - starts a table (followed by {{col-break}} for 1st column)
- {{col-break}} - triggers the start of each column
- {{col-end}} - ends the multi-column table.
The widths of columns can be specified by using various additional codes. See below for examples.
Usage
[edit]- {{col-begin|width=70%}} - start table with width.
- {{col-break|width=66%}} - start column-1 as 66% wide.
- This is text in col-1.
- {{col-break|width=33%}} - start column-2 as 33% wide.
- Text column-2.
- {{col-end}}
The table will have 2 columns, with column 1 twice (2x) the width of column 2.
Another way to create a two column table is to make use of {{Col-x}} to start each column, which need to input number of columns in its unnamed parameter, the template will automatically calculate column width.
- {{col-begin|width=70%}} - start table with width.
- {{col-x|2}} - start column-1 as 50% wide.
- This is text in col-1.
- {{col-x|2}} - start column-2 as 50% wide.
- Text column-2.
- {{col-end}}