Meryam Sahin (talk | contribs)
m (username removed) (log details removed)
Meryam Sahin (talk | contribs)
No edit summary
 
Line 17: Line 17:
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.
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 ==
== Create a subpage ==
A subpage is created by adding a slash and the subpage name to the parent page name. <br>
<excerpt-include page="Create pages" showpanel="false" excerpt="subpage" />
For example:
<syntaxhighlight lang="text">
Employee handbook
Employee handbook/Working hours
Employee handbook/Working hours/Flexible working
</syntaxhighlight>
In this example, '''Working hours''' is a subpage of '''Employee handbook''', and '''Flexible working''' is a subpage of '''Working hours'''.
[[File:subpages-syntax.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}}
== Subpage hierarchy ==
== 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>
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>

Latest revision as of 14:10, 26 August 2026

done
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

Subpages help organize information within a specific topic. A page can have multiple subpages that organize related information into smaller sections, for example by separating a general topic from more specific information.
There are several ways to create a subpage. One option is to use the New content button next to the page title in the main navigation.

Create a subpage from the New content menuCreate a subpage from the New content menu

To create a subpage from an existing page:

  1. Select the New content button next to the page title in the main navigation.
  2. Select New subpage.
BlueSpice "new" button menu
Create a subpage

The subpage is created under the current page. For example, a subpage called Tables under the page VisualEditor is displayed as VisualEditor/Tables.
The page hierarchy is shown in the breadcrumb navigation at the top of the page.

The slash (/) separates the parent page from the subpage. Do not use the slash as a regular character in a page title. For example, When/how to take a vacation creates a main page called When with a subpage called how to take a vacation, rather than a page with the title When/how to take a vacation.

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.