Help:Namespaces/ko

From MediaWiki.org
Jump to: navigation, search
PD 알림: 이 문서는 퍼블릭 도메인으로 배포됩니다. 만약 이 정책에 동의하지 않는다면, 이 문서를 편집하지 말아 주세요.

이 문서는 퍼블릭 도메인 도움말의 일부로, 새로 설치한 위키나 미디어위키 프로그램 자체에 같이 배포할 수 있습니다. 도움말 개요는 Help:Contents/ko에서 볼 수 있습니다. 다른 위키에 도움말을 가져가는 방법은 Help:Copying/ko를 참고해주세요.

PD

미디어위키의 각 문서에는 네임스페이스가 있습니다. 이 네임스페이스는 문서의 종류를 구분하기 위해 있는 것으로, 예를 들어서 일반 문서와 틀 문서, 위키 도움말 문서 등을 구분하는 데에 사용됩니다.

네임스페이스는 문서의 이름 앞부분의 "네임스페이스:"를 통해 구분됩니다. 예를 들어, 이 문서 제목인 "Help:Namespaces/ko"의 네임스페이스는 "Help"가 됩니다. 이러한 구분자가 없는 경우 그 문서의 네임스페이스는 일반 네임스페이스가 됩니다. 또한, 실제로 존재하지 않는 네임스페이스를 사용하는 경우 네임스페이스로 인식되지 않습니다. 예를 들어, 예제:Namespaces/ko 문서의 네임스페이스는 일반 네임스페이스가 됩니다. 비슷하게, Help:예제:Namespaces/ko의 네임스페이스는 "Help"가 됩니다.

Contents

[edit] 기본 네임스페이스

미디어위키에서는 기본적으로 몇 가지 네임스페이스를 제공하고 있습니다. 각 네임스페이스는 내부적으로 특정 숫자를 가지고 있으며, 이 숫자는 일반 공간의 경우 짝수, 토론 공간의 경우 홀수를 가지고 있습니다. 특수 네임스페이스의 경우 음수값을 가집니다.

[edit] -2: Media

이 네임스페이스는 미디어 파일을 직접 링크하기 위해 있는 특수 네임스페이스입니다. 예를 들어, File:Wiki.png 파일을 직접 링크하려면 Media:Wiki.png와 같이 쓰면 됩니다.

[edit] -1: Special

이 네임스페이스는 특수 문서를 모아두기 위해 있는 특수 네임스페이스입니다.

[edit] 0: (일반)

일반적인 문서의 네임스페이스입니다. 대부분의 위키 문서는 이 네임스페이스에 속하게 됩니다.

[edit] 1: Talk

일반 문서의 토론에 사용되는 토론 네임스페이스입니다.

[edit] 2: User

각 사용자의 개인 공간을 위한 네임스페이스입니다. 도구 모음에 해당 사용자의 편집 내역, 활동 기록 등이 나옵니다. 이 공간은 각 사용자의 개인 문서 공간으로, 자신의 소개나 임시적 편집 등을 할 때 활용할 수 있습니다. 또한, "User:UserName/Foo.js" 문서와 "User:UserName/Foo.css" 문서는 각 사용자의 스킨 css/스크립트에 관계된 문서로, 각 사용자나 혹은 관리자만이 편집할 수 있습니다.

[edit] 3: User talk

이 네임스페이스는 User 네임스페이스 문서와 연결되는 토론 네임스페이스로, 각 사용자의 토론 공간으로 사용할 수 있도록 만들어져 있습니다. 만약 User talk:사용자명이라는 문서를 편집한다면, 그 문서가 바뀌었다는 사실이 '사용자명'이라는 사용자에게 다음과 같은 메시지를 통해 자동적으로 알려집니다.

이 알림은 해당 사용자가 토론란을 확인하면 사라집니다.

[edit] 4: Project

이 네임스페이스는 위키 프로젝트 자체에 대한 문서를 담는 데에 사용하는 공간입니다. 이 네임스페이스에는 특별한 기능은 없습니다.

[edit] 5: Project talk

