「ヘルプ:Subpages」を編集中
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
1行目: | 1行目: | ||
<languages/> | <languages/> | ||
− | {{ | + | {{PD Help Page}} |
+ | |||
<translate> | <translate> | ||
<!--T:1--> | <!--T:1--> | ||
9行目: | 10行目: | ||
<!--T:3--> | <!--T:3--> | ||
By default, MediaWiki's subpage feature is turned off in the main namespace, but can be used on [[<tvar|help-talkpages>Special:MyLanguage/Help:Talk pages</>|talk pages]] and [[<tvar|help-userpages>Special:MyLanguage/Help:User page</>|user pages]]. See [[<tvar|help-ns>Special:MyLanguage/Help:Namespaces</>|Help:Namespaces]] for description of namespaces and <tvar|man-wg-ns-with-sp>[[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 (<tvar|slash2><code>/</code></>) within a page name are simply part of the page name and do nothing special. | By default, MediaWiki's subpage feature is turned off in the main namespace, but can be used on [[<tvar|help-talkpages>Special:MyLanguage/Help:Talk pages</>|talk pages]] and [[<tvar|help-userpages>Special:MyLanguage/Help:User page</>|user pages]]. See [[<tvar|help-ns>Special:MyLanguage/Help:Namespaces</>|Help:Namespaces]] for description of namespaces and <tvar|man-wg-ns-with-sp>[[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 (<tvar|slash2><code>/</code></>) within a page name are simply part of the page name and do nothing special. | ||
− | |||
− | |||
− | |||
<!--T:4--> | <!--T:4--> | ||
− | + | It’s not possible to use forward slashes in the title of a page from a namespace where subpages are activated, however back slashes (<tvar|backslash><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]]" (<tvar|u1>U+29F8</>), which results in Foo⧸bar (cf. a real slash: Foo/bar), or the [[wikt:⁄|solidus]] (<tvar|u2>U+2044</>), which results in Foo⁄bar. Three possible technical disadvantages (apart from the visual difference from a real slash) arise from this hack: | |
</translate> | </translate> | ||
# <translate><!--T:5--> | # <translate><!--T:5--> | ||
22行目: | 20行目: | ||
# <translate><!--T:7--> | # <translate><!--T:7--> | ||
Both the [[<tvar|man-ns>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.</translate> | Both the [[<tvar|man-ns>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.</translate> | ||
+ | |||
<translate> | <translate> | ||
+ | |||
=== How it works === <!--T:8--> | === How it works === <!--T:8--> | ||
37行目: | 37行目: | ||
<!--T:11--> | <!--T:11--> | ||
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 [[<tvar|help-links-int>Special:MyLanguage/Help:Links#Internal</>|Help:Links]]. | 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 [[<tvar|help-links-int>Special:MyLanguage/Help:Links#Internal</>|Help:Links]]. | ||
− | |||
− | |||
− | |||
<!--T:12--> | <!--T:12--> | ||
45行目: | 42行目: | ||
<!--T:13--> | <!--T:13--> | ||
− | + | 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. | |
− | |||
− | |||
− | |||
=== Use of subpages === <!--T:14--> | === Use of subpages === <!--T:14--> | ||
54行目: | 48行目: | ||
<!--T:15--> | <!--T:15--> | ||
There are various uses for the subpage feature. Some of the typical usages of subpages are: | There are various uses for the subpage feature. Some of the typical usages of subpages are: | ||
− | * to create archives of old discussions under a [[<tvar|help-talkpages2>Special:MyLanguage/Help:Talk pages</>|talk page]] | + | * to create archives of old discussions under a [[<tvar|help-talkpages2>Special:MyLanguage/Help:Talk pages</>|talk page]], |
− | * to create scratchpad editing spaces under a [[<tvar|help-userpages2>Special:MyLanguage/Help:User page</>|user page]] | + | * to create scratchpad editing spaces under a [[<tvar|help-userpages2>Special:MyLanguage/Help:User page</>|user page]], |
− | * to create other language versions of a document in multilingual wikis | + | * to create other language versions of a document in multilingual wikis. |
− | |||
− | |||
− | |||
<!--T:16--> | <!--T:16--> | ||
83行目: | 74行目: | ||
<translate> | <translate> | ||
<!--T:20--> | <!--T:20--> | ||
− | Since the [[<tvar|help-magicwords>Special:MyLanguage/Help:Magic words</>|magic word]] <tvar|fullpagename | + | Since the [[<tvar|help-magicwords>Special:MyLanguage/Help:Magic words</>|magic word]] <tvar|fullpagename><nowiki>{{FULLPAGENAME}}</nowiki></> outputs the current page, the general wiki markup to show all subpages of the current page is <tvar|all-subpages><code><nowiki>{{Special:PrefixIndex/{{FULLPAGENAME}}/}}</nowiki></code></>. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
The [[:Category:Subpage extensions|subpage extensions]], such as [[<tvar|ext-subpagelist>Special:MyLanguage/Extension:SubPageList</>|Extension:SubPageList]], let you customize the display of subpages. | The [[:Category:Subpage extensions|subpage extensions]], such as [[<tvar|ext-subpagelist>Special:MyLanguage/Extension:SubPageList</>|Extension:SubPageList]], let you customize the display of subpages. | ||
95行目: | 80行目: | ||
<!--T:22--> | <!--T:22--> | ||
− | * | + | * {{ll|Manual:$wgNamespacesWithSubpages|Manual:$wgNamespacesWithSubpages}} |
* [[Meta:Help:Link#Subpage feature|Meta:Help:Link#Subpage feature]] | * [[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. | * [[Special:PrefixIndex]] — Provides a list of subpages. | ||
− | * [[ | + | * [[:Category:Subpage_extensions|Subpage related extensions]] |
− | |||
</translate> | </translate> | ||
− | [[Category:Help{{ | + | [[Category:Help{{Langcat|Subpages}}|{{PAGENAME}}]] |
− | [[Category:Subpage{{ | + | [[Category:Subpage{{Langcat|Subpages}}|{{PAGENAME}}]] |