Jump to content

Template:Columns: Difference between revisions

updated for modern browsers (moz- and webkit- no longer needed), and changed template to fully enclose the multi-column text in a div tag instead of only supplying the style for a manual div tag
m (+cat)
(updated for modern browsers (moz- and webkit- no longer needed), and changed template to fully enclose the multi-column text in a div tag instead of only supplying the style for a manual div tag)
 
Line 1: Line 1:
<includeonly>-moz-column-count: {{{1|2}}}; -webkit-column-count: {{{1|2}}}; column-count: {{{1|2}}};</includeonly><noinclude>
<includeonly><div style="column-count:{{{1|2}}};>{{{2}}}</div></includeonly><noinclude>
This template displays text in the number of columns specified, or two columns by default. This does not work in IE up to 9 and Opera up to 11, but it won't do any harm to those browsers either. Typically used for styling reference lists (citations) in articles so the long lines of smaller text are shortened and thus easier to read.
This template displays text in the number of columns specified, or two columns by default. Typically used for styling reference lists (citations) in articles, because it makes wide lines of text shorter and thus easier to read.
 
Sample usage: <tt><nowiki>{{Columns|3|Many lines of text go here, or a call to {{Reflist}}.}}</nowiki></tt>
 
[[Category:Basic formatting templates‎]]
[[Category:Basic formatting templates‎]]
</noinclude>
</noinclude>