이 네임스페이스는 위키 프로젝트 자체에 대해 토론하는 공간입니다. 특별한 기능은 없습니다.

[edit] 6: File

Wiki.png

File 네임스페이스는 그림, 영상, 소리 등의 미디어 파일에 대한 추가적인 설명을 담는 공간입니다. 각각의 파일에는 File:파일이름과 같은 식으로 네임스페이스 공간이 배정됩니다.

[[File:Wiki.png|right]]와 같이 File 네임스페이스 문서를 링크하면, 오른쪽 위에 있는 것과 같이 그림이 들어갑니다. 문서 자체에 직접 링크를 걸 때에는 [[:File:Wiki.png]]처럼 앞에 콜론을 넣으면 File:Wiki.png와 같이 링크가 됩니다.

미디어위키에서는 기본적으로 "Image"를 File과 동일하게 처리합니다. 이에 대한 설명은 네임스페이스 alias를 참고해주세요.

[edit] 7: File talk

This is a talk namespace that is normally used for discussions related to the associated media files. It has no special properties.

[edit] 8: MediaWiki

The MediaWiki namespace is used to hold system messages and other important content. For instance, the page MediaWiki:Edit contains the text that fills the "Edit" tab at the top of every page. If that page exists, it overrides the default content, which is "edit this page". Similarly, MediaWiki:Common.css is the system message which holds the CSS code that is loaded for all users for each page. It has the special property that the entire namespace is fully protected and can only be edited by administrators.

[edit] 9: MediaWiki talk

This is a talk namespace that is normally used for discussions related to the associated system messages. It has no special properties.

[edit] 10: Template

The Template namespace is used to hold templates, blocks of text or wikicode that are intended to be transcluded in several other pages. To facilitate this it has the special property that it is the default namespace for transclusions: the wikicode {{Foo}} is equivalent to {{Template:Foo}}.

[edit] 11: Template talk

This is a talk namespace that is normally used for discussions related to the associated template pages. It has no special properties.

[edit] 12: Help

The Help namespace is usually used to hold help files, instructions and 'how-to' guides. It has no special properties.

[edit] 13: Help talk

This is a talk namespace that is normally used for discussions related to the associated help pages. It has no special properties.

[edit] 14: Category

The Category namespace contains categories, dynamic lists of other pages. 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 "Categories"). Clicking on that link takes you to the category page, where this page is visible in the category list. To create an inline link to a category page, you need to add a colon to the front of the namespace: [[:Category:Help]] produces Category:Help. See Help:Categories for more details on category link syntax.

[edit] 15: Category talk

This is a talk namespace that is normally used for discussions related to the associated category pages. It has no special properties.

[edit] Localisation

[edit] Renaming namespaces

Canonical name Localized name
Media Media
Special Special
(Main)
Talk Talk
User User
User talk User talk
Project Project
Project talk Project talk
File File
File talk File talk
MediaWiki MediaWiki
MediaWiki talk MediaWiki talk
Template Template
Template talk Template talk
Help Help
Help talk Help talk
Category Category
Category talk Category talk

Namespace names can be translated into languages other than English and individual namespaces can be renamed, as set by a wiki's system admins. 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.

[edit] 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. By default, "Image" is an alias for File, so [[Image:Wiki.png]] is equivalent to [[File:Wiki.png]].

[edit] Custom namespaces

See Manual:Using custom namespaces for more information.

Some wikis may wish to organise 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.

[edit] Identifying namespaces

There are a number of ways by which the namespace of a particular page can be identified:

Magic words

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

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 content 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 
{   /* All links on content pages to be green. */
    color: #00FF00;
}
.ns-talk a 
{      /* Links on talk pages to be blue. */
    color: #0000FF;
}
.ns-3 a 
{         /* and links on user talk pages to be red */
    color: #FF0000;
}
API

You can get a complete list of all the namespaces used on this wiki from the API:

//www.mediawiki.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces

[edit] See also

언어: English  • Deutsch • Español • Suomi • Français • Bahasa Indonesia • Italiano • 日本語 • 한국어 • Ripoarisch • Polski • Português • Português do Brasil • Română • Русский • Slovenčina • Українська
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox