Template:Div col: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="Div col/ | <includeonly><templatestyles src="Div col/styles.css"/><!-- | ||
--><div class="div-col {{#ifeq:{{{rules|}}}|yes|div-col-rules}} {{{class|}}}" <!-- | --><div class="div-col {{#ifeq:{{{rules|}}}|yes|div-col-rules}} {{{class|}}}" <!-- | ||
-->{{#if:{{{colwidth|}}}{{{gap|}}}{{{style|}}}|<!-- | -->{{#if:{{{colwidth|}}}{{{gap|}}}{{{style|}}}|<!-- | ||
Line 5: | Line 5: | ||
-->}}><!-- | -->}}><!-- | ||
-->{{#if:{{{content|}}}|{{{content}}}</div>}}<!-- | -->{{#if:{{{content|}}}|{{{content}}}</div>}}<!-- | ||
--></includeonly> | --></includeonly><noinclude> | ||
See: https://www.mediawiki.org/wiki/Template:Div_col | |||
Allows a list to automatically span across multiple columns, fitting to screen dimensions. | |||
Example: | |||
<pre> | |||
{{div col}} | |||
* a | |||
* b | |||
* c | |||
* d | |||
* e | |||
* f | |||
* g | |||
* h | |||
{{div col end}} | |||
</pre> | |||
Result: | |||
{{div col}} | |||
* a | |||
* b | |||
* c | |||
* d | |||
* e | |||
* f | |||
* g | |||
* h | |||
{{div col end}} | |||
</noinclude> |
Revision as of 02:09, 5 March 2023
See: https://www.mediawiki.org/wiki/Template:Div_col
Allows a list to automatically span across multiple columns, fitting to screen dimensions.
Example:
{{div col}} * a * b * c * d * e * f * g * h {{div col end}}
Result:
- a
- b
- c
- d
- e
- f
- g
- h