ਮਦਦ:ਮੀਡੀਆਵਿਕੀ ਨੇਮਸਪੇਸ

ਵਿਕੀਪੀਡੀਆ, ਇੱਕ ਅਜ਼ਾਦ ਗਿਆਨਕੋਸ਼ ਤੋਂ
ਇਸ ਹਿੱਸੇ/ਲੇਖ ਨੂੰ ਪੰਜਾਬੀ ਵਿੱਚ ਅਨੁਵਾਦ ਕਰਨ ਦੀ ਜਰੂਰਤ ਹੈ ਹੈ। ਤੁਸੀਂ ਇਸਦਾ ਪੰਜਾਬੀ ਵਿੱਚ ਅਨੁਵਾਦ ਕਰਕੇ ਵਿਕੀਪੀਡੀਆ ਦੀ ਮਦਦ ਕਰ ਸਕਦੇ ਹੋ।
Wikipedia data structure
ਨੇਮਸਪੇਸਾਂ
ਨੇਮਸਪੇਸ ਵਿਸ਼ਾ ਨੇਮਸਪੇਸ ਗੱਲਬਾਤ
0 (ਮੁੱਖ/ਲੇਖ) ਗੱਲ-ਬਾਤ 1
2 ਵਰਤੋਂਕਾਰ ਵਰਤੋਂਕਾਰ ਗੱਲ-ਬਾਤ 3
4 ਵਿਕੀਪੀਡੀਆ ਵਿਕੀਪੀਡੀਆ ਗੱਲ-ਬਾਤ 5
6 ਤਸਵੀਰ ਤਸਵੀਰ ਗੱਲ-ਬਾਤ 7
8 ਮੀਡੀਆਵਿਕੀ ਮੀਡੀਆਵਿਕੀ ਗੱਲ-ਬਾਤ 9
10 ਫਰਮਾ ਫਰਮਾ ਗੱਲ-ਬਾਤ 11
12 ਮਦਦ ਮਦਦ ਗੱਲ-ਬਾਤ 13
14 ਸ਼੍ਰੇਣੀ ਸ਼੍ਰੇਣੀ ਗੱਲ-ਬਾਤ 15
100 ਫਾਟਕ ਫਾਟਕ ਗੱਲ-ਬਾਤ 101
118 [[ਵਿਕੀਪੀਡੀਆ:ਡਰਾਫਟ|]] 119
710 TimedText TimedText talk 711
828 ਮੌਡਿਊਲ ਮੌਡਿਊਲ ਗੱਲ-ਬਾਤ 829
Deprecated
2300 ਗੈਜਟ ਗੈਜਟ ਗੱਲ-ਬਾਤ 2301
2302 ਗੈਜਟ ਪਰਿਭਾਸ਼ਾ ਗੈਜਟ ਪਰਿਭਾਸ਼ਾ ਗੱਲ-ਬਾਤ 2303
ਇੰਸਟਾਲ ਨਹੀਂ ਕੀਤਾ
90 ਥਰਿੱਡ ਥਰਿੱਡ ਗੱਲਬਾਤ 91
92 ਸੰਖੇਪ ਸੰਖੇਪ ਗੱਲਬਾਤ 93
108 ਪੁਸਤਕਾਂ Book ਗੱਲਬਾਤ 109
442 ਕੋਰਸ Course ਗੱਲਬਾਤ 443
444 ਇੰਸਟੀਟਿਊਸ਼ਨ ਇੰਸਟੀਟਿਊਸ਼ਨ ਗੱਲਬਾਤ 445
446 ਸਿੱਖਿਆ ਪ੍ਰੋਗਰਾਮ ਸਿੱਖਿਆ ਪ੍ਰੋਗਰਾਮ ਗੱਲਬਾਤ 447
2600 ਵਿਸ਼ਾ 2601
ਬਣਾਵਟੀ ਨੇਮਸਪੇਸਾਂ
-1 ਖ਼ਾਸ
-2 ਮੀਡੀਆ
Current list (API call)

The MediaWiki namespace is one of the standard namespaces in the database structure of the MediaWiki software, on which Wikipedia runs. The pages in this namespace (whose titles begin MediaWiki:) contain the text to be displayed in certain places in the web interface. Only administrators can edit this namespace, but all editors can propose changes on appropriate talk pages. See also Wikipedia:MediaWiki messages for discussions about the content of MediaWiki pages.

Overview[ਸੋਧੋ]

The MediaWiki namespace allows administrators and interface editors to customise or translate the MediaWiki web interface.

Caution: Some messages must have HTML links, and others must have wikilinks. To find out which is which, you must know where the message is used in the interface.

Because the changes to these pages have a global effect, they are protected from editing, and only administrators and interface editors have the ability to edit them.[1] Non-admins who would like to request a minor change can do so by using the {{editprotected}} template on the talk page of the MediaWiki page. More substantive changes should be discussed at Wikipedia:MediaWiki messages; an edit request should then be made if there is consensus for the change.

Changes that can benefit other wiki sites and are not specific to Wikipedia can be submitted to translatewiki.net (also known as TWN, formerly known as BetaWiki), see translatewiki:Translate:MediaWiki. Since English is the original language of the messages, changes to them cannot be directly edited in translatewiki.net, and have to be discussed in the support page there.

