Help:MediaWiki namespace: Difference between revisions

Content deleted Content added
No edit summary
Tags: Reverted Visual edit Mobile edit Mobile web edit
 
(32 intermediate revisions by 20 users not shown)
Line 1:
{{Short description|MediaWiki: prefix, such as MediaWiki:Noarticletext}}
{{redirect|Wikipedia:MediaWiki|information about the entire MediaWiki software application|MediaWiki}}
{{Information page|WP:MWN|WP:MEDIAWIKI|WP:INTERFACE}}
{{namespaces}}
The '''MediaWiki namespace''' is a [[Wikipedia:Namespace|namespace]] containing system messages, the text to be displayed in certain places in the interface. Only [[Wikipedia:Administrators|administrators]], [[Wikipedia:Interface administrators|interface administrators]] and [[m:interface editors|interface editors]] can edit pages in this namespace. In addition, pages in this namespace ending with <code>.css</code> or <code>.js</code> are furthermore restricted to interface administrators and interface editors. However, all editors can propose changes on appropriate talk pages.
 
== Overview ==
The MediaWiki namespace allows administrators and interface editors to [[m:Help:System message|customise or translate the MediaWiki web interface]].
Line 21 ⟶ 27:
 
==Overview of messages==
{{See|Wikipedia:Software notices}}
The template {{tl|MediaWiki messages}} (shown below) lists a selection of key messages. Not included are
 
* [[WP:Abusefilter|Edit filter]] warnings, as there are many of these, and they can be found [[Special:PrefixIndex/MediaWiki:Abusefilter-|here]].
* [[Wikipedia:tags|Tags]] added automatically to [[help:edit summary|edit summaries]] by [[wp:edit filter|edit filters]], which are listed at [[Special:Tags]].
* Messages describing Preferences options (<kbd>Mediawiki:Tog-</kbd>) – [{{fullurl:Special:AllMessages|prefix=tog-}} search for these].
* Messages providing [[tooltip]]s (<kbd>Mediawiki:Tooltip-</kbd>) – [{{fullurl:Special:AllMessages|prefix=tooltip-}} search for these].
* Messages relating to [[WP:Cite.php|Cite.php]] are listed and discussed at [[Help talk:Cite errors]].
* [[MediaWiki:Uploadtext]] and related subpages (the subpages transclude pages from <kbd>Wikipedia:</kbd> space) – these are covered at [[Wikipedia talk:Upload]].
* [[CSS]] files, which are described at [[MediaWiki talk:Common.css]].
* [[Wikipedia:Gadget|Gadget]]-related messages – [[Special:PrefixIndex/MediaWiki:Gadget|Gadgets]].
 
The template {{tl|interface explanation}}, used on <kbd>MediaWiki talk:</kbd> pages (generally those with some discussion), adds pages it is on into [[:Category:MediaWiki messages with interface explanation]].
 
A complete list of messages is available at [[Special:Allmessages]]. MediaWiki messages serving the software default are called "unmodified" and appear as red links in the Allmessages list, and do not appear in a [https://en.wikipedia.org/w/index.php?title=Special:PrefixIndex&prefix=&namespace=8 Prefix-based search] as they don't technically exist as pages. Because [[Special:Allmessages]] displays '''all''' system messages and it's contents (the page is over 1 MB) some users might prefer to view these messages alphabetically:
[{{fullurl:Special:Allpages|from=MediaWiki:%21}} @] [[Special:Prefixindex/MediaWiki:A|A]] [[Special:Prefixindex/MediaWiki:B|B]] [[Special:Prefixindex/MediaWiki:C|C]] [[Special:Prefixindex/MediaWiki:D|D]] [[Special:Prefixindex/MediaWiki:E|E]] [[Special:Prefixindex/MediaWiki:F|F]] [[Special:Prefixindex/MediaWiki:G|G]] [[Special:Prefixindex/MediaWiki:H|H]] [[Special:Prefixindex/MediaWiki:I|<small> </small>I<small> </small>]] [[Special:Prefixindex/MediaWiki:J|J]] [[Special:Prefixindex/MediaWiki:K|K]] [[Special:Prefixindex/MediaWiki:L|L]] [[Special:Prefixindex/MediaWiki:M|M]] [[Special:Prefixindex/MediaWiki:N|N]] [[Special:Prefixindex/MediaWiki:O|O]] [[Special:Prefixindex/MediaWiki:P|P]] [[Special:Prefixindex/MediaWiki:Q|Q]] [[Special:Prefixindex/MediaWiki:R|R]] [[Special:Prefixindex/MediaWiki:S|S]] [[Special:Prefixindex/MediaWiki:T|T]] [[Special:Prefixindex/MediaWiki:U|U]] [[Special:Prefixindex/MediaWiki:V|V]] [[Special:Prefixindex/MediaWiki:W|W]] [[Special:Prefixindex/MediaWiki:X|X]] [[Special:Prefixindex/MediaWiki:Y|Y]] [[Special:Prefixindex/MediaWiki:Z|Z]]
 
For a list of '''all''' MediaWiki pages, see [[Special:Prefixindex/MediaWiki:]], or [https://en.wikipedia.org/w/index.php?title=Special%3ASearch&redirs=1&ns8=1 search the MediaWiki namespace]. This includes custom titleblacklist notices, or edit filter notices and other pages that is not part of standard MediaWiki messages.
 
{{MediaWiki messages|state=expanded}}
 
==Finding system messages==
{{Shortcut|WP:QQX}}
Line 51 ⟶ 78:
 
===Transclusion===
[[WP:TRANS|Transclusion]] of MediaWiki messages can make sense, as noted below historically these messages also covered the function of templates.
*{{evaldemo|MediaWiki:Edit|&#61;}}, see {{tim|Ed}}.
*{{evaldemo|int:Edit|&#61;}}, [[Help:colon function|colon function]] '''int:''' is a shorthand for '''MediaWiki:'''.
*{{evaldemo|int:Example|&#61;}}, but only as far as the message exists.
*{{evaldemo|MediaWiki:Example|&#61;}} doesn't exist.
 
The difference between {{tlc|MediaWiki:}} and {{tlc|int:}} is that {{tlc|MediaWiki:}} transcludes using the default language of the Wiki (i.e. English), whereas {{tlc|int:}} transcludes using the language set by the user's preferences. For example, if your user language is not set to English, the following two lines will differ:
*{{MediaWiki:articlepage}}
*{{int:articlepage}}
 
However many messages are not suited for transclusion, because they contain '''$1''' and similar parameters not evaluated by the
template parser, or raw [[w:Cascading Style Sheets|CSS]] and [[w:en:XHTML|XHTML]] markup not permitted on normal pages.
 
==== With parameters ====
MediaWiki messages may have parameters as '''$1''', '''$2''', ... and they are variables used in the software. When transcluding it with custom changed parameters, {{tlc|int:}} transclusions would be preferred.
 
===Interlanguage links===
[[Help:Interwiki linking|Interlanguage link]]s in MediaWiki messages typically won't work as expected. Adding <kbd>&lt;noinclude&gt;</kbd> isn't good enough, because something has to evaluate it, as it's the case for messages [[#Inclusion|included]] like ordinary templates, but not {{clarifyme}} for messages used internally as system messages.