Pillars of Eternity Wiki
Pillars of Eternity Wiki
Template-info.png Template documentation

This template formats text into the specified number of columns, or into however many columns that will fit given columns of a specified width. It is especially useful to wrap long lists of items into multiple columns to maximize horizontal space.

Uses CSS column-count and column-width.

Usage

{{Columns|# of columns OR pixel/percentage width|list or text}}.

Parameters

1 (required)
Column width if value ends with a % or px, otherwise the column count.
2 (required)
The content, typically a list of values or elements
width
Shortcut to set max-width on encapsulating div.
column-width
Explicitly set column-width. Should only be used if 1 is a column count.
column-count
Explicitly set column-count. Should only be used if 1 is a column width.

Examples

Fixed number of columns

For example the code bellow will split the list into 2 columns:

{{Columns|2|
* 1
* 2 
* 3 
* 4 
* 5 
* 6
}}

Result:

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

Fixed column width

And the following will split the list into columns of 50px each. Note that this is only a minimum width suggestion to the browser, and may be problematic when used in tables as the columns will not expand the table, resulting in only a single column being used.

{{Columns|200px|
* 1
* 2 
* 3 
* 4 
* 5 
* 6
}}

Result:

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