Template:MP link/doc: Difference between revisions
Copied from dlw:Special:Diff/1903
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": { | |||
"en": "Creates stylized and formatted links on the main page." | |||
}, | |||
"format": "inline", | |||
"params": { | |||
"1": { | |||
"label": { | |||
"en": "Text" | |||
}, | |||
"description": { | |||
"en": "The text to display. If the link parameter is not given, this will also be the link target." | |||
}, | |||
"example": "Stuff", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"link": { | |||
"label": { | |||
"en": "Link" | |||
}, | |||
"description": { | |||
"en": "The target page for the link, if different than the display text." | |||
}, | |||
"required": false, | |||
"example": "Main Page", | |||
"type": "wiki-page-name" | |||
}, | |||
"image": { | |||
"label": { | |||
"en": "Image" | |||
}, | |||
"description": { | |||
"en": "An image to display with the link." | |||
}, | |||
"required": false, | |||
"suggested": true, | |||
"type": "wiki-file-name" | |||
}, | |||
"size": { | |||
"label": { | |||
"en": "Image size" | |||
}, | |||
"description": { | |||
"en": "The size of the image, in px." | |||
}, | |||
"required": false, | |||
"default": "42px", | |||
"type": "string" | |||
}, | |||
"imageClass": { | |||
"label": "Image class", | |||
"description": "A class to give directly to the image", | |||
"example": "invert-on-dark", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"invert-on-dark", | |||
"invert-on-light" | |||
] | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1", | |||
"link", | |||
"image", | |||
"size", | |||
"imageClass" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||