Multicol-break
From DramaWiki
Purpose
With the {{multicol}} / {{multicol-break}} / {{multicol-end}} templates you can format text into multiple columns by starting a new column within the text section. The multi-column text is started with the {{multicol}} template. A new column is started with {{multicol-break}}. The last column is closed with the {{multicol-end}} template.
Usage
{{multicol}} This text appears in the first column. {{multicol-break}} This text appears in the second column. {{multicol-break}} This text appears in the third column. {{multicol-end}}
displays as:
This text appears in the first column. |
This text appears in the second column. |
This text appears in the third column. |
Parameters
{{multicol}} has two optional parameters:
- the overall width of the set of columns (default: 1=100%)
- the width of the "gutter", the space between the columns (default: 2=20px)
{{multicol-break}} has one optional parameter:
- the width of the "gutter" (default: 1=20px)
For example, to create a multi-column section that is only 50% the width of the page, using a 40px column space:
{{multicol|50%|40px}} This text appears in the first column. {{multicol-break|40px}} This text appears in the second column. {{multicol-break|40px}} This text appears in the third column. {{multicol-end}}
displays as:
This text appears in the first column. |
This text appears in the second column. |
This text appears in the third column. |
See also
- {{multicolumntext}} autoformatted multi-column text using CSS3 columns
- DramaWiki:Multi-column text help page with some examples