Template:columns: Difference between revisions

Jump to navigation Jump to search
Replaced content with "<includeonly>{{#invoke:columns|show}}</includeonly><noinclude>{{documentation}}</noinclude>"
No edit summary
(Replaced content with "<includeonly>{{#invoke:columns|show}}</includeonly><noinclude>{{documentation}}</noinclude>")
Tag: Replaced
 
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>

Navigation menu