Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Numinix MediaWiki Demo
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Help/Links
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Subpage feature == <!--T:288--> </translate> <translate><!--T:289--> MediaWiki has a [[<tvar name=1>mw:Special:MyLanguage/Help:subpages</tvar>|subpage]] feature that may or may not be active depending on the project and namespace.</translate> <translate><!--T:290--> If it's activated, the following rules apply; otherwise, "A/b" is simply a standalone page with that name.</translate> <translate><!--T:291--> A page's [[w:tree structure|tree structure]] is formed using forward slashes in page names: A/b is considered a subpage of A, making A the parent of A/b; additionally, A/b/c is a subpage of A/b; meanwhile, A/a, A/b, and A/c are categorized as sibling pages.</translate> <translate><!--T:292--> The subpage body automatically displays links to all parent pages without needing specific wikitext.</translate> <translate><!--T:293--> These links appear even if the parent page doesn't exist.</translate> <translate><!--T:294--> However, if any ancestor page in the sequence is missing, the chain of links will stop before that point.</translate> <translate><!--T:295--> Additionally, the capitalization of letters after the forward slash in the page name matters, meaning "<tvar name=1>/subpage</tvar>" and "<tvar name=2>/Subpage</tvar>" refer to different pages.</translate> <translate> <!--T:296--> The functions, [[<tvar name=1>Special:MyLanguage/Help:What links here</tvar>|What links here]] and [[<tvar name=2>Special:MyLanguage/Help:Related changes</tvar>|Help:Related changes]] do not consider these automatically generated links. <!--T:297--> When the subpage feature is enabled within a namespace, any forward slash in a page's name automatically creates a subpage structure, regardless of whether it was intended or not. <!--T:298--> You can find a list of subpages using <tvar name=1>[[Special:PrefixIndex]]</tvar>. === Using variables === <!--T:299--> <!--T:300--> When utilizing the subpage feature within namespace A on page A:B/c/d, <tvar name=1><nowiki></nowiki></tvar> shows B/c while <tvar name=2><nowiki></nowiki></tvar> shows d. === Using relative links === <!--T:301--> <!--T:302--> Within a subpage hierarchy, you can utilize the following relative links: </translate> * <translate><!--T:303--> <tvar name=1><nowiki>[[../]]</nowiki></tvar> links to the parent page of the current subpage.</translate> <translate><!--T:304--> For example, on page A/b, it takes you to page A, and on page A/b/c, it directs you to page A/b.</translate> * <translate><!--T:305--> <tvar name=1><nowiki>[[../../]]</nowiki></tvar> links to the grandparent page of the current subpage.</translate> <translate><!--T:306--> For example, on page A/b/c, it points to page A.</translate> * <translate><!--T:307--> <tvar name=1><nowiki>[[../s]]</nowiki></tvar> links to a sibling page of the current subpage.</translate> <translate><!--T:308--> For example, on page A/b, it leads to page A/s.</translate> * <translate><!--T:309--> <tvar name=1><nowiki>[[../../s]]</nowiki></tvar> links to an "uncle" page of the current subpage.</translate> <translate><!--T:310--> For example, on page A/b/c, it points to page A/s.</translate> * <translate><!--T:311--> <tvar name=1><nowiki>[[/s]]</nowiki></tvar> links direct to a subpage.</translate> <translate><!--T:312--> On page A, it functions similarly to <tvar name=1><nowiki>[[A/s]]</nowiki></tvar>.</translate> <translate><!--T:313--> However, linking from a namespace with an enabled subpage feature to a main namespace page starting with <tvar name=1>"/"</tvar> requires a workaround: adding a colon before the page name.</translate> <translate><!--T:314--> Relative links remain functional even when all pages within a hierarchy are renamed to reflect a change in the root's name, even if the root becomes a child of a new parent.</translate> <translate><!--T:315--> Users with the appropriate permissions, such as administrators and those with the <tvar name=1><code>move-subpages</code></tvar> right, have the option to move both the main page and its subpages during a renaming process.</translate> <translate><!--T:316--> Learn more about subpages at [[w:Wikipedia:Subpages|Subpages]].</translate> <translate><!--T:317--> See examples at [[<tvar name=1>Special:MyLanguage/Help:Links/example</tvar>|Help:Links/example]] and [[<tvar name=2>Special:MyLanguage/Help:Links/example/example2</tvar>|Help:Links/example/example2]]</translate> <translate> === Subpage activation === <!--T:318--> <!--T:319--> This feature is only enabled in namespaces specified in the <tvar name=1></tvar> configuration setting, either its [[<tvar name=2>Special:MyLanguage/Manual:$wgNamespacesWithSubpages#Default value</tvar>|default namespaces]], or any additional namespaces set in <tvar name=4></tvar>
Summary:
Please note that all contributions to Numinix MediaWiki Demo may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)