https://defensewiki.ibj.org/index.php?title=Template:Mediawiki&feed=atom&action=historyTemplate:Mediawiki - Revision history2024-03-28T10:56:03ZRevision history for this page on the wikiMediaWiki 1.34.1https://defensewiki.ibj.org/index.php?title=Template:Mediawiki&diff=4405&oldid=prevIbjadmin: 1 revision2010-07-07T18:26:45Z<p>1 revision</p>
<p><b>New page</b></p><div>{{ #ifeq:<br />
{{SERVERNAME}}<br />
| www.mediawiki.org<br />
| [[{{{1}}}|{{{2|{{{1}}}}}}]]<br />
| [[mw:{{{1}}}|{{{2|{{{1}}}}}}]]<br />
}}<noinclude><br />
----<br />
This template links to a page on mediawiki.org from the [[Help:Contents|Help pages]]. The template has two parameters:<br />
# Pagename, optionally preceded by an interwiki link prefix valid on mediawiki.org<br />
# (optional) Link description<br />
<!-- Compatibility Note: The "mw" prefix is the only in the default interwiki prefixes since MediaWiki 1.16 (see mw:Manual:Interwiki#References). If you plan to use this script with an older version, it might be possible or necessary to you use the "mediawikiwiki" prefix. --><br />
<br />
{{ #ifeq:<br />
{{SERVERNAME}}<br />
| www.mediawiki.org<br />
| This is so that the public domain help pages - which can be freely copied and included in other sites - have correct links to Mediawiki:<br />
* on external sites, it creates an interwiki link to 'mw' (included in the default interwiki table for new installs)<br />
* on Mediawiki, it creates an internal or interwiki link<br />
<br />
'''All''' links from the Help namespace to other parts of the mediawiki.org wiki should use this template.}}<br />
<br />
== Demo of interwiki link ==<br />
<br />
<nowiki>{{mediawiki|m:Help:Calculation|Help:Calculation}}</nowiki> gives either<br /> <nowiki>[[m:Help:Calculation|Help:Calculation]] or [[mw:m:Help:Calculation|Help:Calculation]]</nowiki>.<br />
<br />
{{Languages}}<br />
<br />
[[Category:Info templates|MediaWiki]]<br />
</noinclude></div>Ibjadmin