Template:Rootpagename

From Artifact Wiki
Jump to: navigation, search

Documentation for Template:Rootpagename [edit] [edit doc]

Use this template to get the root of a pagename (The namespace and the name of the page without subpages). Substitution for {{ROOTPAGENAME}} (it doesn't work sometimes).

Preview


For the page Template:Foo/bar/bar2 it would return Template:Foo.

Usage


{{Rootpagename}}