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

提供: ひつじ小屋別館2代目
移動先: 案内検索
(1版)
(Created page with "=== 動作する場所 ===")
1行目: 1行目:
 +
<languages/>
 
{{PD Help Page}}
 
{{PD Help Page}}
'''サブページ'''を使うと、ウィキページに一定の階層を作ることができます。階層の段階はスラッシュ(<code>/</code>)で区切って指定します。
 
  
=== 有効な場所 ===
+
'''サブページ'''はウィキページに階層的な構造をもたらします。階層の各段階はスラッシュ(<code>/</code>)で区切られます。
MediaWikiサブページ機能のデフォルト設定は、標準名前空間では'''無効'''、[[Help:Talk pages/ja|会話用ページ]]や[[Help:User page/ja|利用者ページ]]では有効です。詳しくは[[Help:Namespaces/ja]]をご覧ください。サブページ機能が無効にしてある名前空間では、ページ名に含まれる(/)は単にページ名の一部で特別なことは何も起きません。
 
  
=== 機能 ===
+
=== 動作する場所 ===
ページ名中のスラッシュ(<code>/</code>)は、そのページを親ページとサブページの関係に再帰的に構成します。例えば以下の通りです。
 
  
* [[Help:Subpages]] - このページの親ページ(英語版)
+
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.
* [[Help:Subpages/ja]] - このページ
 
* [[Help:Subpages/ja/subpage]] - このページの子ページ、[[Help:Subpages]]の孫ページ
 
  
ページ名のスラッシュ後の部分は、冒頭の一文字を含めて大文字小文字を区別しますので注意してください。
+
It’s not possible to use forward slashes in the title of a page from a namespace where subpages are activated, however 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:Talk pages/ja|会話用ページ]]の下に過去の議論の過去ログを作る
 
* [[Help:User page/ja|利用者ページ]]の下に草稿用の編集領域を作る
 
* 多言語ウィキにおいて文書の他言語版を作る
 
  
サブページは情報を階層的に構成するのに便利です。一方で、サブページのページ名は長くなりがちであり、覚えにくくなりがちです。ウィキ利用者が使いやすいように、サブページの使用はなるべく少なくするほうがよいでしょう。ページの整理は[[Help:Categories/ja|カテゴリ]]機能を使ってもできますし、このほうがページを階層的なネットワークに構成できます。
+
Slashes (/) within a page name break the page into parent and subpages, recursively, e.g.:
  
{{Admin tip/ja|tip={{mediawiki|Manual:$wgNamespacesWithSubpages/ja|$wgNamespacesWithSubpages}} を設定することでサブページ機能を有効にする名前空間を変更できます。}}
+
* [[Help:Subpages]] – this page
 +
* [[Help:Subpages/subpage]] – child page
 +
* [[Help:Subpages/subpage/sub-subpage]] – grandchild page
 +
* [[Help:Subpages/subpage/sub-subpage/sub-sub-subpage]] – great grandchild page
 +
* [[Help:Subpages/subpage/sub-subpage/sub-sub-subpage/sub-sub-sub-subpage]] – great great grandchild page
  
==関連項目==
+
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]].
* [[Meta:ヘルプ:リンク#サブページ機能]]
 
* [[Help:Variables/ja#ページ名]]
 
  
{{languages}}
+
Note that the part of page names after a slash is case sensitive '''including the first letter.'''
  
[[Category:Help/ja|{{PAGENAME}}]]
+
In subpages, (a) link(s) back to antecedent page(s) will automatically appear at the top. These links do not appear, however, if the antecedent pages have not yet been created or if the subpage feature is turned off.
[[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.
 +
 
 +
== サブページの表示 ==
 +
 
 +
Subpages can be listed very plainly by transcluding [[Special:PrefixIndex]], like this:
 +
 
 +
<pre>
 +
{{Special:PrefixIndex/Help:Subpages/}}
 +
</pre>
 +
 
 +
Which produces this:
 +
 
 +
{{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>.
 +
The [[:Category:Subpage extensions|subpage extensions]], such as [[Special:MyLanguage/Extension:SubPageList|Extension:SubPageList]], let you customize the display of subpages.
 +
 
 +
== 関連ページ ==
 +
 
 +
* {{ll|Manual:$wgNamespacesWithSubpages|Manual:$wgNamespacesWithSubpages}}
 +
* [[Meta:Help:Link#Subpage feature|Meta:Help:Link#Subpage feature]]
 +
* {{ll|Help:Variables#Page-names|Help:Variables#Page names}}
 +
* [[Special:PrefixIndex]] — Provides a list of subpages.
 +
* [[:Category:Subpage_extensions|Subpage related extensions]]
 +
 
 +
[[Category:Help{{Langcat|Subpages}}|{{PAGENAME}}]]
 +
[[Category:Subpage{{Langcat|Subpages}}|{{PAGENAME}}]]

2014年1月21日 (火) 18:13時点における版

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.

It’s not possible to use forward slashes in the title of a page from a namespace where subpages are activated, however 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.


動作の仕組み

Slashes (/) within a page name break the page into parent and subpages, recursively, e.g.:

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.

Note that the part of page names after a slash is case sensitive including the first letter.

In subpages, (a) link(s) back to antecedent page(s) will automatically appear at the top. These links do not appear, however, if the antecedent pages have not yet been created or if the subpage feature is turned off.

サブページの用途

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.

サブページの表示

Subpages can be listed very plainly by transcluding Special:PrefixIndex, like this:

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

Which produces this:

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}}/}}. The subpage extensions, such as Extension:SubPageList, let you customize the display of subpages.

関連ページ

案内メニュー