Template:Columns: Difference between revisions

From Pikipedia, the Pikmin wiki
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:
{| style="width: {{{width|90%}}};"
<includeonly><div style="column-count:{{{1}}};-moz-column-count:{{{1}}};-webkit-column-count:{{{1}}}; {{#if:{{{width|}}}|width: {{{width}}};}}">
| style="width: {{#if:{{{3|}}}| {{#if:{{{4|}}}| 25% | 33% }} | 50% }}" | {{{1}}}
{{{2}}}
| style="width: {{#if:{{{3|}}}| {{#if:{{{4|}}}| 25% | 33% }} | 50% }}" | {{{2}}}{{#if:{{{3|}}}|
</div></includeonly><noinclude>
{{!}} style="width: {{#if:{{{4|}}}| 25% | 33% }}" {{!}} {{{3}}}}}{{#if:{{{4|}}}|
{{!}} style="width: 25%" {{!}} {{{4}}}}}
|}<noinclude>


==Info==
==Info==
Line 12: Line 9:
! Parameter || Mandatory || Default || Detailed description
! Parameter || Mandatory || Default || Detailed description
|-
|-
! 1 - 2
! 1
| '''Yes''' ||  || First and second columns.
| '''Yes''' ||  || Number of columns.
|-
|-
! 3 - 4
! 2
| No ||  || Third and fourth columns.
| '''Yes''' ||  || Content to be split.
|-
|-
! width
! width
| No || 90% || How wide the entire "table" will be.
| No || || How wide the entire box of content will be.
|}
|}


==Skeleton==
==Skeleton==
<pre>
<pre>
{{columns| width=<width>
{{columns|<cols>
|
|
<col 1>
<content>
|
<col 2>
|
<col 3>
|
<col 4>
}}
}}
</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
}}
  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5
  • Item 6