You can create sub pages, that will automatically have a link back to the container page.
to create a page that is highly related to the parent page, and contains a link back to the parent page automatically.
They are primarily used for archiving old talk pages, and documents for non-current versions
but could be used for redirection (but Categories handle this more naturally)
History/United Kingdom could point to History of United Kingdom United Kingdom/History could also point to History of United Kingdom.
sub pages are not used in the main namespace, because...? (see Help:Subpages )
- Sub pages are enabled for the User namespace by default, but not the main namespace (see below)
- The entire "Top_Page/subpage/other_subpage" string can't be more than 255 characters, including the slashes.
How to do it
- Just put a "/" as the first character of your /wikilink, and it will be equivalent to:
- Note that if you don't have subpages enabled for that namespace, you'll create a top-level page whose name begins with '/'.
sub pages must be enabled for the Namespace !
Enabling in main name space
An easy way to enable subpages in the main namespace is to edit your LocalSettings.php and insert the following:
# Enable subpages in the main namespace $wgNamespacesWithSubpages[NS_MAIN] = true;
This overrides the DefaultSettings.php setting for namespace 0. In this manner you can override any single namespace without overriding more than you need to.
The names for namespaces are set in files such as those listed in Locales for the Wikimedia projects, with default Language.php:
/* private */ $wgNamespaceNamesEn = array( NS_MEDIA => 'Media', NS_SPECIAL => 'Special', NS_MAIN => '', NS_TALK => 'Talk', NS_USER => 'User', NS_USER_TALK => 'User_talk', NS_WIKIPEDIA => $wgMetaNamespace, NS_WIKIPEDIA_TALK => $wgMetaNamespace . '_talk', NS_IMAGE => 'Image', NS_IMAGE_TALK => 'Image_talk', NS_MEDIAWIKI => 'MediaWiki', NS_MEDIAWIKI_TALK => 'MediaWiki_talk', NS_TEMPLATE => 'Template', NS_TEMPLATE_TALK => 'Template_talk', NS_HELP => 'Help', NS_HELP_TALK => 'Help_talk', NS_CATEGORY => 'Category', NS_CATEGORY_TALK => 'Category_talk' );