「ヘルプ:Subpages/ja」の版間の差分

提供: ひつじ小屋別館2代目
移動先: 案内検索
(Bot: convert to multilingual template)
(1版 をインポートしました)
 
(5人の利用者による、間の15版が非表示)
1行目: 1行目:
{{PD Help Page}}
+
<languages/>
'''サブページ'''を使うと、ウィキページに一定の階層を作ることができます。階層の段階はスラッシュ(<code>/</code>)で区切って指定します。
+
{{TNT|PD Help Page}}
 +
'''下位ページ''' ('''サブページ''') はウィキページに階層的な構造をもたらします。階層の各段階はスラッシュ(<code>/</code>)で区切られます。
  
=== 有効な場所 ===
+
=== 動作する場所 ===
MediaWikiサブページ機能のデフォルト設定は、標準名前空間では'''無効'''、[[Help:Talk pages/ja|会話用ページ]]や[[Help:User page/ja|利用者ページ]]では有効です。詳しくは[[Help:Namespaces/ja]]をご覧ください。サブページ機能が無効にしてある名前空間では、ページ名に含まれる(/)は単にページ名の一部で特別なことは何も起きません。
 
  
=== 機能 ===
+
By default, MediaWiki's subpage feature is turned off in the main namespace, but can be used on [[Special:MyLanguage/Help:Talk pages|talk pages]] and [[Special:MyLanguage/Help:User page|user pages]]. See [[Special:MyLanguage/Help:Namespaces|Help:Namespaces]] for description of namespaces and [[Special:MyLanguage/Manual:$wgNamespacesWithSubpages#Enabling-for-a-namespace|$wgNamespacesWithSubpages]] to learn how to modify this default behavior. In namespaces where the feature is switched off, any forward slashes (<code>/</code>) within a page name are simply part of the page name and do nothing special.
ページ名中のスラッシュ(<code>/</code>)は、そのページを親ページとサブページの関係に再帰的に構成します。例えば以下の通りです。
 
  
* [[Help:Subpages]] - このページの親ページ(英語版)
+
When subpages are enabled in a namespace, a forward slash in the title of a page always causes the page to be a subpage, even when this is not intentional or desirable.
* [[Help:Subpages/ja]] - このページ
 
* [[Help:Subpages/ja/subpage]] - このページの子ページ、[[Help:Subpages]]の孫ページ
 
  
ページ名のスラッシュ後の部分は、冒頭の一文字を含めて大文字小文字を区別しますので注意してください。
+
As a consequence of the forward slash being a reserved character when subpages are enabled, an alternative character might be needed.  Back slashes (<code>\</code>) are treated as normal characters in subpage naming and can be used in place of forward slashes. Additionally, as a crude hack, a character similar to the forward slash can be used instead, such as the "[[wikt:⧸|big solidus]]" (U+29F8), which results in Foo⧸bar (cf. a real slash: Foo/bar), or the [[wikt:⁄|solidus]] (U+2044), which results in Foo⁄bar. Three possible technical disadvantages (apart from the visual difference from a real slash) arise from this hack:
 +
# People without the necessary fonts won’t be able to view the character properly;
 +
# Redirects from the title with a slash must be created, so that linking and search will work correctly.
 +
# Both the [[Special:MyLanguage/Manual:Namespace#Subject-and-talk|subject and talk versions]] of a page (and their corresponding subpages, e.g. discussion archives) need to use the hack, so that moving a page would take all connected pages to the new title (if that setting is selected during the move). For example, subpages are disabled in the main namespace in Wikipedia, so while the talk page would need to use the solidus character to prevent having them marked as subpages, the corresponding page in the main namespace could keep an actual slash, is this goes unnoticed.
 +
=== 動作の仕組み ===
  
サブページには、祖先ページに戻るリンクが自動的にトップに現れます。ただし、親ページがまだ作成されていない場合これらのリンクは現れません。
+
ページ名にスラッシュ (/) を使用することで、ページを親ページと下位ページに再帰的に分割できます。例:
  
=== サブページの使用目的 ===
+
* [[Help:Subpages]] – このページ
サブページはいろいろな使い方ができます。一般的な使い方には次のようなものがあります。
+
* [[Help:Subpages/subpage]] – 子ページ
* [[Help:Talk pages/ja|会話用ページ]]の下に過去の議論の過去ログを作る
+
* [[Help:Subpages/subpage/sub-subpage]] – 孫ページ
* [[Help:User page/ja|利用者ページ]]の下に草稿用の編集領域を作る
+
* [[Help:Subpages/subpage/sub-subpage/sub-sub-subpage]] – 曾孫ページ
* 多言語ウィキにおいて文書の他言語版を作る
+
* [[Help:Subpages/subpage/sub-subpage/sub-sub-subpage/sub-sub-sub-subpage]] – 玄孫ページ
  
