Template:Listcol: Difference between revisions

Template page
w:c:strategywiki>Prod
(increase to 150px minimum)
w:c:strategywiki>Prod
(separate the examples)
Line 4: Line 4:


;Examples
;Examples
{{col|2|begin}}
Simple two-column list:
Simple two-column list:
<pre>{{listcol|list=
<pre>{{listcol|list=
Line 16: Line 15:
# three
# three
#four}}
#four}}
{{col|2}}
 
Three-column list:
Three-column list:
<pre>{{listcol|3|list=
<pre>{{listcol|3|list=
Line 26: Line 25:
# two
# two
# three}}
# three}}
{{col|2|end}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 03:17, 4 May 2021

This template splits lists up into even columns, which is handy for ordered lists. The first unnamed parameter is optional and is for setting the number of columns. If omitted, the list will be split into two columns by default. The mandatory parameter |list= takes the list.

Examples

Simple two-column list:

{{listcol|list=
# one
# two
# three
# four}}
  1. one
  2. two
  3. three
  4. four

Three-column list:

{{listcol|3|list=
# one
# two
# three}}
  1. one
  2. two
  3. three