Template:Columns: Difference between revisions

From The Reed and Rite
mNo edit summary
Line 3: Line 3:
</div></includeonly><noinclude>
</div></includeonly><noinclude>
==Description==
==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.
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 <code>count=</code> parameter. Optionally, you can add custom inline styles using the <code>style=</code> parameter to adjust the appearance of the columns.


==Usage==
==Usage==

Revision as of 21:24, 17 April 2025

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: Tag Only
[Brief Explanation here]
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: Tag Only
[Brief Explanation here]
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

To use this template, wrap the content you want to display in columns like this:

{{columns|
* Item 1
* Item 2
* Item 3
* Item 4
* Item 5
* Item 6
}}

The above example will display the list in three columns by default.

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