FANDOM



Information icon Template documentation
(for the Colbegin template, sometimes hidden or invisible)
[edit]   —   [history]   —   [purge]   —   [what links here]

Description

Similar to the {{Col-begin}} ... {{Col-2}}, {{Col-3}}, {{Col-4}} and {{Col-5}} ... {{Col-end}} templates, but instead of a table this uses the div statements and does not require the intermediate column separaters.

Note
  1. You must end the list with the {{Colend}} template!
  2. If you do not have enough items to place an equal number of items per line then you will get the number of columns that you stated with the col= parameter, but some of the columns to the right may be empty until more items are added to the list.
    1. The col= parameter is basically the Maximum number of columns allowed.
    2. You will never get MORE columns that you set for the col= parameter.

Usage

{{Colbegincolwidth=<width> }} or {{Colbegincols=# }} - One of the other - If you use both parameters then the colwidth= parameter will override the cols= parameter.

colwidth= 
The width of the columns - The template will make as many columns as it can by taking the total width available and diving it by the width you set
cols= 
The number of columns you wish to have with the space allowed

Examples

Example 1

{{Colbegincolwidth=15px }}

* List item 1
* List item 2
* List item 3
* List item 4
* List item 5
* List item 6

{{Colend}} will produce

  • List item 1
  • List item 2
  • List item 3
  • List item 4
  • List item 5
  • List item 6

Example 2

{{Colbegincolwidth=50px }}

# List item 1
# List item 2
# List item 3
# List item 4
# List item 5
# List item 6

{{Colend}} will produce

  1. List item 1
  2. List item 2
  3. List item 3
  4. List item 4
  5. List item 5
  6. List item 6

Example 3

{{Colbegincols=2 }}

* List item 1
* List item 2
* List item 3
* List item 4
* List item 5

{{Colend}} will produce

  • List item 1
  • List item 2
  • List item 3
  • List item 4
  • List item 5

Example 4

{{Colbegincols=4 }}

# List item 1
# List item 2
# List item 3
# List item 4
# List item 5

{{Colend}} will produce

  1. List item 1
  2. List item 2
  3. List item 3
  4. List item 4
  5. List item 5

Visit Template:Colbegin/doc to edit this text! (How does this work?)
Community content is available under CC-BY-SA unless otherwise noted.