Template:Mediawiki

From FlightGear wiki
Jump to navigation Jump to search

mw:Main Page

The following template description is not displayed when the template is inserted in an article.

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.

The MediaWiki 1.26 release notes {{wikipedia|Release notes/1.26|as of 25 February 2016|oldid=2061268}}.

The MediaWiki 1.26 release notes as of 25 February 2016 (perm) This is a link to a Wikipedia article.

Fix to {{wikipedia|Manual:Substitution|oldid=1081828|diff=1}} on Wikipedia.

Fix to Manual:Substitution (diff) This is a link to a Wikipedia article on Wikipedia.

Known issues

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

Related templates