MediaWiki pages can not and should not have documentation on the page itself for several reasons: among other things <noinclude> tags usually do not function in this namespace and the amount of data in MediaWiki space needs to be kept low for performance reasons. Instead a description of the message can be put at the top of the talk page. A template {{interface explanation}} is available for this. Pages using this template can be found in Category:MediaWiki messages with interface explanation.

Some messages have old documentation available by setting the 'language' to qqq. For instance MediaWiki:Login has old, and somewhat incorrect, documentation at MediaWiki:Login/qqq. Don't update the /qqq messages, instead update the top of the talk page.

Overview of messages[ਸੋਧੋ]

The template {{MediaWiki messages}} (shown below) lists a selection of key messages. Not included are

The template {{interface explanation}}, used on MediaWiki talk: 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 Prefix-based search as they don't technically exist as pages. Because Special:Allmessages displays all system messages (the page is over 1 MB) some users might prefer to view these messages alphabetically: @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

For a list of all MediaWiki pages, see Special:Prefixindex/MediaWiki:, or search the MediaWiki namespace.


ਫਰਮਾ:MediaWiki messages

Technical details[ਸੋਧੋ]

The MediaWiki namespace is a mechanism allowing administrators to 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 ਮੀਡੀਆਵਿਕੀ messages is 8, with a corresponding ਮੀਡੀਆਵਿਕੀ ਗੱਲ-ਬਾਤ namespace 9 to discuss individual messages. Some projects offer templates like en:Template:editprotected (backlinks edit) to propose modifications, others have a page like Meta:Requests for help from a sysop or bureaucrat for this purpose.

Links to MediaWiki messages work like links to ordinary pages, examples
[[MediaWiki:Edit]] MediaWiki:Edit,
[[w:de:MediaWiki:Edit]] w:de:MediaWiki:Edit,
[{{fullurl:m:MediaWiki:Edit|action=render}} demo] demo.

Each message in the $wgAllMessagesEn array in Messages.php corresponds to a page in the MediaWiki namespace. For example, there is a line in the php file:

'confirmprotect' => 'Confirm protection',

To this corresponds the page MediaWiki:Confirmprotect, and {{int:Confirmprotect}} gives ⧼Confirmprotect⧽. When this page is edited the new message is automatically used for say https://meta.wikimedia.org/wiki/Main_page?action=protect. Similarly w:fr:MediaWiki:Confirmprotect has the content Confirmer la protection, note that the page name itself is not translated.

Transclusion[ਸੋਧੋ]

Transclusion of MediaWiki messages can make sense, as noted below historically these messages also covered the function of templates.

The difference between {{MediaWiki:}} and {{int:}} is that {{MediaWiki:}} transcludes using the default language of the Wiki (i.e. English), whereas {{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:

  • ਸਮੱਗਰੀ ਸਫ਼ਾ ਵੇਖੋ
  • ਸਮੱਗਰੀ ਸਫ਼ਾ ਵੇਖੋ

However many messages are not suited for transclusion, because they contain $1 and similar parameters not evaluated by the template parser, or raw CSS and XHTML markup not permitted on normal pages.

Interlanguage links[ਸੋਧੋ]

Interlanguage links in MediaWiki messages typically won't work as expected. Adding <noinclude> isn't good enough, because something has to evaluate it, as it's the case for messages included like ordinary templates, but not ਫਰਮਾ:Clarifyme for messages used internally as system messages.

Instead, one can use in-page interlanguage links on the talk pages, m:Template:ilm (backlinks, edit) does this for some major projects.

Strings exclusive to language file[ਸੋਧੋ]

Some text strings cannot be customised using this feature, and so can only be changed by editing the language file. These include:

  • The namespace titles "User", "Wikipedia", "Image", etc.
  • The names of the special pages
  • Month and days-of-the-week names
  • A number of items in Special:Preferences

History[ਸੋਧੋ]

The MediaWiki namespace was introduced on December 6, 2003. Before this time, user interface text was part of the PHP software and could only be changed by software developers. Since the introduction they have been editable by normal administrators.

Until June 2004, the MediaWiki namespace was also used for creating other boilerplate text messages, to be used in articles. This function was replaced with the Template namespace; a conversion script running as "User:Template namespace initialisation script", was run by developer Tim Starling, which moved all non-system messages to the new namespace, and replaced MediaWiki: references in articles with Template: in order to bypass the redirects. In October and November 2005, these redirects were deleted. This background explains why the concept now known as "templates" is sometimes referred to as "messages".

For a short time, before the renaming from votes for deletion (VfD) to articles for deletion (AfD), deletion debates used MediaWiki: messages named in the format "MediaWiki:VfD-articlename". These were moved to the Template: space in June 2004 and are now (as of January 2006) subpages of Wikipedia:Articles for deletion or Wikipedia:Votes for deletion.

See also[ਸੋਧੋ]

  1. By default, all messages are protected. This is necessary for a number of reasons:
    • Many messages are in plain HTML, so users could insert malicious scripts
    • Vandalism of some messages would be extremely disruptive, for example changes to the text of the links in the sidebar would immediately be visible to all users
    • A few messages can in theory cause the software to stop working if they are changed, for example MediaWiki:Linktrail. In practice the software ignores the database contents for MediaWiki:Linktrail, taking the regular expression straight out of the message files, for performance and stability reasons.
    If an administrator wishes to allow non-admins to edit a MediaWiki page, a method is to place the message on a template, and then transclude the template back onto the MediaWiki page. Another method is to redirect the page to one in a non-MediaWiki namespace.

External links[ਸੋਧੋ]