Template:Div col: Difference between revisions

1,194 bytes added ,  4 years ago
no edit summary
(Created page with "<includeonly><div class="div-col columns column-width" style="{{column-width|{{{colwidth|30em}}}}} <!-- -->{{#if: {{{gap|}}} | {{column-gap|{{{gap}}}}} }}<!-- -->{{#swit...")
 
No edit summary
 
Line 1:
<includeonly><div class="div-col columns column-width" style="{{column-width|{{{colwidth|30em}}}}} <!--
-->{{#if: {{{gapcolwidth|{{{2|}}}}}}
| {{column-gap|{{{gap}}}}} }}<!--width
| column-count column-count-{{{cols|{{{1|2}}}}}} }}" style="<!--
-->{{#switch: {{{rules|}}}
-->{{#ifeqif: {{{smallcolwidth|{{{2|}}}|yes}}}
| = <!--empty-->
| yes = {{column-rulewidth|{{{colwidth|{{{2}}}}}}}}
| {{Columncolumn-rulecount|{{{rulescols|{{{1|2}}}}}}}} }} <!--
-->{{#switchif: {{{rules|}}}
| {{#ifeq:{{{rules}}}|yes
| {{column-rule}}
| {{column-rule|{{{rules}}}}} }} }} <!--
-->{{#ifeq: {{{small|}}}|yes
| font-size:90%; }} <!--
Line 11 ⟶ 15:
| {{{style}}} }}"><!--
-->{{#if: {{{content|}}}
|{{{content}}}</div>}}</includeonly><noinclude>
</div>}}<!-- Inventory how many pages use small=yes
-->{{#ifeq: {{{small|}}}|yes
|[[Category:Pages using div col with small parameter]]}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using div col with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Div col]] with unknown parameter "_VALUE_"; use colwidth= to specify column size |ignoreblank=y | colwidth | content | gap | rules | small | style }}<noinclude>
{{Documentation}}
 
==TemplateData==
{{TemplateDataHeader}}
 
<templatedata>
{
"description": "Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is closed with {{div col end}}.",
"params": {
"cols": {
"label": "cols",
"description": "Specifies the number of columns.",
"type": "string",
"default": "2",
"aliases": ["1"],
"required": false
},
"colwidth": {
"label": "colwidth",
"description": "Specifies the width of columns, and determines dynamically the number of columns based on screen width; more columns will be shown on wider displays. This overrides the 'cols' setting.",
"type": "string",
"aliases": ["2"],
"required": false
},
"rules": {
"label": "rules",
"description": "Produces vertical rules between the columns if set to yes.",
"type": "string",
"required": false
},
"small": {
"label": "small",
"description": "Specifies small font size (90%) if set to yes.",
"type": "string",
"required": false
},
"style": {
"label": "style",
"description": "Specify any custom styling.",
"type": "string",
"required": false
}
}
}
</templatedata>
 
</noinclude>
850

edits