Difference between revisions of "Template:Mediawiki"

From relax wiki
Jump to navigation Jump to search
m (1 revision imported)
 
(Removal of {{wikipedia}} examples, as that template no longer exists.)
 
(2 intermediate revisions by 2 users not shown)
Line 33: Line 33:
 
  -->]</span>)
 
  -->]</span>)
 
}}<noinclude>
 
}}<noinclude>
{{Informative template|1=
+
{{template info|1=
 
__NOTOC__
 
__NOTOC__
 
== Goal ==
 
== Goal ==
Line 62: Line 62:
 
  <nowiki>See the Italian translation of {{mediawiki|Help:Magic words|lang=it}}.</nowiki>
 
  <nowiki>See the Italian translation of {{mediawiki|Help:Magic words|lang=it}}.</nowiki>
 
See the Italian translation of {{mediawiki|Help:Magic words|lang=it}}.
 
See the Italian translation of {{mediawiki|Help:Magic words|lang=it}}.
 
<nowiki>The MediaWiki 1.26 release notes {{wikipedia|Release notes/1.26|as of 25 February 2016|oldid=2061268}}.</nowiki>
 
The MediaWiki 1.26 release notes {{wikipedia|Release notes/1.26|as of 25 February 2016|oldid=2061268}}.
 
 
<nowiki>Fix to {{wikipedia|Manual:Substitution|oldid=1081828|diff=1}} on Wikipedia.</nowiki>
 
Fix to {{wikipedia|Manual:Substitution|oldid=1081828|diff=1}} on Wikipedia.
 
  
 
== 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'''.
 
== Related templates ==
 
* {{tl|wikipedia}}
 
* {{tl|cite web}}
 
  
 
}}
 
}}

Latest revision as of 22:59, 27 October 2020

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.