From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
(increase to 150px minimum)
(prevent linebreaks within li)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="columns: {{{1|2}}} 150px;">
<includeonly><templatestyles src="Template:Listcol/styles.css" /><div class="t-listcol" style="columns: {{{1|2}}} 150px;">
{{{list}}}</div></includeonly><noinclude>
{{{list}}}</div></includeonly><noinclude>
{{TemplateStyles|Template:Listcol/styles.css}}
{{High-risk}}
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.


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


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

Latest revision as of 19:43, 5 March 2023

High-risk
High-risk

This high-risk template or image has been protected indefinitely. It is widely used and is at significant risk of vandalism. If you would like to edit this page, bring it up on the talk page, contact a sysop, or bring it up on Discord. Protection is not an endorsement of the current version, which is inevitably the wrong version.

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