Template:Columns-next
| This template uses TemplateStyles: |
Use this template immediately before a list, to divide the list into multiple columns that wrap the screen responsively. To prevent a section of a list being broken, the template {{no col break}} can be used.
This template was created to support editing of multi-column lists in VisualEditor as an alternative to {{Div col}} and {{Div col end}} (which use an unbalanced <div> element, which forces the intermediary content into source mode), and {{Columns-list}} (which takes the list as raw wikitext parameter).
Usage
[edit]Basic usage
[edit]{{Columns-next}}
* a
* b
* c
* d
* e
* f
* g
* h
- a
- b
- c
- d
- e
- f
- g
- h
Selective usage
[edit]* Foo
* Bar
* Baz
* Quux
Text here.
{{Columns-next}}
* lorem
* ipsum
* dolor
* sit
* amet
* consectetur
More text here.
* duis
* aute
* irure
* dolor
* in
* reprehenderit
- Foo
- Bar
- Baz
- Quux
Text here.
- lorem
- ipsum
- dolor
- sit
- amet
- consectetur
More text here.
- duis
- aute
- irure
- dolor
- in
- reprehenderit
TemplateData
[edit]TemplateData for Columns-next
Divide the next list into multiple columns that wrap the screen responsively.
| Parameter | Description | Type | Status | |||
|---|---|---|---|---|---|---|
| No parameters specified | ||||||
See also
[edit]Column-generating template families
[edit]The templates listed here are not interchangeable. For example, using {{col-float}} with {{col-end}} instead of {{col-float-end}} would leave a <div>...</div> open, potentially harming any subsequent formatting.
| Type | Family | Handles wiki table code?† |
Responsive/ mobile suited |
Start template | Column divider | End template |
|---|---|---|---|---|---|---|
| Float | "col-float" | Yes | Yes | {{col-float}} | {{col-float-break}} | {{col-float-end}} |
| "columns-start" | Yes | Yes | {{columns-start}} | {{column}} | {{columns-end}} | |
| Columns | "div col" | Yes | Yes | {{div col}} | instead use {{no col break}} | {{div col end}} |
| "columns-list" | No | Yes | {{columns-list}} (wraps div col) | — | — | |
| Flexbox | "flex columns" | No | Yes | {{flex columns}} | — | — |
| Table | "col" | Yes | No | {{col-begin}}, {{col-begin-fixed}} or {{col-begin-small}} |
{{col-break}} or {{col-2}} .. {{col-5}} |
{{col-end}} |
† Can the template handle the basic wiki markup {| | || |- |} used to create tables? If not, special templates that produce these elements (such as {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}}) or HTML tags (<table>...</table>, <tr>...</tr>, etc.) need to be used instead.