Meryam Sahin (talk | contribs)
Created page with "<bookshelf src="Book:User manual" /> ==What is a subpage? == To structure wiki content, you can create subpages for a page. This is useful if you have a larger topic and you want to break this topic down into manageable chunks of information. For example, if you have a page about a car, you could have subpages about major car components such as Brakes and Transmission. Subpages can have subpages of their own. Subpages are automatically displayed in the breadcrumb naviga..."
 
Meryam Sahin (talk | contribs)
No edit summary
Line 1: Line 1:
<bookshelf src="Book:User manual" />
{{DISPLAYTITLE:Organize pages with subpages}}
==What is a subpage? ==
Pages can be organized hierarchically by creating subpages. A subpage is a page whose name is connected to another page with a slash (<code>/</code>). This creates a parent-child relationship between the pages and provides additional navigation context.
To structure wiki content, you can create subpages for a page. This is useful if you have a larger topic and you want to break this topic down into manageable chunks of information. For example, if you have a page about a car, you could have subpages about major car components such as Brakes and Transmission. Subpages can have subpages of their own.
== Pages and namespaces ==
 
Every page in a wiki belongs to a namespace. The '''Main''' namespace is used when no other namespace is specified. Other namespaces provide predefined contexts for specific types of content. <br>
Subpages are automatically displayed in the breadcrumb navigation of the page:
Namespaces and subpages serve different purposes:
 
* A '''namespace''' defines the context in which a page is stored, for example, '''Minutes''' or '''Controlled Document'''.
[[File:breadcrumb-navigation.png|525x525px]]
* A '''subpage''' creates a hierarchical relationship between pages within a namespace. <br>
 
Users normally do not need to select or configure namespaces manually. When specific functionality is available for a particular type of content, the corresponding entry point or creation option automatically provides the appropriate context. <br>
=== Characteristics of a subpage ===
For example, the '''Minutes overview''' automatically places a page created as part of a meeting in the appropriate namespace and page hierarchy.
Subpages are used to organise information hierarchically.
== When to use subpages ==
 
Subpages are useful when several pages belong together and their relationship should be visible in the page structure. <br>
Main features of subpages:<section begin="training" /><section begin="training-slides" />
Typical examples include:
 
* '''Large topics:''' Divide a large topic into several focused pages while keeping them connected through a common parent page.
*'''Syntax-based:''' A slash in the page title creates a subpage (e.g., <code>Installation Guide/System Preparation</code>).
* '''Content sections:''' Organize related information into a hierarchy, such as an employee handbook with separate pages for working hours, benefits, and workplace guidelines.
*'''Navigation:''' A subpage creates navigation points (breadcrumb).
* '''Detailed information:''' Separate detailed information from a general overview while maintaining the relationship between the pages.<br>
*'''Hierarchy:''' Enables "strongly associated" page hierarchies.
A relatively flat page hierarchy is recommended. Deeply nested structures can make content harder to navigate and maintain, even though MediaWiki technically allows multiple levels of subpages. The practical technical limit is the maximum length of the page URL, which is 255 characters.
*'''Language versions''': Management of language versions of a page.
== Create a subpage ==
 
A subpage is created by adding a slash and the subpage name to the parent page name. <br>
<section end="training-slides" />
For example:
[[File:Subpage syntax.drawio.png|alt=Subpage syntax|center|thumb|450x450px|Subpage syntax]]
<syntaxhighlight lang="text">
<section end="training" />
Employee handbook
 
Employee handbook/Working hours
=== Reasons for using subpages ===
Employee handbook/Working hours/Flexible working
Typical applications for subpages are:
 
*'''To create modular pages:''' For a larger topic, you can create a main page and link it to individual detail pages. The advantage is that the detail pages can then be specifically linked from other pages.
*'''To maintain archives''': If the discussions on the user discussion page become too long, file them in a subpage.
*'''To translate a page''': If the content of a page should be available in other languages. You can create a subpage in German for an English page, for example.
*T'''o document a template:''' If you have a very complex template, you can document its functionality in subpages of the template.
==Creating  a subpage==
To create a subpage, it is simply appended to the page name with a slash without spaces. Subpages can in turn have subpages:
<pre>Installation Guide/System Preparation
Installation Guide/System Preparation/Windows
Installation Guide/System Preparation Windows/IIS</pre>
{{Messagebox|type=note|Note text = Since MediaWiki interprets slashes as subpages, you should not use slashes in page names.|boxtype=note}}
 
== Insert subpages as a droplet ==
As of [[BlueSpice 4.3]], it is possible to display subpages via a content droplet.
 
==Creating a list of subpages==
To list the subpages of the current page, add the following tag to the source text of the page:<syntaxhighlight lang="text">
{{Special:PrefixIndex/{{FULLPAGENAME}}/}}
</syntaxhighlight>
</syntaxhighlight>
 
In this example, '''Working hours''' is a subpage of '''Employee handbook''', and '''Flexible working''' is a subpage of '''Working hours'''.
Example:
[[File:Subpage syntax.drawio.png|alt=Page hierarchy created with subpage syntax|center|thumb|450x450px|Page hierarchy created with subpage syntax]]
 
