Template:Columns: Difference between revisions
m Protected "Template:Columns" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
m →Usage |
||
| Line 78: | Line 78: | ||
| style="text-align: left; background-color: white;" |<pre> | | style="text-align: left; background-color: white;" |<pre> | ||
{{columns| | {{columns| | ||
style=font-size: 150%; border: 1px solid | style=font-size: 150%; border: 1px solid #A2A7AF; background-color: #efefef; font-family: 'Libre Baskerville;| | ||
* Item 1 | * Item 1 | ||
* Item 2 | * Item 2 | ||
| Line 87: | Line 87: | ||
}} | }} | ||
</pre> | </pre> | ||
| style="background-color: white;" |{{columns|style=font-size: 150%; border: 1px solid | | style="background-color: white;" |{{columns|style=font-size: 150%; border: 1px solid #A2A7AF; background-color: #efefef; font-family: 'Libre Baskerville;| | ||
* Item 1 | * Item 1 | ||
* Item 2 | * Item 2 | ||
Revision as of 19:26, 18 April 2025
Description
This template allows you to display content in multiple columns on a page as a bulleted list.
Usage
| 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
}}
|
|
| 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
}}
|
|
{{columns|count=4|
* Item 1
* Item 2
* Item 3
* Item 4
}}
|
|
| Style Parameter By passing the style= parameter, you can alter the appearance of the column container using inline CSS styles.Note: The styles used in the example below are a small selection of the possible styles available. | |
| You Type | You Get |
{{columns|
style=font-size: 150%; border: 1px solid #A2A7AF; background-color: #efefef; font-family: 'Libre Baskerville;|
* Item 1
* Item 2
* Item 3
* Item 4
* Item 5
* Item 6
}}
|
|
| Numbered List A numbered list can be used by replacing * with #.
| |
| You Type | You Get |
{{columns|
# Item A
# Item B
# Item C
# Item D
# Item E
# Item F
}}
|
|