Template:Columns: Difference between revisions
From Pikmin Fanon
(Created page with "<includeonly>{{#ifeq:{{{1|}}}|0| {{{!}} style="width: {{{width|90%}}};" {{!}} style="width: {{#if:{{{4|}}}| {{#if:{{{5|}}}| 25% | 33% }} | 50% }}; vertical-align: top;" {{!}}...") |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
{{!}} style="width: 25%; vertical-align: top;" {{!}} {{{5}}}}} | {{!}} style="width: 25%; vertical-align: top;" {{!}} {{{5}}}}} | ||
{{!}}} | {{!}}} | ||
|<div style="column-count:{{{1}}};-moz-column-count:{{{1}}};-webkit-column-count:{{{1}}}; {{#if:{{{width|}}}|width: {{{width}}};}}"> | |<div style="column-count: {{{1}}};-moz-column-count: {{{1}}};-webkit-column-count: {{{1}}}; {{#if:{{{width|}}}|width: {{{width}}};}}"> | ||
{{{2}}} | {{{2}}} | ||
</div> | </div> | ||
Line 12: | Line 12: | ||
==Info== | ==Info== | ||
Use this to split a list of items into columns. | Use this to split a list of items into columns. The content will be split automatically but can be split manually. Manual should only be used in cases where automatic wouldn't work right. | ||
This template should be, not must be, used if a list has six or more items. | |||
==Parameters== | |||
{| class="wikitable" | {| class="wikitable" | ||
! Parameter || Mandatory || Default || Detailed description | ! Parameter || Mandatory || Default || Detailed description |
Latest revision as of 12:56, 8 September 2023
Info
Use this to split a list of items into columns. The content will be split automatically but can be split manually. Manual should only be used in cases where automatic wouldn't work right.
This template should be, not must be, used if a list has six or more items.
Parameters
Parameter | Mandatory | Default | Detailed description |
---|---|---|---|
1 | Yes |
| |
2 | Yes |
| |
3 | Depends |
| |
4, 5 | No |
| |
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 }} |
| ||
{{columns|0|'''Number team''' *Item 1 *Item 2 *Item 3 |'''Column team''' *Item 4 *Item 5 *Item 6 }} |
|