|
|
Line 1: |
Line 1: |
| <includeonly>{{#if: {{{width|}}} | <div style="column-width: {{{width}}}; -webkit-column-width: {{{width}}}; -moz-column-width: {{{width}}};"> | | | <includeonly>{{#invoke:columns|show}}</includeonly><noinclude>{{documentation}}</noinclude> |
| {{#if: {{{number|}}} | <div style="column-count: {{{number}}}; -webkit-column-count: {{{number}}}; -moz-column-count: {{{number}}};"> |
| |
| <div style="column-width: 20em; -webkit-column-width: 20em; -moz-column-width: 20em;">
| |
| }}
| |
| }}
| |
| {{{1}}}
| |
| </div></includeonly><noinclude>
| |
| == Usage ==
| |
| '''Default setting:'''
| |
| <pre>{{columns|
| |
| * abc0123
| |
| * def456
| |
| * ghi78
| |
| * jkl9
| |
| * mn
| |
| * opq
| |
| * rst
| |
| * uvw
| |
| * xyz
| |
| }}</pre>
| |
| '''Yields:'''
| |
| {{columns| | |
| * abc0123
| |
| * def456
| |
| * ghi78
| |
| * jkl9
| |
| * mn
| |
| * opq
| |
| * rst
| |
| * uvw
| |
| * xyz}}
| |
| | |
| '''Specified number of columns: '''
| |
| <pre>{{columns|number=3|
| |
| * abc0123
| |
| * def456
| |
| * ghi78
| |
| * jkl9
| |
| * mn
| |
| * opq
| |
| * rst
| |
| * uvw
| |
| * xyz
| |
| }}</pre>
| |
| '''Yields:'''
| |
| {{columns|number=3|
| |
| * abc0123
| |
| * def456
| |
| * ghi78
| |
| * jkl9
| |
| * mn
| |
| * opq
| |
| * rst
| |
| * uvw
| |
| * xyz
| |
| }}
| |
| | |
| '''Specified width:'''
| |
| <pre>{{columns|width=16em|
| |
| * abc0123
| |
| * def456
| |
| * ghi78
| |
| * jkl9
| |
| * mn
| |
| * opq
| |
| * rst
| |
| * uvw
| |
| * xyz
| |
| }}</pre>
| |
| '''Yields:'''
| |
| {{columns|width=16em|
| |
| * abc0123
| |
| * def456
| |
| * ghi78
| |
| * jkl9
| |
| * mn
| |
| * opq
| |
| * rst
| |
| * uvw
| |
| * xyz
| |
| }}
| |
| [[Category:Templates]]</noinclude>
| |