Manual:Namespace/pl

From MediaWiki.org

Jump to: navigation, search
  • Dopracować: Dokładne przetłumaczenie strony na język polski!!!
  • To repair: Please completely translate this page into Polish language!!!



A namespace is a collection of pages which have content with a similar purpose, i.e. pages where the intended use is the same. Namespaces can be thought of as partitions of different types of information within the same wiki, and keep "real" content separate from user profiles, help pages, etc.

Contents

[edit] Przegląd techniczny

Pages exist within a namespace, and this can be distinguished using the namespace prefix of a page, which forms part of the title of a page, separated with a colon (:).

Na przykład:

Title Namespace
Foo Główna
Project:Foo Projekt
Help:Foo Pomoc

Główna przestrzeń nazw nie posiada prefixu. Also, pages in the main namespace cannot have names starting with any of the existing namespaces prefixes followed by a colon.

Strony mogą być przenoszone pomiędzy przestrzeniami nazw oraz mogą mieć zmieniane tytuły.

Mogą one być tłumaczone oraz każda może być odpowiednio skonfigurowana. Wszystkie mają "kanoniczny" prefix, który pracuje na wszystkich wiki pomimo konfiguracji. Aliasy i kanoniczne nazwy moga być użyte w linkach, kiedy szukając, oraz na stronach pomocy z {{DISPLAYTITLE}} magic word.

Każda ma ustalony 'indeks' . W bazie danych, dzielą na tytuł indeksy i tekst tytułu, i jest przechowywane są w kolumnach: page.page_namespace i page.page_title .

Most namespaces have an associated discussion namespace (or "talk" namespace). All discussion namespaces have odd-integer indices, and the discussion namespace index for a specific namespace with index n is n + 1.

[edit] Wbudowane przestrzenie nazw

MediaWiki posiada 18 wbudowanych własnych przestrzeni nazw.

Podane 8 przestrzeni posiadają swoje, powiązane strony dyskusji (odpowiednio dopasowane do przestrzeni nazw).

Index Name Purpose Comments
0 Główna "Real" content; articles Nie posiada prefixu
2 User Strony użytkowników
4 Project Information about the wiki Prefix is the same as $wgSitename
6 Image Media description pages
8 MediaWiki Site interface customisation Protected
10 Template Template pages
12 Help Help pages
14 Category Category description pages

2 other namespaces have negative indexes and have special purposes. You cannot create or delete pages in these namespaces, and there are no corresponding discussion namespaces.

Index Name Purpose
-1 Special Holds special pages
-2 Media Alias for direct links to media files

[edit] Custom namespaces

It is possible to define additional namespaces to group additional classes of page together. This is done using the $wgExtraNamespaces configuration variable.

For a thorough overview, see Manual:Using custom namespaces.

[edit] Functionality

Some namespaces, like Project and Help, only exist for convenience and do not have any extra functionality compared to the Main namespace.

Template namespace pages can be transcluded without namespace prefix.

User namespace pages are associated with user accounts or IP addresses. Changes to user talk pages generate an automatic message notification.

Pages in MediaWiki namespace are used to override default messages in language file and can only be edited by administrators.

Image and Category pages have special functionality, as described in Help:Managing files and Help:Categories. Pages in these namespaces cannot be moved (renamed).

All pages in discussion namespaces have "post a comment" feature (see meta:Help:Section#Adding a section at the end).

Personal tools