Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Help:Link
(section)
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 links == A wikilink needs a <kbd>[[''fullpagename'']<nowiki />]</kbd>, and this is not optional except when it links to or from a [[Help:subpage|subpage]]. A wikilink to its parent page is <kbd>[[../]]</kbd>, and, although no page name is given, the [[wp:pgn|fullpagename]] is rendered. On the parent a wikilink to a subpage can use <kbd>[[/''subpagename'']<nowiki />]</kbd> to render a subpagename instead. Although subpages are created in article space, subpage linking does not fully function there. Subpage linking works as expected to link to any pages under a root parent page: * section linking: <kbd>[[../#''section'']]</kbd> * child-to-child subpage linking: <kbd>[[../''[[wp:pgn#Subpagename_and_basepagename|subpagename]]'']<nowiki />]</kbd> * parent's parent <kbd>[[../../]]</kbd> * including the <kbd>[[../{{!}}[[wp:pipe trick|''pipe trick'']]</kbd> * and including [[help:transclusion|transclusion]]s: <kbd>{{../}<nowiki />} </kbd> and <kbd>{{/''subpagename''}<nowiki />} </kbd> Consider that there are about 140 {{search link|prefix:Wikipedia: Manual of style/|subpages of the ''Manual of style''}} arranged in 97 branches, 35 of which have two subpages, and 5 of which have three subpages. Subpage links save typing. Say you're editing this closely related group of fullpagenames: :[[Wikipedia:Manual of Style/Accessibility/Signatures]] :[[Wikipedia:Manual of Style/Accessibility/Data tables tutorial]] :[[Wikipedia:Manual of Style/Accessibility/Data tables tutorial/Internal guidelines]] {| class="wikitable" |- ! On subpagename !! You type!! You get!! Links to |- | Data tables tutorial || <code>[[../]<nowiki />]</code> || {{font color|blue|Wikipedia:Manual of Style/Accessibility}} || Parent |- | Internal{{zwsp}}guidelines || <code>[[../../]]</code> || {{font color|blue|Wikipedia:Manual of Style/Accessibility}} || Grandparent |- | Accessibility || <code>[[/Signatures]<nowiki />]</code> || {{font color|blue|/Signatures}}|| Child |- | Accessibility || <code>[[/Signatures<mark>/</mark>]<nowiki/>]</code> || {{font color|blue|Signatures}}|| Child |- | Data tables tutorial || <code>[[../Signatures]<nowiki />]</code> || {{font color|blue|Wikipedia:Manual of Style/Accessibility/Signatures}}|| Sibling |- | Data tables tutorial || <code>[[../Signatures/]<nowiki />]</code> || {{font color|blue|Signatures}}|| Sibling |- | Internal{{zwsp}}guidelines || style=white-space:nowrap | <code>[[../../Signatures]<nowiki />]</code> || {{font color|blue|Wikipedia:Manual of Style/Accessibility/Signatures}}|| Uncle |- | Signatures || style=white-space:nowrap | <code>[[../Data tables tutorial/Internal guidelines]<nowiki />]</code> || {{font color|blue|Wikipedia:Manual of Style/Accessibility/Data tables tutorial/Internal guidelines}}|| Nephew |} To see this page's array of subpage variables and markup four levels deep, see [[/one/two/three/four]], and from there go to level two at ''one/two''. Markup <kbd>[<nowiki />[../]]</kbd> addresses the ''basepagename'', except when a ''pagename'' includes a <kbd>/</kbd> slash character (allowed), the basepagename/subpagename variables' characters are skewed. To see all this, and how adding an extra <kbd>../</kbd> construct fixes the resulting [[wp:redlink|redlink]], see [[/sub/page/name1/sub/page/name2/subpage level 3]], and from there go to ''sub/page/name2''. Note that the top of every subpage shows the [[breadcrumb (navigation)|navigation links]] to all ''parent'' subpagenames. From these you can easily gauge levels and linking constructs. For more information: * See [[Wikipedia:Page name#Subpagename and basepagename]]. * ''Create'' a subpage by using a ''[[Help:red link|red link]]''. * See [[m:Help:Link#Subpage feature]]. * See examples at [[m:Link/a/b]] and [[m:Help:Link/a/b]].
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)