Ad placeholder

Template:Div col: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><templatestyles src="Div col/stylesx.css"/><!--
<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>

Navigation menu