サブページは情報を階層的に構成するのに便利です。一方で、サブページのページ名は長くなりがちであり、覚えにくくなりがちです。ウィキ利用者が使いやすいように、サブページの使用はなるべく少なくするほうがよいでしょう。ページの整理は[[Help:Categories/ja|カテゴリ]]機能を使ってもできますし、このほうがページを階層的なネットワークに構成できます。
+
You can link directly to any page’s subpage using the normal ''double square brackets'' notation, by providing the full name – including the slash(es) and the individual subpage name(s).  You can also link from one page to one of ''its own'' subpages using certain shortcuts, which are covered at [[Special:MyLanguage/Help:Links#Internal|Help:Links]].
  
{{Admin tip/ja|tip={{mediawiki|Manual:$wgNamespacesWithSubpages/ja|$wgNamespacesWithSubpages}} を設定することでサブページ機能を有効にする名前空間を変更できます。}}
+
There are [[Help:Magic words#Page names|Magic words]] to split the name of a subpage, such as <code><nowiki>{{BASEPAGENAME}}</nowiki></code> and <code><nowiki>{{SUBPAGENAME}}</nowiki></code>, and the parser function <code><nowiki>{{</nowiki>[[Special:MyLanguage/Help:Extension:ParserFunctions#.23titleparts|#titleparts:]]<nowiki>}}</nowiki></code> for finer control.
  
==関連項目==
+
ページ名のスラッシュ以降の部分では、'''先頭の文字も含め'''、大文字・小文字が区別されることにご注意ください。
* [[Meta:ヘルプ:リンク#サブページ機能]]
 
* [[Help:Variables/ja#ページ名]]
 
  
{{languages}}
+
[[w:Breadcrumb links|Breadcrumb links]] will appear automatically at the top of the subpage, linking to each parent page that exists. These links do not appear, however, if the parent pages have not yet been created or if the subpage feature is turned off.
  
[[Category:Help/ja|{{PAGENAME}}]]
+
As these automatic breadcrumb links are not in the page content, the breadcrumbs do not place parent pages in the [[Help:What links here|What links here]] and [[Help:Related changes|Related changes]] lists.
[[Category:Subpage/ja|{{PAGENAME}}]]
+
 
 +
=== 下位ページの使用 ===
 +
 
 +
There are various uses for the subpage feature. Some of the typical usages of subpages are:
 +
* to create archives of old discussions under a [[Special:MyLanguage/Help:Talk pages|talk page]],
 +
* to create scratchpad editing spaces under a [[Special:MyLanguage/Help:User page|user page]],
 +
* to create other language versions of a document in multilingual wikis.
 +
 
 +
Subpages are useful for organising information hierarchically. On the other hand, subpages tend to have a long name that is hard to remember, so it may be more user-friendly to use them as little as possible. You can also organize pages with the [[Special:MyLanguage/Help:Category|category]] feature, which is more suitable for creating a hierarchical network of information.
 +
 
 +
== 下位ページの表示 ==
 +
 
 +
下位ページを列挙するのは非常に単純で、以下のように [[Special:PrefixIndex]] を参照読み込みするだけです:
 +
 
 +
<pre>
 +
{{Special:PrefixIndex/Help:Subpages/}}
 +
</pre>
 +
 
 +
結果は以下のようになります:
 +
 
 +
{{Special:PrefixIndex/Help:Subpages/}}
 +
 
 +
Since the [[Special:MyLanguage/Help:Magic words|magic word]] <nowiki>{{FULLPAGENAME}}</nowiki> outputs the current page, the general wiki markup to show all subpages of the current page is <code><nowiki>{{Special:PrefixIndex/{{FULLPAGENAME}}/}}</nowiki></code>.
 +
You can pass parameters to this, e.g. <nowiki>{{Special:PrefixIndex/{{FULLPAGENAME}}/ |hideredirects=1 |stripprefix=1}}</nowiki>
 +
The [[:Category:Subpage extensions|subpage extensions]], such as [[Special:MyLanguage/Extension:SubPageList|Extension:SubPageList]], let you customize the display of subpages.
 +
 
 +
== 関連項目 ==
 +
 
 +
* [[Special:MyLanguage/Manual:$wgNamespacesWithSubpages|Manual:$wgNamespacesWithSubpages]]
 +
* [[Meta:Help:Link#Subpage feature|Meta:Help:Link#Subpage feature]]
 +
* [[Special:MyLanguage/Help:Variables#Page-names|Help:Variables#Page names]]
 +
* [[Special:PrefixIndex]] — Provides a list of subpages.
 +
* [[Special:MyLanguage/:Category:Subpage_extensions|Subpage related extensions]]
 +
* {{Wikipedia|Subpages}}
 +
 
 +
[[Category:Help{{translation}}|{{PAGENAME}}]]
 +
[[Category:Subpage{{translation}}|{{PAGENAME}}]]

2016年1月11日 (月) 20:58時点における最新版

PD 注意: このページを編集すると、編集内容が CC0 のもとで公開されることに同意したと見なされます。詳細はパブリック・ドメインのヘルプ ページを参照してください。
PD
</div>

下位ページ (サブページ) はウィキページに階層的な構造をもたらします。階層の各段階はスラッシュ(/)で区切られます。

動作する場所[編集]

By default, MediaWiki's subpage feature is turned off in the main namespace, but can be used on talk pages and user pages. See Help:Namespaces for description of namespaces and $wgNamespacesWithSubpages to learn how to modify this default behavior. In namespaces where the feature is switched off, any forward slashes (/) within a page name are simply part of the page name and do nothing special.

When subpages are enabled in a namespace, a forward slash in the title of a page always causes the page to be a subpage, even when this is not intentional or desirable.

As a consequence of the forward slash being a reserved character when subpages are enabled, an alternative character might be needed. Back slashes (\) are treated as normal characters in subpage naming and can be used in place of forward slashes. Additionally, as a crude hack, a character similar to the forward slash can be used instead, such as the "big solidus" (U+29F8), which results in Foo⧸bar (cf. a real slash: Foo/bar), or the solidus (U+2044), which results in Foo⁄bar. Three possible technical disadvantages (apart from the visual difference from a real slash) arise from this hack:

  1. People without the necessary fonts won’t be able to view the character properly;
  2. Redirects from the title with a slash must be created, so that linking and search will work correctly.
  3. Both the subject and talk versions of a page (and their corresponding subpages, e.g. discussion archives) need to use the hack, so that moving a page would take all connected pages to the new title (if that setting is selected during the move). For example, subpages are disabled in the main namespace in Wikipedia, so while the talk page would need to use the solidus character to prevent having them marked as subpages, the corresponding page in the main namespace could keep an actual slash, is this goes unnoticed.

動作の仕組み[編集]

ページ名にスラッシュ (/) を使用することで、ページを親ページと下位ページに再帰的に分割できます。例:

You can link directly to any page’s subpage using the normal double square brackets notation, by providing the full name – including the slash(es) and the individual subpage name(s). You can also link from one page to one of its own subpages using certain shortcuts, which are covered at Help:Links.

There are Magic words to split the name of a subpage, such as {{BASEPAGENAME}} and {{SUBPAGENAME}}, and the parser function {{#titleparts:}} for finer control.

ページ名のスラッシュ以降の部分では、先頭の文字も含め、大文字・小文字が区別されることにご注意ください。

Breadcrumb links will appear automatically at the top of the subpage, linking to each parent page that exists. These links do not appear, however, if the parent pages have not yet been created or if the subpage feature is turned off.

As these automatic breadcrumb links are not in the page content, the breadcrumbs do not place parent pages in the What links here and Related changes lists.

下位ページの使用[編集]

There are various uses for the subpage feature. Some of the typical usages of subpages are:

  • to create archives of old discussions under a talk page,
  • to create scratchpad editing spaces under a user page,
  • to create other language versions of a document in multilingual wikis.

Subpages are useful for organising information hierarchically. On the other hand, subpages tend to have a long name that is hard to remember, so it may be more user-friendly to use them as little as possible. You can also organize pages with the category feature, which is more suitable for creating a hierarchical network of information.

下位ページの表示[編集]

下位ページを列挙するのは非常に単純で、以下のように Special:PrefixIndex を参照読み込みするだけです:

{{Special:PrefixIndex/Help:Subpages/}}

結果は以下のようになります:

Since the magic word {{FULLPAGENAME}} outputs the current page, the general wiki markup to show all subpages of the current page is {{Special:PrefixIndex/{{FULLPAGENAME}}/}}. You can pass parameters to this, e.g. {{Special:PrefixIndex/{{FULLPAGENAME}}/ |hideredirects=1 |stripprefix=1}} The subpage extensions, such as Extension:SubPageList, let you customize the display of subpages.

関連項目[編集]

Wikipedia-logo.png Wikipedia: Subpages

案内メニュー