User:Stevesuny/sandbox/magic-words

= = FULLPAGENAME Namespace and full page title (including all subpage levels).

= = PAGENAME Magic words	Full page title (including all subpage levels) without the namespace.

= = BASEPAGENAME: Magic words	Page title of the page in the immediately superior subpage level without the namespace. Would return Title/Foo on page Help:Title/Foo/Bar.

≥ 1.7 = = ROOTPAGENAME Magic words	Name of the root of the current page. Would return Title on page Help:Title/Foo/Bar. ≥ 1.22

= = SUBPAGENAME Magic words	The subpage title. Would return Bar on page Help:Title/Foo/Bar. If no subpage exists the value of is returned.

For more complex splitting, use from the ParserFunctions extension.

≥ 1.6 = = subjectpagename

= = articlepagename Help:Magic words Help:Magic words	Full page name of the associated subject (e.g. article or file). Useful on talk pages.

= = TALKPAGENAME as in Help talk:Magic words	Full page name of the associated talk page.