Template:Div col: Difference between revisions
Template page
More actions
←Created page with '<includeonly><div class="div-col columns <!-- -->{{#if: {{{colwidth|{{{2|}}}}}} | column-width | column-count column-count-{{{cols|{{#if:1|{{{1|2}}}}}}...' |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>< | <includeonly><templatestyles src="Div col/styles.css"/><!-- | ||
--><div class="div-col {{#ifeq:{{{small|}}}|yes|div-col-small}} {{#ifeq:{{{rules|}}}|yes|div-col-rules}} {{{class|}}}" <!-- | |||
-->{{#if:{{{cols|{{{1|}}}}}}{{{colwidth|{{{2|}}}}}}{{{gap|}}}{{{style|}}}|<!-- | |||
-->style="{{#if:{{{cols|{{{1|}}}}}}|column-count:{{{cols|{{{1|}}}}}};}} {{#if:{{{colwidth|{{{2|}}}}}}|column-width:{{{colwidth|{{{2|}}}}}};}} {{#if:{{{gap|}}}|column-gap:{{{gap}}};}} {{#if:{{{style|}}}|{{{style}}}}}"<!-- | |||
-->}}><!-- | |||
-->{{#if:{{{content|}}}|{{{content}}}</div>}}<!-- Inventory how many pages use small=yes | |||
-->{{#ifeq:{{{small|}}}|yes|[[Category:Pages using div col with small parameter]]}}</includeonly><noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 15:55, 20 March 2021
This documentation is transcluded from Template:Div col/doc.
This template creates a multi-column list layout using CSS columns. It is paired with {{Div col end}}.
Usage
{{Div col | cols = 3 }}
* Item 1
* Item 2
{{Div col end}}
Parameters
1/cols- number of columns
colwidth- minimum column width (overrides column count)
gap- gap between columns
style- additional CSS style
smallyesfor smaller fontcontent- inline content between the tags
class- additional CSS classes