Template:Div col: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "<includeonly><templatestyles src="Div col/styles.css"/><!-- --><div class="div-col {{#ifeq:{{{rules|}}}|yes|div-col-rules}} {{{class|}}}" <!-- -->{{#if:{{{colwidth|}}}{{{gap|}}}{{{style|}}}|<!-- -->style="{{#if:{{{colwidth|}}}|column-width: {{{colwidth}}};}}{{#if:{{{gap|}}}|column-gap: {{{gap}}};}}{{#if:{{{style|}}}|{{{style}}}}}"<!-- -->}}><!-- -->{{#if:{{{content|}}}|{{{content}}}</div>}}<!-- --></includeonly>")
 
(Use documentation/template demo template, added category)
 
(4 intermediate revisions by 2 users not shown)
Line 5: Line 5:
-->}}><!--
-->}}><!--
-->{{#if:{{{content|}}}|{{{content}}}</div>}}<!--
-->{{#if:{{{content|}}}|{{{content}}}</div>}}<!--
--></includeonly>
--></includeonly><noinclude>{{Documentation|content=
See: https://www.mediawiki.org/wiki/Template:Div_col
 
Allows a list to automatically span across multiple columns, fitting to screen dimensions.
 
Example:
{{Template demo
| style = list
| <nowiki>
{{div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
</nowiki>
}}
[[Category:Templates]]
</noinclude>

Latest revision as of 11:29, 19 January 2025

{{Documentation|content= See: https://www.mediawiki.org/wiki/Template:Div_col

Allows a list to automatically span across multiple columns, fitting to screen dimensions.

Example:

Markup
{{div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{div col end}}
Renders as
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h