Template:Col-break View history

(Added Category)
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|
|
|
|
<noinclude>
<noinclude>{{documentation}}</noinclude>
<!-- When this category comment was added,  
<!-- When this category comment was added,  
     there was an extra line break after second pipe above.
     there was an extra line break after second pipe above.
     Remove extra if formatting in tables incorrectly. -->
     Remove extra if formatting in tables incorrectly. -->


<!-- This category is only for the template itself -->
<noinclude><!-- This category is only for the template itself -->
[[Category:Template Management]]
[[Category:Template management]]
[[Category:Missing Template Documentation]]


</noinclude>
</noinclude>

Latest revision as of 06:25, 10 August 2022

| |

Documentation icon Template documentation[view] [edit] [history] [purge]
Places the column break characters in 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:
The above documentation is transcluded from Template:Col-break/doc.
Please add categories to the /doc subpage.
Subpages of this template.