Template:MP link/doc: Difference between revisions

https://support.wiki.gg>RheingoldRiver
(Adding default set of pages)
 
https://support.wiki.gg>Deleted user 1gWcT7XbLNhUaEEgNxWqUKyA
(Copied from dlw:Special:Diff/1903)
Line 7: Line 7:
<templatedata>
<templatedata>
{
{
    "description": {
"description": {
        "en": "Creates stylized and formatted links on the main page."
"en": "Creates stylized and formatted links on the main page."
    },
},
    "format": "inline",
"format": "inline",
    "params": {
"params": {
        "1": {
"1": {
            "label": {
"label": {
                "en": "Text"
"en": "Text"
            },
},
            "description": {
"description": {
                "en": "The text to display. If the link parameter is not given, this will also be the link target."
"en": "The text to display. If the link parameter is not given, this will also be the link target."
            },
},
            "required": true,
"example": "Stuff",
            "example": "Stuff",
"type": "string",
            "type": "string"
"suggested": true
        },
},
        "link": {
"link": {
            "label": {
"label": {
                "en": "Link"
"en": "Link"
            },
},
            "description": {
"description": {
                "en": "The target page for the link, if different than the display text."
"en": "The target page for the link, if different than the display text."
            },
},
            "required": false,
"required": false,
            "example": "Main Page",
"example": "Main Page",
            "type": "wiki-page-name"
"type": "wiki-page-name"
        },
},
        "image": {
"image": {
            "label": {
"label": {
                "en": "Image"
"en": "Image"
            },
},
            "description": {
"description": {
                "en": "An image to display with the link."
"en": "An image to display with the link."
            },
},
            "required": false,
"required": false,
            "suggested": true,
"suggested": true,
            "type": "wiki-file-name"
"type": "wiki-file-name"
        },
},
        "size": {
"size": {
            "label": {
"label": {
                "en": "Image size"
"en": "Image size"
            },
},
            "description": {
"description": {
                "en": "The size of the image, in px."
"en": "The size of the image, in px."
            },
},
            "required": false,
"required": false,
            "default": "42px",
"default": "42px",
            "type": "string"
"type": "string"
        }
},
    },
"imageClass": {
    "paramOrder": [
"label": "Image class",
        "1",
"description": "A class to give directly to the image",
        "link",
"example": "invert-on-dark",
        "image",
"type": "string",
        "size"
"suggestedvalues": [
    ]
"invert-on-dark",
"invert-on-light"
]
}
},
"paramOrder": [
"1",
"link",
"image",
"size",
"imageClass"
]
}
}
</templatedata>
</templatedata>