Open main menu

Template:FULLROOTPAGENAME

Revision as of 09:19, 28 April 2009 by en>Amalthea (Create template to get the full root page name of the given or the current page. Works correctly in namespaces with subpages disabled)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{#if: Template:Is subpage namespace

 | {{#titleparts:{{#if:|{{{1}}}|Template:FULLROOTPAGENAME}}|1}}
 | {{#if:|{{{1}}}|Template:FULLROOTPAGENAME}}

}}

50px Template documentation[create]