Template:Listcol: Difference between revisions

Template page
w:c:strategywiki>Moydow
m (no, that just broke it)
w:c:strategywiki>BrownDerby
(minimum width 100px, fewer columns when space is limited (mobile))
Line 1: Line 1:
<includeonly><div style="-moz-column-count: {{{1|2}}}; -webkit-column-count: {{{1|2}}}; column-count: {{{1|2}}};">
<includeonly><div style="-moz-columns: {{{1|2}}} 100px; -webkit-columns: {{{1|2}}} 100px; columns: {{{1|2}}} 100px;">
{{{list}}}</div></includeonly><noinclude>
{{{list}}}</div></includeonly><noinclude>
This template splits lists up into even columns, which is handy for [[StrategyWiki:Guide/Wiki markup#Text formatting markup|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 <code>|list=</code> takes the list.
This template splits lists up into even columns, which is handy for [[StrategyWiki:Guide/Wiki markup#Text formatting markup|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 <code>|list=</code> takes the list.

Revision as of 02:45, 28 January 2020

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