Template:Div col: Difference between revisions

From Frontierpedia, the Microsoft Agent encyclopedia
en>Edokter
(Not needed; performance hit.)
en>Salix alba
(template data)
Line 15: Line 15:
     | {{{style}}} }}"></includeonly><noinclude>
     | {{{style}}} }}"></includeonly><noinclude>
{{Documentation}}
{{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>
</noinclude>

Revision as of 07:18, 9 August 2013

TemplateData

Template:TemplateDataHeader

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}}.

Template parameters

ParameterDescriptionTypeStatus
colscols 1

Specifies the number of columns.

Default
2
Stringoptional
colwidthcolwidth 2

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.

Stringoptional
rulesrules

Produces vertical rules between the columns if set to yes.

Stringoptional
smallsmall

Specifies small font size (90%) if set to yes.

Stringoptional
stylestyle

Specify any custom styling.

Stringoptional