User:Philcha/Sandbox/Reference methods/Relative Top

Inside a subpage hierarchy the following relative links can be used: See also w:Wikipedia:Subpages, and the example pages m:Link/a/b and m:Help:Link/a/b. The subpage feature works in both namespaces.
 * ../ links to the parent of the current subpage, e.g., on A/b it links to A, on A/b/c it links to A/b.
 * ../../ links to the grandparent of the current subpage, e.g., on A/b/c it links to A.
 * ../s links to a sibling of the current subpage, e.g., on A/b, it links to A/s.
 * ../../s links to an "uncle" of the current subpage, e.g., on A/b/c, it links to A/s.
 * /s links to a subpage, e.g. on A it is the same as A/s. Because of this, linking from a namespace where the subpage feature is enabled to a page in the main namespace with a name starting with "/", requires a workaround: put a colon before the pagename.
 * Linking to an anchor of an ancestor does not work; attempting that gives a link to a page with the name consisting of the name of the ancestor followed by "/".
 * Relative links still work if all pages of a tree are renamed according a name change of the root, including making it a child of a new root.

User:Philcha/Sandbox/Reference methods/Relative Top links to A child and B child