Template:MP link/doc

From Sword of Moonlight Wiki
Revision as of 01:02, 7 March 2024 by dlw>RheingoldRiver (Created page with "This creates one of the stylized and formatted links on the [[{{SITENAME}}|main page]]. == 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 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 (de...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text1

The text to display. If the link parameter is not given, this will also be the link target.

Example
Stuff
Stringrequired
Linklink

The target page for the link, if different than the display text.

Example
Main Page
Page nameoptional
Imageimage

An image to display with the link.

Filesuggested
Image sizesize

The size of the image, in px.

Default
42px
Stringoptional

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: