Template:Col-begin/doc View history

(Initial doc page creation)
 
m (typo)
 
Line 1: Line 1:
''Italic text''{{doc subpage}}
''Italic text''{{doc subpage}}
<!-- ADD DOCUMENTATION BELOW THIS LINE -->
<!-- ADD DOCUMENTATION BELOW THIS LINE -->
Places the column heading characters to begin a table. {{pre|<nowiki>{|</nowiki><br/><nowiki>|</nowiki>
Places the column heading characters to begin a table. {{pre|<nowiki>{|</nowiki><br/><nowiki>|</nowiki>}}


The {{tl|col-begin}}, {{tl|col-break}} and {{tl|col-end}} templates control columns of text on a page:
The {{tl|col-begin}}, {{tl|col-break}} and {{tl|col-end}} templates control columns of text on a page:

Latest revision as of 07:36, 29 May 2017

Italic text

This is a documentation subpage for Template:Col-begin.
It contains usage information, categories and other content that is not part of the original template page.

Places the column heading characters to begin a table.

{|
|

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

{{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 two columns, with column 1 twice (2×) the width of column 2.

See also

  • Columns-list - Displays a list of entries into a selectable number of columns
  • Columns - Displays text on a page into multiple columns
  • Table codes: