Help:System message

From Celeste Wiki
Jump to navigation Jump to search

<languages /> Template:PD Help Page Template:I18n navigation

<translate> Labelled diagram of the Special:Upload form, showing various system messages.</translate>

<translate> A system message is a snippet of plain text (nowiki), wikitext, CSS, or JavaScript that can be used to customize the behavior of MediaWiki and its appearance for each language and locale. MediaWiki uses messages for any user-facing part of the interface, allowing for internationalization and localization of the MediaWiki UI, for both core and extensions. </translate> <translate>

Messages in the source code[edit source]

All messages used in MediaWiki are defined in a messages file.

See also: [[<tvar|localisation>Special:MyLanguage/Localisation#Adding new messages</>|Localisation#Adding new messages]]

Overriding messages on-wiki[edit source]

In addition to this, messages can be overridden from their default values by editing them on-wiki. Each message has a wiki page in the MediaWiki namespace with its message key as the name of the page. For example, the "aboutsite" message is stored at MediaWiki:aboutsite. By default this namespace is restricted from editing unless the user has the "editinterface" permission. A list of all message pages can be found on Special:AllMessages. Editing interface messages is typically straightforward, just like editing a normal wiki page, but it is restricted to users with the editinterface permission, which is assigned to administrators (and interface administrators) by default. </translate>

<translate> Example row on the old Special:AllMessages. </translate>

<translate> The Special:AllMessages table contains two columns: the linked interface name, and the text.</translate> <translate> The text is horizontally split to show the default text above, and the customized text below.</translate> <translate> When a custom message does not exist, only the default will be shown.</translate> <translate> To customize a message, click the upper link in the left column (the name of the message).</translate> <translate> This link is red if the default text is in use, because the edit page is empty.</translate>

<translate> The lower links in the left column cells lead to the discussion pages for that message. </translate>

<translate>

Finding messages and documentation[edit source]

</translate> <translate> How each message is used by MediaWiki, variables available, parameters used, limitations, et cetera is explained with the [<tvar|twn>//translatewiki.net/w/i.php?title=Special:Translate&task=reviewall&group=core&language=qqq&limit=5000&action=page&filter=</> complete documentation in the qqq pseudo-language] files, as per [[<tvar|localization>Special:MyLanguage/Localisation#Message_documentation</>|message documentation guidelines]].</translate> <translate> Some longer explanation pages may exist for some interface messages at the older <tvar|1>Template:Ll</>.</translate>

translatewiki:MediaWiki:Tog-hideminor/en</> to view an article in English,</translate>

<translate> In MediaWiki 1.18 and above, you can find a message key by browsing a wiki in the special pseudo-language code <tvar|qqx>qqx</>, which can be done by appending <tvar|qqxparam1>?uselang=qqx</> to the URL, or <tvar|qqxparam2>&uselang=qqx</> if the URL already contains a ? character (example). All the messages will then be replaced by their message keys, so you can identify which message is responsible. Messages that are always in the content language will not be shown using qqx.

Some parts of the interface add <tvar|nstab>nstab-</> to the string that is shown when you use the qqx trick. For example the label for the tab that links to the discussion page in the main namespace is shown as <tvar|nt>nstab-talk</>, but the string is actually located at <tvar|talk>MediaWiki:Talk</>.

In case the page uses tabs like e.g. [[<tvar|prefs>Special:Preferences#mw-prefsection-rendering</>|special page "Preferences"]] you will have to add the tab after the uselang parameter, e.g. <tvar|qqxparam3>Special:Preferences?uselang=qqx#mw-prefsection-rendering</>.

See also[edit source]

</translate>

<translate>

  • [[<tvar|1>Special:MyLanguage/Manual:Configuration settings</>|Manual:Configuration settings]]

</translate>

[[Category:Customization techniques{{#translation:}}]] [[Category:User interface{{#translation:}}]] [[Category:Localisation{{#translation:}}]] [[Category:System message{{#translation:}}]] [[Category:Help{{#translation:}}|System message]]