Changes

1,931 bytes added ,  11:56, 27 November 2019
no edit summary
{{documentation subpage}}

This template links to a page on mediawiki.org from the [[Help:Contents|Help pages]]. The template has three parameters:
# Pagename, optionally preceded by an interwiki link prefix valid on mediawiki.org
# (optional) Link description
# (optional) Special. Set this to "yes" for special pages, and the template will link to the local Special page if it exists (otherwise, it will point to mediawiki.org).

{{ #ifeq:
{{SITENAME}}
| MediaWiki
| This is so that the public domain help pages - which can be freely copied and included in other sites - have correct links to Mediawiki:
* on external sites, it creates an interwiki link to 'mediawikiwiki' (included in the default interwiki table for new installs)
* on Mediawiki, it creates an internal or interwiki link

'''All''' links from the Help namespace to other parts of the mediawiki.org wiki should use this template.}}

==Examples==
*{{tlx|mediawiki|Project:About}} yields {{mediawiki|Project:About}}
*{{tlx|mediawiki|Project:About|About MediaWikiWiki}} yields {{mediawiki|Project:About|About MediaWikiWiki}}
*{{tlx|mediawiki|m:Project:About|About Meta}} yields {{mediawiki|m:Project:About|About Meta}}
*{{tlx|mediawiki|Special:OAuthManageMyGrants|Manage my OAuth grants|4=special=1}} yields {{mediawiki|Special:OAuthManageMyGrants|Manage my OAuth grants|special=1}}
----
<templatedata>
{
"description": "MediaWikiWiki interwiki link for missing local page",
"params": {
"1": {
"label": "page",
"description": "Wikilink working on MediaWikiWiki",
"type": "wiki-page-name",
"required": true
},
"2": {
"label": "text",
"description": "Link text",
"type": "string",
"default": "Page name (parameter #1)"
},
"special": {
"description": "Any non-empty value to try local before MediaWikiWiki special page",
"type": "string"
}
}
}
</templatedata><includeonly>[[Category:Link templates|MediaWiki]]</includeonly>
Anonymous user