Template:columns: Difference between revisions

From Laenkea
Jump to navigation Jump to search
(Created page with "<includeonly>{{#if: {{{width|}}} | <div style="column-width: {{{width}}}; -webkit-column-width: {{{width}}}; -moz-column-width: {{{width}}};"> | {{#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></noinclude>")
 
No edit summary
Line 5: Line 5:
}}
}}
{{{1}}}
{{{1}}}
</div></includeonly><noinclude></noinclude>
</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
}}
 
</noinclude>

Revision as of 13:16, 1 February 2023

Usage

Default setting:

{{columns|
* abc0123
* def456
* ghi78
* jkl9
* mn
* opq
* rst
* uvw
* xyz
}}

Yields:

  • abc0123
  • def456
  • ghi78
  • jkl9
  • mn
  • opq
  • rst
  • uvw
  • xyz

Specified number of columns:

{{columns|number=3|
* abc0123
* def456
* ghi78
* jkl9
* mn
* opq
* rst
* uvw
* xyz
}}

Yields:

  • abc0123
  • def456
  • ghi78
  • jkl9
  • mn
  • opq
  • rst
  • uvw
  • xyz

Specified width:

{{columns|width=16em|
* abc0123
* def456
* ghi78
* jkl9
* mn
* opq
* rst
* uvw
* xyz
}}

Yields:

  • abc0123
  • def456
  • ghi78
  • jkl9
  • mn
  • opq
  • rst
  • uvw
  • xyz