コンテンツにスキップ

あくまで管理人個人が勝手に書き殴っているメモなので、誤謬・誤植・誤解も含め、記述内容の正確性を一切保証しません。責任を負いません。問い合わせ等を受け付けません

これは、このWebサイトの読者が、このWebサイトにある記述内容を一方的・盲目的に信用したことが原因で、読者に事故や損害を与えた場合も含みます。万が一にも参考にする場合は、事前に読者による計算や実験を必須とします。ここでいう計算や実験が何であるかを理解できていない方は、まずそれを理解することから始めて下さい。なお、このWebサイトには、計算や実験が何であるかを理解できるような記述はありません。

各戸に引き込まれている商用電力はもちろん、市販されている電池を電源として使う場合でも、計算や操作の僅かなミスが事故や損害に繋がります。くれぐれも注意して下さい。

ヘルプ:Namespaces/ja

提供: アナログ回路研究資料
2014年1月11日 (土) 12:47時点におけるWebmaster (トーク | 投稿記録)による版 (1版)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)

<languages/>

スクリプトエラー: モジュール「Template translation」はありません。

MediaWiki ウィキのページは「名前空間」と呼ばれる、ページの目的を大まかに区別するための集まりに分類されます。特定の名前区間にあるページは特別な性質を持っていたり、他のページとの相互作用のしかたが異なっていたりします。

名前空間はページタイトルのなかでページ名の前につく部分の「名前空間:」で示されます。このページのタイトル(「ヘルプ:Namespaces/ja」)の「ヘルプ:」はこのページがヘルプ名前空間にあることを示しています。個々の名前空間は番号と名前で識別されます。名前は翻訳可能で、別名をもっていることがあります。

A page whose name is not prefixed by a namespace lies in the mainspace. Note, however, that colons and prefixes can also appear in page titles without indicating a namespace: the page Foo:Namespaces/ja is a page located in the mainspace because the namespace "Foo" does not exist. Similarly the page ヘルプ:Foo:Namespaces/ja is in the "ヘルプ" namespace.

標準的な名前空間

The standard MediaWiki installation has sixteen namespaces that can contain user-generated content; there are also two special namespaces that contain pages created 'on the fly' by the MediaWiki software. The standard namespaces are organized in pairs, with each pair containing a "subject namespace" and a "discussion namespace". The namespaces are numbered from zero such that all subject namespaces have even indices and all talk namespaces have odd indices.

メディア

アップロードされたファイルを説明ページを通してリンクするよりも、直接リンクするためにこの名前空間を使用します。

特別

This namespace is used to group special pages, reports and interfaces that are generated "on demand" by MediaWiki and that are not directly editable. It is not possible to create pages in this namespace except by modifying or extending the MediaWiki software.

(標準)

この名前空間にはコロンで区切られた接頭辞がありません。一般に「標準名前空間」または「メイン空間」と呼ばれます。典型的にはこの名前空間にはウィキのテンプレート:mediawikiの大半が含まれます。この名前空間には特別な性質はありません。

トーク

「トーク」名前空間はメイン空間に付属する議論の名前空間です。特別な性質はありません。

利用者

個々の利用者は自分に対応するページを利用者名前空間にもっています。このページは編集履歴、最近の更新ページなど、個別の利用者が同定されるときにはいつでもリンクされます。

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 "利用者:UserName/Foo.js" or "利用者:UserName/Foo.css" can only be edited by the user themselves or by administrators.

利用者・トーク

利用者のページ上で議論をするためのページでメッセージを残すことが出来ます。このページが編集されると、利用者が次にログインするときに新しいメッセージがある事を通知するボックスが表示されます。

This notice continues to appear until the user loads their user talk page to read the message.

アナログ回路研究資料

この名前空間は通常、そのウィキの運営や発展についてのメタ議論のために使われます。特別な性質はありません。

アナログ回路研究資料・トーク

これは通常、対応するプロジェクトページに関する議論に使われるトーク名前空間です。特別な性質はありません。

ファイル

ファイル:Wiki.png

アップロードされたファイルの説明です。これらのページを直接作らないで下さい; ツールボックスにあるアップロードファイルをクリックしたときにこれらのページは作成されます。

To create an internal link to the file page, you need to add a colon to the front of the namespace: [[:ファイル:Wiki.png|right]] produces ファイル:Wiki.png. The standard MediaWiki installation has alias "Image" for ファイル namespace - See Namespace aliases.

For linking media files directly, bypassing the description page, see Media namespace.

ファイル・トーク

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

MediaWiki

デフォルトのシステムシステムメッセージを変更するために名前空間を使用します。meta上のHelp:System messageもご覧下さい

MediaWiki・トーク

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

テンプレート

文書の状態を明らかにするタグなど、複数の文書に読み込まれるメタ情報のために使用されます。

テンプレート・トーク

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

ヘルプ

ヘルプ名前空間は通常、ヘルプファイル、説明書、使い方に関する文書などをおくために使われます。特別な性質はありません。

ヘルプ・トーク

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

カテゴリ

The カテゴリ 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 [[カテゴリ:Help]] causes a category link to appear at the bottom of the page (at the bottom in the box marked "カテゴリ"). 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: [[:カテゴリ:Help]] produces カテゴリ:Help. See Help:Categories for more details on category link syntax.

カテゴリ・トーク

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

地域化

Namespace names and aliases can be localized in translatewiki.net, using the special page AdvancedTranslate. To get started, visit translatewiki:Special:FirstSteps.

名前空間名の変更

テンプレート:hl2|標準名 テンプレート:hl2|ローカル名
Media メディア
Special 特別
(Main)
Talk トーク
User 利用者
User talk 利用者・トーク
Project アナログ回路研究資料
Project talk アナログ回路研究資料・トーク
File ファイル
File talk ファイル・トーク
MediaWiki MediaWiki
MediaWiki talk MediaWiki・トーク
Template テンプレート
Template talk テンプレート・トーク
Help ヘルプ
Help talk ヘルプ・トーク
Category カテゴリ
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.

名前空間の別名

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 テンプレート, such that typing T:Foo is equivalent to テンプレート:Foo, saving a few characters and seconds. An actual example would be on the English Wikipedia, where "WP" is an alias for アナログ回路研究資料, which is the namespace "Wikipedia".

By default, "Image" is an alias for ファイル, so [[Image:Wiki.png]] is equivalent to [[ファイル:Wiki.png]].

カスタム名前空間

See テンプレート:mediawiki 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.

名前空間の識別

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

マジック ワード

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 テンプレート:mediawiki, "special" for pages in the 特別 namespace, and "talk" for テンプレート:mediawiki. So CSS code such as the following can be used to change the appearance of an object based on its namespace:

<source lang=css> .ns-subject a { /* 主題ページの大部分のリンクを緑にする */

   color: #00FF00;

} .ns-talk a { /* トークページ内のリンクを青にする */

   color: #0000FF;

} .ns-3 a { /* さらに利用者トークページのリンクを赤にする */

   color: #FF0000;

} </source>

API

このウィキの API で使用できるすべての名前空間の完全な一覧はこちらにあります:

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

関連ページ

[[Category:Helpテンプレート:langcat|Namespaces]] [[Category:Namespaceテンプレート:langcat|Namespaces]]