Content deleted Content added
No edit summary Tags: Reverted Visual edit Mobile edit Mobile web edit |
m Reverted 2 edits by 49.184.138.13 (talk) to last revision by John of Reading |
||
Line 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
* 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==
Line 56 ⟶ 59:
==Technical details==
The MediaWiki namespace is a mechanism allowing administrators to [[m:Help:System message|customise or translate the MediaWiki web interface]]. It is enabled by default in recent mediawiki versions, [[mw:Manual:$wgUseDatabaseMessages]] = true enables them. The contents of the MediaWiki namespace pages override any corresponding settings in the language files, i.e., the static version of messages. Using the MediaWiki namespace is a bit slower than other namespaces.
The namespace number of {{ns:8}} messages is '''8''', with a corresponding {{ns:9}} namespace '''9''' to discuss individual messages.
Some projects offer templates like {{tiw|en|editprotected}} to propose modifications, others have a page like
[[m:Meta:Requests for help from a sysop or bureaucrat|Meta:Requests for help from a sysop or bureaucrat]] for this purpose.
;Links to MediaWiki messages work like links to ordinary pages, examples:
:<kbd><nowiki>[[MediaWiki:Edit]]</nowiki></kbd> [[MediaWiki:Edit]],
:<kbd><nowiki>[[w:de:MediaWiki:Edit]]</nowiki></kbd> [[w:de:MediaWiki:Edit]],
:<kbd><nowiki>[{{fullurl:m:MediaWiki:Edit|action=render}} demo]</nowiki></kbd> [{{fullurl:m:MediaWiki:Edit|action=render}} demo].
Each message in the [[gerrit:g/mediawiki/core/+/refs/heads/master/languages/i18n/en.json|<code>i18n/en.json</code>]] file corresponds to a page in the MediaWiki namespace. For example, there is a line in the JSON file:
<syntaxhighlight lang="json">
"recentchanges": "Recent changes",
Line 86 ⟶ 89:
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 ====
Line 92 ⟶ 95:
===Interlanguage links===
[[Help:Interwiki linking|Interlanguage
Instead, one can use in-page interlanguage links on the talk pages, {{tim|ilm}} does this for some major projects.
== History ==
|