{{Textbox|boxtype=important|header=Important|text=MediaWiki interprets a slash in a page name as a subpage separator. Avoid using slashes in page names when a hierarchical relationship between pages is not intended.|icon=yes}}
To display the subpages of the page ''VisualEditor '' in the namespace Manual without showing the namespace or the main page name in the results and without including redirected pages, the syntax is:
== Subpage hierarchy ==
A subpage retains the name of its parent page as part of its full page name. The hierarchy is therefore part of the page name itself. <br>
For example:
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
{{Special:PrefixIndex/Manual:Extension/VisualEditor/ |hideredirects=1 |stripprefix=1}}
Installation guide/System preparation/Windows
</syntaxhighlight>
</syntaxhighlight>
 
The page '''Windows''' is associated with '''Installation guide/System preparation''' through the page name. The hierarchy is also shown in the breadcrumb navigation. <br>
​Output:
There is no separate hierarchy level that needs to be created or configured. The hierarchy results from the page names.
 
== Display subpages ==
{{Special:PrefixIndex/Manual:Extension/VisualEditor/ |hideredirects=1 |stripprefix=1}}
Subpages can be displayed as a list on a page. This can be useful for creating navigation pages or overviews of the content below a parent page.<br>
 
The available functionality for displaying page lists depends on the Galaxy version and configuration. For information about the current options for displaying page lists, see [[Display page lists]].
The correct display of the subpages is only visible in read-mode after saving the page. The list is displayed automatically in a multi-column layout
== Subpages and other ways of organizing content ==
 
Subpages and categories serve different purposes:
For more flexibility in the output of subpages, you can work with the [[Manual:Extension/DynamicPageList3|extension DPL 3]] which is included in BlueSpice.
* '''Subpages''' organize related pages into a hierarchy.
 
* '''Categories''' classify pages by shared characteristics or topics. <br>
{{BSVersion|bsvFrom=4.2|bsvTo=|bsvFeature=To create subpage lists, the extension SubPageList is}}
A page can therefore be part of a subpage hierarchy and belong to one or more categories at the same time. See [[Classify pages with categories]] for information about categories.
 
From BlueSpice 4.2., the [[Reference:SubPageList|SubPageList]] extension is also available. It makes it much easier to create a flexible subpage list, since it includes many useful parameters.
{{Box Links-en|Topic1=https://www.mediawiki.org/wiki/Help:Subpages|Topic2=[[Manual:Extension/DynamicPageList3 | Creating page lists]]|Topic3=[[Reference:SubPageList]]|Topic4=[[Reference:DynamicPageList3]]}}
 
 
[[En:{{FULLPAGENAME}}]]
[[de:Unterseiten_erstellen]]
 
 
 
 
[[Category:Concept]]

Revision as of 13:19, 25 August 2026

Pages can be organized hierarchically by creating subpages. A subpage is a page whose name is connected to another page with a slash (/). This creates a parent-child relationship between the pages and provides additional navigation context.

Pages and namespaces

Every page in a wiki belongs to a namespace. The Main namespace is used when no other namespace is specified. Other namespaces provide predefined contexts for specific types of content.
Namespaces and subpages serve different purposes:

  • A namespace defines the context in which a page is stored, for example, Minutes or Controlled Document.
  • A subpage creates a hierarchical relationship between pages within a namespace.

Users normally do not need to select or configure namespaces manually. When specific functionality is available for a particular type of content, the corresponding entry point or creation option automatically provides the appropriate context.
For example, the Minutes overview automatically places a page created as part of a meeting in the appropriate namespace and page hierarchy.

When to use subpages

Subpages are useful when several pages belong together and their relationship should be visible in the page structure.
Typical examples include:

  • Large topics: Divide a large topic into several focused pages while keeping them connected through a common parent page.
  • Content sections: Organize related information into a hierarchy, such as an employee handbook with separate pages for working hours, benefits, and workplace guidelines.
  • Detailed information: Separate detailed information from a general overview while maintaining the relationship between the pages.

A relatively flat page hierarchy is recommended. Deeply nested structures can make content harder to navigate and maintain, even though MediaWiki technically allows multiple levels of subpages. The practical technical limit is the maximum length of the page URL, which is 255 characters.

Create a subpage

A subpage is created by adding a slash and the subpage name to the parent page name.
For example:

Employee handbook
Employee handbook/Working hours
Employee handbook/Working hours/Flexible working

In this example, Working hours is a subpage of Employee handbook, and Flexible working is a subpage of Working hours.

Page hierarchy created with subpage syntax
Page hierarchy created with subpage syntax
ImportantMediaWiki interprets a slash in a page name as a subpage separator. Avoid using slashes in page names when a hierarchical relationship between pages is not intended.

Subpage hierarchy

A subpage retains the name of its parent page as part of its full page name. The hierarchy is therefore part of the page name itself.
For example:

Installation guide/System preparation/Windows

The page Windows is associated with Installation guide/System preparation through the page name. The hierarchy is also shown in the breadcrumb navigation.
There is no separate hierarchy level that needs to be created or configured. The hierarchy results from the page names.

Display subpages

Subpages can be displayed as a list on a page. This can be useful for creating navigation pages or overviews of the content below a parent page.
The available functionality for displaying page lists depends on the Galaxy version and configuration. For information about the current options for displaying page lists, see Display page lists.

Subpages and other ways of organizing content

Subpages and categories serve different purposes:

  • Subpages organize related pages into a hierarchy.
  • Categories classify pages by shared characteristics or topics.

A page can therefore be part of a subpage hierarchy and belong to one or more categories at the same time. See Classify pages with categories for information about categories.