Template:Columns: Difference between revisions
No edit summary Tag: Reverted |
m Removed background color to allow dynamic color shift in dark mode. |
||
| (31 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <includeonly><div class="pillars" style="column-count: {{{count|3}}}; text-align: left; {{{style|}}}; margin-bottom: 0.5em;"> | ||
{{{1}}} | |||
</div></includeonly><noinclude> | |||
==Description== | ==Description== | ||
This template allows you to display content in multiple columns on a page | This template allows you to display content in multiple columns on a page as a bulleted list. | ||
==Usage== | ==Usage== | ||
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable" | |||
|- | |||
<pre> | ! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Default Usage</span><br><div style="text-align: left;"><span style="font-weight: normal;">When used with no additional parameters, the template will return a list split in 3 columns.</span></div> | ||
|- | |||
! width=25%|You Type | |||
!You Get | |||
|- | |||
| style="text-align: left;" |<pre> | |||
{{columns| | {{columns| | ||
* Item 1 | * Item 1 | ||
| Line 16: | Line 23: | ||
}} | }} | ||
</pre> | </pre> | ||
|{{columns| | |||
* Item 1 | |||
* Item 2 | |||
* Item 3 | |||
* | * Item 4 | ||
* | * Item 5 | ||
* Item 6 | |||
=== | }} | ||
|- | |||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Count Parameter</span><br><div style="text-align: left;"><span style="font-weight: normal;">You can specify the number of columns in the output through use of the <code>count=</code> parameter.</span></div> | |||
<pre> | |- | ||
! width=25%|You Type | |||
!You Get | |||
|- | |||
| style="text-align: left;" |<pre> | |||
{{columns|count=2| | {{columns|count=2| | ||
* Item 1 | * Item 1 | ||
| Line 36: | Line 47: | ||
}} | }} | ||
</pre> | </pre> | ||
|{{columns|count=2| | |||
* Item 1 | |||
* Item 2 | |||
* Item 3 | |||
* Item 4 | |||
* Item 5 | |||
* Item 6 | |||
}} | |||
|- | |||
| style="text-align: left;" |<pre> | |||
{{columns|count=4| | |||
* Item 1 | |||
* Item 2 | |||
* Item 3 | |||
* Item 4 | |||
}} | |||
</pre> | |||
|{{columns|count=4| | |||
* Item 1 | |||
* Item 2 | |||
* Item 3 | |||
* Item 4 | |||
}} | |||
|- | |||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Style Parameter</span><br><div style="text-align: left;"><span style="font-weight: normal;">By passing the <code>style=</code> parameter, you can alter the appearance of the column container using various CSS attributes.<br><br><span style="font-size: 85%;">'''Note:''' The attributes used in the example below are a small selection of the possible attributes available. You can find more information on possible attributes [https://coding-help.fandom.com/wiki/Attributes#List_of_commonly_used_attributes here].</span></span></div> | |||
|- | |||
! width=25%|You Type | |||
!You Get | |||
|- | |||
| style="text-align: left;" |<pre> | |||
{{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 | |||
}} | |||
</pre> | |||
|{{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 | |||
}} | |||
|- | |||
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Numbered List</span><br><div style="text-align: left;"><span style="font-weight: normal;">A numbered list can be used by replacing <code>*</code> with <code>#</code>.</span></div> | |||
|- | |||
! width=25%|You Type | |||
!You Get | |||
|- | |||
| style="text-align: left;" |<pre> | |||
{{columns| | |||
# Item A | |||
# Item B | |||
# Item C | |||
# Item D | |||
# Item E | |||
# Item F | |||
}} | |||
</pre> | |||
|{{columns| | |||
# Item A | |||
# Item B | |||
# Item C | |||
# Item D | |||
# Item E | |||
# Item F | |||
}} | |||
|} | |||
This | == Articles Using Template == | ||
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}} | |||
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=100|limit=100}} | |||
[[Category:Article Elements]] | |||
Latest revision as of 22:37, 27 May 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 various CSS attributes.Note: The attributes used in the example below are a small selection of the possible attributes available. You can find more information on possible attributes here. | |
| 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
}}
|
|
Articles Using Template
- Summary:The Beast of Ten (transclusion) (← links | edit)
- Summary:The Queen's Gambit (transclusion) (← links | edit)
- Summary:The Ruby Prince (transclusion) (← links | edit)
- Summary:The Wanderer's Mark (transclusion) (← links | edit)
- Summary:The Unselected Journals of Emma M. Lion: Volume 1 (transclusion) (← links | edit)
- Summary:The Unselected Journals of Emma M. Lion: Volume 2 (transclusion) (← links | edit)
- Summary:The Unselected Journals of Emma M. Lion: Volume 3 (transclusion) (← links | edit)
- Summary:The Unselected Journals of Emma M. Lion: Volume 4 (transclusion) (← links | edit)
- Summary:The Unselected Journals of Emma M. Lion: Volume 5 (transclusion) (← links | edit)
- Summary:The Unselected Journals of Emma M. Lion: Volume 6 (transclusion) (← links | edit)
- Summary:The Unselected Journals of Emma M. Lion: Volume 7 (transclusion) (← links | edit)
- Summary:The Unselected Journals of Emma M. Lion: Volume 8 (transclusion) (← links | edit)
- Summary:The Q (transclusion) (← links | edit)