Segítség:Névterek

From mediawiki.org
This page is a translated version of the page Help:Namespaces and the translation is 57% complete.
Outdated translations are marked like this.
PD Megjegyzés: Amikor szerkeszted ezt a lapot, beleegyezel a szerkesztésed CC0 alatti közzétételébe. Lásd a Public Domain Help Pages lapot további információkért. PD

A MediaWiki-szoftver a lapokat „névterek” szerint csoportosítja; ezek magas szinten különböztetik meg a lapokat. A névtereknek lehetnek speciális tulajdonságaik, vagy bizonyos lapokkal való interakciók során máshogy reagálhatnak.

Namespaces are indicated in page titles by prefixing the page name with <namespace>:, so the prefix Help: in this page's title (Help:Namespaces/hu) indicates that this page is in the Help namespace. Each namespace is identified by a number and a name, which can be translated and can also have some aliases.

Az előtag nélküli lapok a fő névtérben találhatók. A kettőspont és az előtag nem feltétlenül a névteret jelenti: a Foo:Namespaces/hu lap a fő névtérben található, mivel nem létezik „Foo” nevű névtér. Hasonlóan a Segítség:Foo:Namespaces/hu lap a „segítség-névtérben” van.

Alapértelmezett névterek

A szoftver alapértelmezésben tizenhat olyan névtérrel rendelkezik, amik felhasználók által készített tartalmat tárolnak; valamint két olyannal, aminek a tartalmát a szoftver automatikusan, az oldalak megnyitásakor generálja. Az alapértelmezett névterek minden lapjához tartozik egy tartalmi és egy vitalap. A számuk nullától indul; a tartalmi lapok páros, a vitalapok pedig páratlan azonosítójúak.

Média

Ez a névtér a közvetlenül a médiafájlokra mutató hivatkozások készítésére szolgál: a [[Media:MediaWiki-2020-logo.svg]] link magára a képre mutat, ellentétben a [[:File:MediaWiki-2020-logo.svg]] verzióval, ami a fájlleíró lapra vezeti az olvasót.

Speciális

Ez a névtér csoportosítja a speciális lapokat, olyan jelentéseket és felületeket, amiket a MediaWiki igény szerint, a megnyitásuk pillanatában generál le, és közvetlenül nem szerkeszthetők. Új lapokat sem lehet létrehozni ebben a névtérben, csak a MediaWiki szoftver módosításával vagy kiegészítésével.

(Fő)

Ez az egyetlen névtér, aminek nincs kettősponttal elválasztott előtagja. Általában „fő névtérnek” (vagy a wiki tartalmától függően pl. „szócikknévtérnek”) hívják. Jellemzően a wiki tartalmi lapjainak többsége a fő névtérben található. Legtöbbször nincsen semmilyen speciális tulajdonsága.

Vita

A szócikkekkel kapcsolatos megbeszélésekhez használható vitalap. Nincsenek speciális tulajdonságai.

Szerkesztő

Each user has a corresponding page in the “User” namespace, which is linked to from edit histories, watchlists, recent changes, etc.; wherever an individual user is uniquely identified.

This page and subpages of it can be used by users to record information about themselves or to test and draft new content. Pages of the form User:UserName/Foo.js or User:UserName/Foo.css can only be edited by the user themselves or by interface administrators (or administrators before MediaWiki 1.32).

Szerkesztővita

This namespace is the talkspace associated with the “User” namespace. Pages in this namespace are mainly used to leave messages for particular users or inform them of discussions that may be of interest to them. To facilitate this, when a page User talk:UserName is edited, whenever the user UserName loads a page, a notice is displayed at the top of the page informing them of the edit:

Az értesítés addig látható marad, amíg a felhasználó meg nem nézi saját vitalapját.

Javaslat adminisztrátoroknak: Extensions like Echo may override this behavior.

Projekt

A wiki üzemeltetésével és működésével kapcsolatos lapok. It automatically redirects the user to a namespace labeled after the wiki's name, example: [[Project:Licenses]] → [[Wikipedia:Licenses]].

Projektvita

A projektlapokkal kapcsolatos megbeszélésekhez használható vitalap. Nincsenek speciális tulajdonságai.

Fájl

The “File” namespace is used to store metadata for images, videos, sound files and other media accessed via the “Media” namespace. Each file has a corresponding page in the “File” namespace, which is often used to hold licensing data. Linking directly to a page in this namespace instead includes the media file inline in the page: [[File:MediaWiki-2020-logo.svg|right]] produces the image to the right. See Help:Képek for more details of this link syntax.

To create an internal link to the file page, you need to add a colon to the front of the namespace: [[:File:MediaWiki-2020-logo.svg|right]] produces File:MediaWiki-2020-logo.svg. The standard MediaWiki installation has alias “Image” for “File” namespace – See Namespace aliases.

A fájlok közvetlen, a leírólap nélküli megjelenítésére a Média-névtér való.

Fájlvita

A fájlokkal kapcsolatos megbeszélésekhez használható vitalap. Nincsenek speciális tulajdonságai.

MediaWiki

A „MediaWiki” névtérben találhatók a rendszerüzenetek és egyéb fontos lapok. Például a MediaWiki:Edit (Vector skinnél MediaWiki:Vector-view-edit) a „Szerkesztés” fül szövegét tartalmazza. Ha a lap létezik, akkor felülírja az eredeti szöveget („Edit”). Hasonlóan az előbbihez, a MediaWiki:Common.css a mindenkinek betöltődő CSS-kódot tartalmazza. It has the special property that the entire namespace can only be edited by users with the (editinterface) user right. Since MediaWiki 1.32, JavaScript and CSS pages needs also editinterface and (respectively) editsitejs or editsitecss rights to edit.

