Template:Mediawiki

From relax wiki
Jump to navigation Jump to search

mw:Main Page

Template documentation

Goal

This template can be used for links to MediaWiki wiki pages.

Usage

{{mediawiki|page title|alternative text|lang=|oldid=|diff=}}

All parameters are optional.

page title
Page title to link to. Defaults to Main Page.
alternative text
Alternative text to be shown instead of the page title. Note that if this parameter is not given, mw: will be appended to the page name.
lang
Language code to link to another language version than the English one. The language will not be shown (currently not implemented), but the page title might give a hint.
oldid
Oldid from the end of the MediaWiki wiki permalink URL to use when linking to a specific article revision. Can be found through the page history.
diff
If not empty a link to a diff comparing the oldid revision with the previous revision will be shown. Instead of a regular link and a permalink a permalink and a link to a diff will be shown.

Examples

See the {{mediawiki|Help:Extension:ParserFunctions}} article on the MediaWiki wiki.

See the mw:Help:Extension:ParserFunctions article on the MediaWiki wiki.

External link: {{mediawiki|Extension:ParserFunctions|ParserFunctions extension}}

External link: ParserFunctions extension

See the Italian translation of {{mediawiki|Help:Magic words|lang=it}}.

See the Italian translation of mw:Help:Magic words.

Known issues

  • You can not link to a section using a number sign (#) when using oldid or diff.