Ikariam
Advertisement

Description

Similar to the {{Col-begin}} ... {{Col-2}}, {{Col-3}}, {{Col-4}}, {{Col-5}}, {{Col-6}}, {{Col-7}}, {{Col-8}}, {{Col-9}} and {{Col-10}} ... {{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

{{Colbegin|colwidth=<width>}} or {{Colbegin|cols=#}} - 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

{{Colbegin|colwidth=15px}}

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

{{Colend}} will produce

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

Example 2

{{Colbegin|colwidth=50px}}

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

{{Colend}} will produce

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

Example 3

{{Colbegin|cols=2}}

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

{{Colend}} will produce

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

Example 4

{{Colbegin|cols=4}}

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

{{Colend}} will produce

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