MediaWiki-vita

A rendszerüzenetekkel kapcsolatos megbeszélésekhez használható vitalap. Nincsenek speciális tulajdonságai.

Sablon

A "Template"-névteret sablonokhoz, azaz több lapon használható szövegeket, vagy forráskódot tartalmazó laphoz lehet használni. Ez a sablonok alapértelmezett névtere: a {{Foo}} kód azonos a {{Template:Foo}} kóddal.

Sablonvita

A sablonokkal kapcsolatos megbeszélésekhez használható vitalap. Nincsenek speciális tulajdonságai.

Segítség

A segítség-névteret segítséglapokhoz, útmutatókhoz lehet használni. Nincsenek speciális tulajdonságai. See Help namespace content.

Segítségvita

A segítséglapokkal kapcsolatos megbeszélésekhez használható vitalap. Nincsenek speciális tulajdonságai.

Kategória

A "Category"-névtér tárolja a kategóriákat, azaz a lapok rendszerezett gyűjteményét. A kategóriákra való direkt linkeléssel nem belső hivatkozás keletkezik, hanem a lap bekerül az adott kategóriába. Így a [[$2:Segítség]] kód hatására a lap alján megjelenik a kategóriahivatkozás (a „$int-pagecategories” feliratú dobozban). A link a kategóriára visz, ahol a lap is található. To facilitate this, linking directly to a category page does not output an inline link, but instead includes the page into the associated category page. So the code [[Category:Help]] causes a category link to appear at the bottom of the page (at the bottom in the box marked “Kategória”). Clicking on that link takes you to the category page, where this page is visible in the category list.

Kategóriához belső hivatkozást a [[:$1:Segítség]] formában készíthetsz, melynek eredménye a Category:Help link lesz. További információkért lásd a $help-categories lapot. See Help:Categories for more details on category link syntax.

Kategóriavita

A kategóriákkal kapcsolatos megbeszélésekhez használható vitalap. Nincsenek speciális tulajdonságai.

Lokalizáció

Namespace names and aliases can be localized by developers. To request the localization of namespace names, please file a MediaWiki internationalization task at Phabricator . In the description of the task, you should provide translations of all the namespaces in the table to the right, as well as any additional namespaces on your wiki (such as "Module" or "Gadget").

If the site's language is Chinese, then namespace names are translated only when the content is converted and there is no __NOTITLECONVERT__ or __NOTC__ or magic words on a page.

Névterek átnevezése

Number Eredeti név Lefordított név
-2 Media Média
-1 Special Speciális
0 (Main)
1 Talk Vita
2 User Szerkesztő
3 User talk Szerkesztővita
4 Project Projekt
5 Project talk Projektvita
6 File Fájl
7 File talk Fájlvita
8 MediaWiki MediaWiki
9 MediaWiki talk MediaWiki-vita
10 Template Sablon
11 Template talk Sablonvita
12 Help Segítség
13 Help talk Segítségvita
14 Category Kategória
15 Category talk Kategóriavita

Namespace names can be translated into languages other than English and individual namespaces can be renamed, as set by a wiki's system admins (using Namespace manager). These names are known as the 'localized' namespace names. However, all namespaces have a 'canonical name', the original English name which will work on any installation of MediaWiki. So linking to User:Foo will always locate the user page for the user foo, whether the wiki is in French (where the localized name would be Utilisateur:Foo), Russian (Участник:Foo), or Hindi (सदस्य:Foo).

The canonical namespace names are given in the table to the right along with their localized names on this wiki.

Namespace aliases

On some wikis there are also namespace aliases: alternative names that will also be resolved to the localised names. For instance, a wiki might define "T" as an alias for Template, such that typing T:Foo is equivalent to Template:Foo, saving a few characters and seconds. An actual example would be on the English Wikipedia, where "WP" is an alias for Project, which is the namespace "Wikipedia".

By default, "Image" is an alias for File, so [[Image:MediaWiki-2020-logo.svg]] is equivalent to [[File:MediaWiki-2020-logo.svg]].

Egyedi névterek

See Manual:Using custom namespaces for more information.

Some wikis may wish to organize their content in ways that do not fit into this standard set of namespaces. A wiki may define additional namespaces to facilitate this; these namespaces behave exactly like normal namespaces, and generally have indices greater than or equal to 100. These custom namespaces generally have no special properties.

Névterek meghatározása

Számos módon meg lehet határozni, hogy egy adott lap melyik névtérben van:

Varázsszavak

The magic word {{NAMESPACE}} returns the value of the namespace the page is in.

To refer to another namespace, use {{ns:<name>}} (e.g. {{ns:Project}}), or {{SUBJECTSPACE}} / {{TALKSPACE}} to refer to the namespace paired with the current one.

JavaScript

The JavaScript variable wgCanonicalNamespace contains the full namespace name. The variable wgNamespaceNumber contains the numerical index of the namespace.

CSS

The ‎<body> tag of the HTML page output is given two CSS classes that vary by namespace: A class ns-#, where # is the index of the namespace, and ns-XXX, where XXX is "subject" for all subject namespaces , "special" for pages in the Special namespace, and "talk" for talk namespaces . So CSS code such as the following can be used to change the appearance of an object based on its namespace:

.ns-subject a {   /* Almost all links on subject pages to be green. */
    color: #0f0;
}
.ns-talk a {      /* Links on talk pages to be blue. */
    color: #00f;
}
.ns-3 a {         /* and links on user talk pages to be red */
    color: #f00;
}

You can get a complete list of all namespace names of a MediaWiki installation from the Search results page Advanced tab, or from any recent changes page such as contributions or watchlist in its options box, in a drop-down list. For the system properties of each namespace, use the MediaWiki API :

API


Lásd még