Difference between revisions of "Multicol"
From Sega Retro
(Created page with '<includeonly><div style="-moz-column-count:{{{cols|2}}}; -webkit-column-count:{{{cols|2}}}; column-count:{{{cols|2}}}; {{#if:{{{colwidth|}}}|-moz-column-width:{{{colwidth}}}; -we…') |
Scarred Sun (talk | contribs) m (Protected "Template:Multicol": High-traffic template ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><div style="-moz-column-count:{{{cols|2}}}; -webkit-column-count:{{{cols|2}}}; column-count:{{{cols|2}}}; {{#if:{{{colwidth|}}}|-moz-column-width:{{{colwidth}}}; -webkit-column-width:{{{colwidth}}}; column-width:{{{colwidth}}} | }}"> | + | <includeonly><div class="mobile-columns" style="-moz-column-count:{{{cols|2}}}; -webkit-column-count:{{{cols|2}}}; column-count:{{{cols|2}}}; {{#if:{{{colwidth|}}}|-moz-column-width:{{{colwidth}}}; -webkit-column-width:{{{colwidth}}}; column-width:{{{colwidth}}} | }}">{{{1}}}</div></includeonly><noinclude> |
− | {{{1}}} | ||
− | </div></includeonly><noinclude> | ||
This is a template to split long lists up into columns. | This is a template to split long lists up into columns. | ||
Line 13: | Line 11: | ||
</pre> | </pre> | ||
cols and colwidth are optional, but must be placed '''after''' the list contents. Default is 2 cols. | cols and colwidth are optional, but must be placed '''after''' the list contents. Default is 2 cols. | ||
− | [[Category:Sega Retro | + | [[Category:Sega Retro templates|{{PAGENAME}}]] |
</noinclude> | </noinclude> |
Revision as of 19:33, 7 November 2020
This is a template to split long lists up into columns.
Usage
{{Multicol| * List contents go here | cols= | colwidth= }}
cols and colwidth are optional, but must be placed after the list contents. Default is 2 cols.