Template:Columns: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Zombie Man
m (+Cat:Formatting Templates)
imported>Sekoia
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly><div {{#if: {{{1|}}}| style="-moz-column-count:{{{1}}}; -webkit-column-count:{{{1}}}; column-count:{{{1}}} }};">{{{2}}}</div></includeonly><noinclude>{{Documentation|content=
<includeonly><div {{#if: {{{1|}}}| style="-moz-column-count:{{{1}}}; -webkit-column-count:{{{1}}}; column-count:{{{1}}} }};">{{{2}}}</div></includeonly><noinclude>{{Documentation}}</noinclude>
Use this to make a block of text show up as being in multiple columns. Useful for long lists with short items.
 
Usage:
 
<nowiki>{{</nowiki>columns{{!}}''number of columns''{{!}}
''text (usually a list)''
<nowiki>}}</nowiki>
 
[[Category:Templates|{{PAGENAME}}]][[Category:Formatting Templates]]
}}</noinclude>

Latest revision as of 19:08, 17 December 2011

[edit] [purge] Documentation

Usage

Use this to make a block of text show up as being in multiple columns. Useful for long lists with short items.

{{columns|number of columns|
text (usually a list)
}}

This does not work on some browsers, including MS Internet Explorer. Do not use this template in places where multiple columns are required. Use it only in places that would still work with a single column, but benefit from multiple columns when they are available.

Examples

{{columns|2|
* A
* B
* C
* D
* E
* F
}}
  • A
  • B
  • C
  • D
  • E
  • F
{{columns|3|
* A
* B
* C
* D
* E
* F
}}
  • A
  • B
  • C
  • D
  • E
  • F