Jump to content

Template:Cols: Difference between revisions

From Ferret Software Wiki
Create cols template
 
Gorasuhl (talk | contribs)
removed deprecated CSS classes, adapted nomobile and mobileonly compatibility from the original source
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly><div class="nomobile" style="-moz-column-count: {{{1}}}; -webkit-column-count: {{{1}}}; column-count: {{{1}}};">{{{2}}}</div><div class="mobileonly">{{{2}}}</div></includeonly><noinclude>
<includeonly><templatestyles src="Template:Cols/styles.css" /><div class="cols-nomobile" style="column-count: {{{1}}};">{{{2}}}</div><div class="cols-mobileonly">{{{2}}}</div></includeonly><noinclude>
{{doc}}
{{/doc}}
[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Latest revision as of 17:20, 3 July 2025

Documentation

This template formats the text into the specified number of columns.

Usage

{{cols|<# of columns>|<content>}}

Especially useful to wrap long lists of items into multiple columns.

Source

This Template is adapted from Book of Travelers wiki - Template:Cols (Rev.: 12 September 2019) Retrieved 3 July 2025