Template:Div col/doc: Difference between revisions

no edit summary
(Created page with "<!----------------------------------------------------------------------------- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE ---------------------------...")
 
No edit summary
 
Line 139: Line 139:
* h
* h
{{Div col end}}
{{Div col end}}
==TemplateData==
{{TemplateDataHeader}}
{{#switch: {{BASEPAGENAME}}
|Div col=<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
        },
        "gap": {
            "label": "gap",
            "description": "Specifies the space between the content of adjacent columns.",
            "type": "string",
            "required": false
        },
        "style": {
            "label": "style",
            "description": "Specifies any custom styling.",
            "type": "string",
            "required": false
        }
    }
}
</templatedata>
|Div col end=<templatedata>
{
    "description": "Ends a multi-column list started by {{div col}}. It takes no parameters.",
    "params": {
    }
}
</templatedata>
}}
875

edits