Template:Columns: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Oh, this is a thing we can do. http://www.mediawiki.org/wiki/Help:Lists#Multi-column_lists) |
||
Line 1: | Line 1: | ||
<includeonly><div style="column-count:{{{1}}};-moz-column-count:{{{1}}};-webkit-column-count:{{{1}}}; {{#if:{{{width|}}}|width: {{{width}}};}}"> | |||
{{{2}}} | |||
</div></includeonly><noinclude> | |||
{ | |||
==Info== | ==Info== | ||
Line 12: | Line 9: | ||
! Parameter || Mandatory || Default || Detailed description | ! Parameter || Mandatory || Default || Detailed description | ||
|- | |- | ||
! 1 | ! 1 | ||
| '''Yes''' || || | | '''Yes''' || || Number of columns. | ||
|- | |- | ||
! | ! 2 | ||
| | | '''Yes''' || || Content to be split. | ||
|- | |- | ||
! width | ! width | ||
| No || | | No || || How wide the entire box of content will be. | ||
|} | |} | ||
==Skeleton== | ==Skeleton== | ||
<pre> | <pre> | ||
{{columns| | {{columns|<cols> | ||
| | | | ||
< | <content> | ||
}} | }} | ||
</pre> | </pre> | ||
Line 40: | Line 31: | ||
! Code || Result | ! Code || Result | ||
|- | |- | ||
| <pre>{{columns | | <pre>{{columns|2 | ||
| | | | ||
*Item 1 | *Item 1 | ||
*Item 2 | *Item 2 | ||
*Item 3 | *Item 3 | ||
*Item 4 | *Item 4 | ||
*Item 5 | *Item 5 | ||
*Item 6 | *Item 6 | ||
}}</pre> | }}</pre> | ||
| {{columns | | {{columns|2 | ||
| | | | ||
*Item 1 | *Item 1 | ||
*Item 2 | *Item 2 | ||
*Item 3 | *Item 3 | ||
*Item 4 | *Item 4 | ||
*Item 5 | *Item 5 |
Revision as of 06:05, April 6, 2015
Info
Use this to split a list of items into columns.
Parameter | Mandatory | Default | Detailed description |
---|---|---|---|
1 | Yes | Number of columns. | |
2 | Yes | Content to be split. | |
width | No | How wide the entire box of content will be. |
Skeleton
{{columns|<cols> | <content> }}
Examples
Code | Result |
---|---|
{{columns|2 | *Item 1 *Item 2 *Item 3 *Item 4 *Item 5 *Item 6 }} |
|