Help:Системно съобщение

Jump to navigation Jump to search
This page is a translated version of the page Help:System message and the translation is 23% complete.
Outdated translations are marked like this.
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Esperanto • ‎Nederlands • ‎Tiếng Việt • ‎Türkçe • ‎dansk • ‎español • ‎français • ‎polski • ‎português • ‎português do Brasil • ‎svenska • ‎vèneto • ‎čeština • ‎български • ‎русский • ‎تۆرکجه • ‎فارسی • ‎پښتو • ‎हिन्दी • ‎বাংলা • ‎中文 • ‎日本語 • ‎한국어
PD Забележка: С редактирането тази страница, вие се съгласявате да предоставите приносите си под лиценз CC0. За повече информация, вижте помощните страници за Обществено достояние.
i18n docs

[[Image:MediaWiki SpecialUpload interface labelled.png|thumb|[[Image:MediaWiki SpecialUpload interface labelled.png|thumb|Маркирана диаграма на форма за Специални:Качване, показваща различните системни съобщения]]]] Системното съобщение е фрагмент от обикновен текст (nowiki), уикитекст, CSS или JavaScript, който може да се използва за да персонализира поведението на МедияУики и външния му изглед за всеки език и локално място. МедияУики използва съобщения за всяка част от интерфейса, насочена към потребителя, което позволявайки интернационализация и локализация на потребителския интерфейс на МедияУики, както за ядрото, така и за разширенията.

Съобщения в изходния код

Всички съобщения, използвани в МедияУики, са определени във файл за съобщения.

Вижте също: Локализиране#Добавяне на нови съобщения

Overriding messages on-wiki

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.

Example row on the old Special:AllMessages.

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

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

Откриване на съобщения и документация

How each message is used by MediaWiki, variables available, parameters used, limitations, et cetera is explained with the complete documentation in the qqq pseudo-language files, as per message documentation guidelines. Some longer explanation pages may exist for some interface messages at the older Категория:Интерфейсни съобщения .

In the wiki base of, qqq is the page which holds the user documentation of the message (in English because it is the same shown to all readers).

In the same way as /en /ge /fr .../qqq is a subpage of the article and is viewable directly.

From this point of view qqq is considered as a language in parameter language= of the request.

In MediaWiki 1.18 and above, you can find a message key by browsing a wiki in the special pseudo-language code qqx, which can be done by appending ?uselang=qqx to the URL, or &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 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 nstab-talk, but the string is actually located at MediaWiki:Talk.

In case the page uses tabs like e.g. special page "Preferences" you will have to add the tab after the uselang parameter, e.g. Special:Preferences?uselang=qqx#mw-prefsection-rendering.

Вижте също