Columns – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Template creation) |
Lou Montana (talk | contribs) m (Add CSS fix) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}} | <includeonly>{{#if:{{{1|}}} | ||
| {{#if:{{{2|}}} | | {{#if:{{{2|}}} | ||
| <div style=" | | <div class="columns" style="column-count: {{{1|2}}}">{{{2|}}}</div> | ||
| -no columns content defined- | | -no columns content defined- | ||
}} | }} |
Revision as of 11:13, 5 August 2021
Creates CSS columns.
This template is used on these pages.
Usage
{{Columns|cols|content}}
- cols: number of columns
- content: to be split in columns
Code | Result |
---|---|
{{Columns}} | -no columns count defined- |
{{Columns|3}} | -no columns content defined- |
{{Columns||
* contentA
* contentB
* contentC
* contentD
}}
|
-no columns count defined- |
{{Columns|3|
* contentA
* contentB
* contentC
* contentD
}}
|
|