Difference between revisions of "Help:Subpages"

From eLinux.org
Jump to: navigation, search
m (How it works: gram.)
 
m (1 revision: Attempting latest help pages upload.)
 
(2 intermediate revisions by 2 users not shown)
Line 11: Line 11:
 
* [[Help:Subpages/subpage]] - child page
 
* [[Help:Subpages/subpage]] - child page
 
* [[Help:Subpages/subpage/sub-subpage]] - grandchild 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
  
Note that the part of page names after a slash is case sensitive including the first letter.
+
Note that the part of page names after a slash is case sensitive '''including the first letter'''.
  
 
In subpages, a link back to antecedent pages will automatically appear at the top. These links do not appear, however, if the antecedent pages have not yet been created.
 
In subpages, a link back to antecedent pages will automatically appear at the top. These links do not appear, however, if the antecedent pages have not yet been created.
Line 23: Line 25:
  
 
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 [[Help:Category|category]] feature, which is more suitable for creating a hierarchical network of information.  
 
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 [[Help:Category|category]] feature, which is more suitable for creating a hierarchical network of information.  
 
{{Admin tip|tip=You can specify the namespaces to have the subpage feature enabled with {{mediawiki|Manual:$wgNamespacesWithSubpages|$wgNamespacesWithSubpages}} array.}}
 
  
 
==See also==
 
==See also==
 
* [[Meta:Help:Link#Subpage feature]]
 
* [[Meta:Help:Link#Subpage feature]]
 
* [[Help:Variables#Page names]]
 
* [[Help:Variables#Page names]]
 +
* [[Special:PrefixIndex]] – Provides a list of subpages.
  
 
{{languages}}
 
{{languages}}

Latest revision as of 01:12, 21 January 2011

PD Important note: When you edit this page, you agree to release your contribution into the public domain. If you don't want this or can't do this because of license restrictions, please don't edit. This page is one of the Public Domain Help Pages, which can be freely copied into fresh wiki installations and/or distributed with MediaWiki software; see Help:Contents for an overview of all pages. See Project:PD help/Copying for instructions. PD

Subpages introduce some hierarchical organization into wiki pages, with levels of the hierarchy separated by slashes (/).

Where it works

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. In namespaces where the feature is switched off, any slashes (/) within a page name are simply part of the page name and do nothing special.

How it works

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

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

In subpages, a link back to antecedent pages will automatically appear at the top. These links do not appear, however, if the antecedent pages have not yet been created.

Use of subpages

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.

See also

Language: English