Template:Columns: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
m (Picky.)
(Added manual mode.)
Line 1: Line 1:
<includeonly><div style="column-count:{{{1}}};-moz-column-count:{{{1}}};-webkit-column-count:{{{1}}}; {{#if:{{{width|}}}|width: {{{width}}};}}">
<includeonly>{{#ifeq:{{{1|}}}|0|{| style="width: {{{width|90%}}};"
| style="width: {{#if:{{{4|}}}| {{#if:{{{5|}}}| 25% | 33% }} | 50% }}" | {{{2}}}
| style="width: {{#if:{{{4|}}}| {{#if:{{{5|}}}| 25% | 33% }} | 50% }}" | {{{3}}}{{#if:{{{4|}}}|
{{!}} style="width: {{#if:{{{5|}}}| 25% | 33% }}" {{!}} {{{4}}}}}{{#if:{{{5|}}}|
{{!}} style="width: 25%" {{!}} {{{5}}}}}
|}
|<div style="column-count:{{{1}}};-moz-column-count:{{{1}}};-webkit-column-count:{{{1}}}; {{#if:{{{width|}}}|width: {{{width}}};}}">
{{{2}}}
{{{2}}}
</div></includeonly><noinclude>
</div>
}}</includeonly><noinclude>


==Info==
==Info==
Use this to split a list of items into columns.
Use this to split a list of items into columns. You can have the content be split automatically or split it yourself. Manual should only be used in cases where automatic would break incorrectly.


{| class="wikitable"
{| class="wikitable"
Line 10: Line 17:
|-
|-
! 1
! 1
| '''Yes''' ||  || Number of columns.
| '''Yes''' ||  ||
*Automatic: Number of columns.
*Manual: Give this the value 0.
|-
|-
! 2
! 2
| '''Yes''' ||  || Content to be split.
| '''Yes''' ||  ||
*Automatic: Content to be split
*Manual: First column.
|-
! 3
| Depends ||  ||
*Automatic: N/A
*Manual: Second column.
|-
! 4, 5
| No ||  ||
*Automatic: N/A
*Manual: Third and fourth columns.
|-
|-
! width
! width
Line 38: Line 59:
*Item 2
*Item 2
*Item 3
*Item 3
*Item 4
*Item 5
*Item 6
}}
|-
| <pre>{{columns|0|'''Number team'''
*Item 1
*Item 2
*Item 3
|'''Column team'''
*Item 4
*Item 5
*Item 6
}}</pre>
| {{columns|0|'''Number team'''
*Item 1
*Item 2
*Item 3
|'''Column team'''
*Item 4
*Item 4
*Item 5
*Item 5

Revision as of 07:03, April 6, 2015


Info

Use this to split a list of items into columns. You can have the content be split automatically or split it yourself. Manual should only be used in cases where automatic would break incorrectly.

Parameter Mandatory Default Detailed description
1 Yes
  • Automatic: Number of columns.
  • Manual: Give this the value 0.
2 Yes
  • Automatic: Content to be split
  • Manual: First column.
3 Depends
  • Automatic: N/A
  • Manual: Second column.
4, 5 No
  • Automatic: N/A
  • Manual: Third and fourth columns.
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
}}
style="width: 90%;"
{{columns|0|'''Number team'''
*Item 1
*Item 2
*Item 3
|'''Column team'''
*Item 4
*Item 5
*Item 6
}}
{