Template:MP link: Difference between revisions
dlw>RheingoldRiver Created page with "<includeonly>{{#if:{{{image|}}}|[[File:{{{image|}}}|{{{size|42px}}}|link={{{link|{{{1|}}}}}}]]}}<!-- -->{{#if:{{#pos:{{{link|}}}|http}}|[{{{link|}}} {{{1|}}}]|[[{{{link|{{{1|}}}}}}|{{{1|}}}]]}}</includeonly><noinclude> {{doc}} Category:Formatting templates </noinclude>" |
Verdite cat (talk | contribs) m 1 revision imported |
(No difference)
|
Latest revision as of 18:53, 12 September 2024
Template documentation follows |
---|
Note: the template above may sometimes be partially or fully invisible. |
Visit Template:MP_link/doc to edit this documentation. (How does this work?) |
This creates one of the stylized and formatted links on the main page.
Usage
Groups of this template should be wrapped inside of <div class="mp-links"></div>
and each entry should be a separate line in an unordered list. This div can be given one of the classes columns-x
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 stretch
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
Creates stylized and formatted links on the main page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | 1 | The text to display. If the link parameter is not given, this will also be the link target.
| String | required |
Link | link | The target page for the link, if different than the display text.
| Page name | optional |
Image | image | An image to display with the link. | File | suggested |
Image size | size | The size of the image, in px.
| String | optional |
Examples
<div class="mp-links columns-3"> * {{MP link|Stuff|link=Special:Random|image=Site-logo.png|size=42px}} * {{MP link|Things|link=Special:Random}} * {{MP link|Other stuff|link=Special:Random|image=Site-logo.png|size=42px}} </div>
Produces: