w:c:strategywiki>Moydow m (no, that just broke it) |
m (10 revisions imported: Imported from https://strategywiki.org/) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div style=" | <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 | ||
Simple two-column list: | Simple two-column list: | ||
<pre>{{listcol|list= | <pre>{{listcol|list= | ||
Line 16: | Line 17: | ||
# three | # three | ||
#four}} | #four}} | ||
Three-column list: | Three-column list: | ||
<pre>{{listcol|3|list= | <pre>{{listcol|3|list= | ||
Line 26: | Line 27: | ||
# two | # two | ||
# three}} | # three}} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Latest revision as of 18:27, 28 October 2023
This template uses TemplateStyles: |
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}}
- one
- two
- three
- four
Three-column list:
{{listcol|3|list= # one # two # three}}
- one
- two
- three