Difference between revisions of "Template:Mediawiki"
Jump to navigation
Jump to search
Bugman admin (talk | contribs) m (Switch from the imported {{informative template}} to the relax {{template info}} template) |
(Removal of links to non-existent templates.) |
||
Line 71: | Line 71: | ||
== Known issues == | == Known issues == | ||
* You can not link to a section using a number sign (#) when using '''oldid''' or '''diff'''. | * You can not link to a section using a number sign (#) when using '''oldid''' or '''diff'''. | ||
− | |||
− | |||
− | |||
− | |||
}} | }} |
Revision as of 21:20, 26 October 2020
Template documentation
Contents
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 Template:Wikipedia.
Fix to {{wikipedia|Manual:Substitution|oldid=1081828|diff=1}} on Wikipedia.
Fix to Template:Wikipedia on Wikipedia.
Known issues
- You can not link to a section using a number sign (#) when using oldid or diff.