Wikia

Community Central

WatchlistRandom pageRecent changes

Help:Subpages

Talk12
57,060pages on
this wiki
Construction-cone-icon-link.png This page concerns or has references to the Monaco skin, an obsolete Wikia skin.
  • Most of the information for this skin has been hidden or removed from the Help wiki.

Contents

An example of a subpage linking to its parent page.

A subpage is a page with a title that contains a slash, e.g. "Foo/Bar". Like normal titles, subpage titles are case sensitive, so Foo/Bar and Foo/bar are different pages.

Titles like this can always be made, but in some namespaces they will just be page names as if the slash were any ordinary letter or number.

However, in namespaces where the MediaWiki subpage feature is actually enabled, such pages will be technically subpages, with special abilities. The "parent" page (the page that has the same title up to the slash except for not having the slash and what follows - i.e. "Foo" in our example - is called the "basepage". In such a namespace, the following software tricks will work:

  • The subpage will automatically show, at top left, a back-link to its basepage, if the basepage exists. (See illustration at right.)
  • The subpage "Foo/Bar" can be linked from the "basepage" ("Foo") with simply "[[/Bar]]", not needing the "basepage" part spelled out.
    • To have text linking to a subpage not looking odd, you can add a slash at the end; the result is that both slashes are hidden, and [[/Bar/]] will display as just "Bar".

Note that if the basepage "Foo" is moved to "Foo2" (or any other title), the link [[/Bar]] will then point to "Foo2/Bar" but the subpage will not move automatically, so you will have broken the reciprocal links between them. Wikia's current "Move" page display offers an easy option for moving up to 100 subpages just by checking a box; so this problem should be rare.

How do we use subpages?Edit

Different wikis may have different policies on when subpages may or may not be used.

A common use is to allow users to make subpages in their userspace, such as a personal sandbox at [[User:Yourname/sandbox]].

Archives of talk pages are often subpages of the main talk page. For example, [[Talk:Main Page/Archive 1]].

Can I get a list all subpages of a parent page?Edit

You can find the subpages of a specific page by entering the title followed by a forward slash at Special:AllPages on the relevant wiki.

You can also use Special:PrefixIndex to do this. You can even make links like Special:PrefixIndex/Help:Customizing Monaco.

(Note: This also shows the parent page in the list; if you don't want this, and want only subpages, add a / at the end of the link, like Special:PrefixIndex/Help:Customizing Monaco/)

Can I hide the backlinks to parent pages?Edit

If you find the most prominent aspect of subpages (the parent backlink) to be an annoyance on your Wikia, you can hide it via CSS (add to MediaWiki:Common.css):

body.ns-0 #contentSub .subpages { display:none; }

You can also disable it for other namespaces by changing the ns-# number (shown "ns-0" above) to the appropriate number (view a page source to find the number of a namespace).

How can I refer to subpages in templates and parserfunctions?Edit

  • The subpage and basepage can be referred to via the {{SUBPAGENAME}} and {{BASEPAGENAME}} magic words (Click here for more info). This can be useful for templates and parserfunctions.
  • If a basepage exists, the #contentSub div will have an extra span in class="subpages". This can be styled via #contentSub .subpages {}.

Sub-subpagesEdit

A name with two slashes creates an additional level. The bottom level page shows a backlink divided into "basepage", "first level subpage", and so on, e.g. < Help:Subpages | subpage.

Why do some people not like subpages?Edit

WikipediaEdit

Wikipedia does not allow subpages in the main article namespace. A case against subpages was made early in the project, and it is generally regarded as easier to link to pages with ordinary slash-free titles than to link to subpages. Therefore, MediaWiki by default recognizes subpages only for talk pages and user pages.

Wikia's contrasting policiesEdit

Wikia, however, has globally enabled subpages on all core namespaces (0-15). If you feel the subpages detrimental to your Wikia's main namespace, please request that the subpage feature be switched off.

You can ask for custom namespaces to have subpages enabled or disabled during you namespace request.

See alsoEdit

Around Wikia's network

Random Wiki