Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Col/doc to edit this documentation. (How does this work?)

Description

This template allows creation of multiple columns.

Usage

To start columned section, type {{col|#}}, where "#" is the number of columns. If no number is entered, i.e. {{col}}, then there will be two columns by default. To end columned section, type {{col|end}}.

Examples

Example 1

Two column example:

{{col}}
* Item 1
* Item 2
* Item 3
* Item 4
* Item 5
* Item 6
{{col|end}}

Results in:

  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5
  • Item 6

Example 2

Four column ordered list (using roman numerals) example:

{{col|4|style=lower-roman}}
# Item 1
# Item 2
# Item 3
# Item 4
# Item 5
# Item 6
# Item 7
# Item 8
{{col|end}}

Results in:

  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4
  5. Item 5
  6. Item 6
  7. Item 7
  8. Item 8

Example 3

Four column paragraph example:

{{col|4}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dapibus libero id orci pulvinar pharetra. Vestibulum nisi neque, efficitur in lacinia quis, eleifend facilisis nisi. Quisque id augue suscipit, scelerisque nunc ac, pharetra sapien. Nullam vestibulum a erat et ornare. Curabitur euismod ultrices pulvinar. Donec iaculis massa semper consectetur gravida. Ut libero mauris, vestibulum a tortor eu, finibus pellentesque mi.
{{col|end}}

Results in:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dapibus libero id orci pulvinar pharetra. Vestibulum nisi neque, efficitur in lacinia quis, eleifend facilisis nisi. Quisque id augue suscipit, scelerisque nunc ac, pharetra sapien. Nullam vestibulum a erat et ornare. Curabitur euismod ultrices pulvinar. Donec iaculis massa semper consectetur gravida. Ut libero mauris, vestibulum a tortor eu, finibus pellentesque mi.

Advantages over old column templates

  • No need to count the number of items to split into each row.
  • Allows choices besides two columns.
  • Unlike old templates, which forces squashed columns for mobile users, this one is mobile friendly by removing columns for mobile users.

Issues

  • Wikia default css creates margins at top and bottom of various tags. This causes the first column to be slightly lower than other columns and last column to end slightly higher than other columns, which can result in uneven columns. This issue can be fixed by editing MediaWiki:Wikia.css, as was done for <ul> and <ol> tags.
  • If the last item in a column wraps multiple lines, some of the lines may get split into the following column.
Community content is available under CC-BY-SA unless otherwise noted.