Template:Div col: Difference between revisions

From Vigyanwiki
Template>Edokter
(Add {{{content}}} param, for use with semi-merging {{columns-list}})
m (68 revisions imported from alpha:Template:Div_col)
 
(26 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<includeonly><div class="div-col columns <!--
<includeonly><templatestyles src="Div col/styles.css"/><!--
-->{{#if: {{{colwidth|{{{2|}}}}}}
--><div class="div-col {{#ifeq:{{{small|}}}|yes|div-col-small}} {{#ifeq:{{{rules|}}}|yes|div-col-rules}} {{{class|}}}" <!--
    | column-width
-->{{#if:{{{colwidth|}}}{{{gap|}}}{{{style|}}}|<!--
    | column-count column-count-{{{cols|{{{1|2}}}}}} }}" style="<!--
-->style="{{#if:{{{colwidth|}}}|column-width: {{{colwidth}}};}}{{#if:{{{gap|}}}|column-gap: {{{gap}}};}}{{#if:{{{style|}}}|{{{style}}}}}"<!--
-->{{#if: {{{colwidth|{{{2|}}}}}}
-->}}><!--
    | {{column-width|{{{colwidth|{{{2}}}}}}}}
-->{{#if:{{{content|}}}|{{{content}}}</div>}}<!-- Inventory how many pages use small=yes
    | {{column-count|{{{cols|{{{1|2}}}}}}}} }} <!--
-->{{#ifeq:{{{small|}}}|yes|}}<!--
-->{{#if: {{{rules|}}}
--></includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|}}|preview=Page using [[Template:Div col]] with unknown parameter "_VALUE_"; use colwidth= to specify column size |ignoreblank=y | class | colwidth | content | gap | rules | small | style }}<noinclude>
    | {{#ifeq:{{{rules}}}|yes
      | {{column-rule}}
      | {{column-rule|{{{rules}}}}} }} }} <!--
-->{{#ifeq: {{{small|}}}|yes
    | font-size:90%; }} <!--
-->{{#if: {{{style|}}}
    | {{{style}}} }}"><!--
-->{{#if: {{{content|}}}
    |{{{content}}}</div>}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>


==TemplateData==
[[Category:Lua-based templates]]
{{TemplateDataHeader}}
[[Category:Multi-column templates]]
 
[[Category:Pages using div col with small parameter]]
<templatedata>
[[Category:Templates that add a tracking category]]
{
[[Category:Templates using 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}}.",
[[Category:Templates using under-protected Lua modules]]
    "params": {
[[Category:Wikipedia fully protected templates|Div col]]
        "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>

Latest revision as of 14:06, 12 December 2022

Lua error in Module:TNT at line 182: Missing Commons dataset I18n/Module:TNT.tab.