Template:Columns

From The Reed and Rite
Revision as of 21:48, 17 April 2025 by TheRoman (talk | contribs) (→Usage)

Description

This template allows you to display content in multiple columns on a page. By default, it divides the content into three columns, but you can customize the number of columns by using the count= parameter. Optionally, you can add custom inline styles using the style= parameter to adjust the appearance of the columns.

Usage

Example: Default Usage
When used with no additional parameters, the template will return a list split in 3 columns.
You Type You Get
{{columns|
* Item 1
* Item 2
* Item 3
* Item 4
* Item 5
* Item 6
}}
  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5
  • Item 6
Example: Count Parameter
You can specify the number of columns in the output through use of the |count= parameter.
You Type You Get
{{columns|count=2|
* Item 1
* Item 2
* Item 3
* Item 4
* Item 5
* Item 6
}}
  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5
  • Item 6
{{columns|count=4|
* Item 1
* Item 2
* Item 3
* Item 4
}}
  • Item 1
  • Item 2
  • Item 3
  • Item 4
Example: Style Parameter
You can specify the number of columns in the output through use of the |style= parameter.
You Type You Get
{{columns|
* Item 1
* Item 2
* Item 3
* Item 4
* Item 5
* Item 6
}}
  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5
  • Item 6

Parameters

  • `count` (optional): Specifies the number of columns. Defaults to 3 if not provided.
  • `style` (optional): Additional inline CSS styles to apply to the container div.

Articles Using Template