Template:Columns: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia
(imported from wikipedia's template column-list)
 
imported>Sekoia
No edit summary
 
(3 intermediate revisions by 2 users 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]]
}}</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