Bureaucrats, Moderators (CommentStreams), Interface administrators, Push subscription managers, Suppressors, Administrators
11,990
edits
https://support.wiki.gg>Mr Pie 5 (Updating IMP pages) |
(copy from https://cytooxien.wiki.gg/de/wiki/Vorlage:MP_link/doc) |
||
| Line 1: | Line 1: | ||
This creates one of the stylized and formatted links on the [[{{ | This creates one of the stylized and formatted links on the [[{{SITENAME}}|main page]]. | ||
== Usage == | == Usage == | ||
Groups of this template should be wrapped inside of <code><nowiki><div class="mp-links"></div></nowiki></code> and each entry should be a separate line in an [[wikipedia:Help:Lists#Basically|unordered list]]. This div can be given one of the classes <code>columns-x</code> where x is a number from 1 to | Groups of this template should be wrapped inside of <code><nowiki><div class="mp-links"></div></nowiki></code> and each entry should be a separate line in an [[wikipedia:Help:Lists#Basically|unordered list]]. This div can be given one of the classes <code>columns-x</code> where x is a number from 1 to 5, and the links will line up in that many columns if space permits (default is 3). The div can also optionally be given the class <code>stretch</code> and it will stretch the list vertically to fill empty space. See [[Mediawiki:Common.css]] for the full definitions of these classes and styling for this template. | ||
===Parameters=== | ===Parameters=== | ||
<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." | |||
}, | |||
"required": true, | |||
"example": "Stuff", | |||
"type": "string" | |||
}, | |||
"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" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1", | |||
"link", | |||
"image", | |||
"size" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||