From WikiChip
Difference between revisions of "Template:collist"

 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="wiki-ul-col{{{count|3}}} ul" style="display: inline-block; {{#if:{{{width|}}}|width:{{{width}}};}}{{#if:{{{center|}}}|margin-left: auto; margin-right: auto;}}{{{style|}}}">
+
<includeonly><div class="wiki-ul-col{{{count|3}}} {{#if: {{{no-list-type|}}}|wiki-ul-nostyle}}" style="display: inline-block; {{{style|}}}">
 
{{{1}}}
 
{{{1}}}
</div>
+
</div></includeonly><noinclude>
 +
Converts a list to columns:
 +
 
 +
<pre>
 +
{{collist
 +
| count = 3
 +
| width = XXX (optional)
 +
| style = XXX (optional)
 +
|
 +
* AA
 +
* BB
 +
* CC
 +
* DD
 +
* EE
 +
* FF
 +
* GG
 +
* HH
 +
}}
 +
</pre>
 +
 
 +
{{collist
 +
| count = 3
 +
|
 +
* AA
 +
* BB
 +
* CC
 +
* DD
 +
* EE
 +
* FF
 +
* GG
 +
* HH
 +
}}
 +
 
 +
</noinclude>

Latest revision as of 21:51, 19 July 2017

Converts a list to columns:

{{collist
| count = 3
| width = XXX (optional)
| style = XXX (optional)
|
* AA
* BB 
* CC
* DD
* EE
* FF
* GG
* HH
}}
  • AA
  • BB
  • CC
  • DD
  • EE
  • FF
  • GG
  • HH