Actions

Modèle

« Div col » : différence entre les versions

Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
<templatedata>
{{Début de colonnes
{
|class={{{class|}}}
    "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}}.",
|style1 = {{Oui non|1={{{small|}}}
    "params": {
  |oui = font-size: 90%;line-height:1.6;
        "cols": {
  |défaut = |non = |vide =
            "label": "cols",
  }}{{{style|}}}
            "description": "Specifies the number of columns.",
|marge = {{{margin|}}}
            "type": "string",
|écart = {{<includeonly>safesubst:</includeonly>#if: {{{colgap|}}} | {{{colgap|}}} | {{{3|}}} }}
            "default": "2",
|filet = {{Oui non|1={{{rules|}}}
            "aliases": ["1"],
  |défaut = {{{rules|}}}
            "required": false
  |oui = 1px solid #AAA
        },
  |non =  |vide =
        "colwidth": {
  }}
            "label": "colwidth",
|largeur = {{<includeonly>safesubst:</includeonly>#if:{{{colwidth|}}} | {{{colwidth|}}} | {{{2|}}} }}
            "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.",
|nombre = {{<includeonly>safesubst:</includeonly>#if: {{{cols|}}} | {{{cols|}}} | {{<includeonly>safesubst:</includeonly>#if: {{{1|}}} | {{{1|}}} |  {{<includeonly>safesubst:</includeonly>#if:{{{colwidth|}}}{{{2|}}} | | 2 }} }} }}
            "type": "string",
}}<!--
            "aliases": ["2"],
-->{{<includeonly>safesubst:</includeonly>#if: {{{content|}}}
            "required": false
| {{{content|}}}{{Fin de colonnes}}
        },
}}
        "colgap": {
            "label": "colgap",
            "description": "Specifies the width of gaps between columns, must be non-zero if rules are used (the default is 1em if rules is set, otherwise don't set any gap).",
            "type": "string",
            "aliases": ["3"],
            "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>
[[Category:Modèle]]
</noinclude>

Version du 21 juillet 2020 à 13:28