The new Waze Wiki, aka Wazeopedia, is now live at! While this legacy wiki will remain accessible for the time being, it is no longer updated by the community. For the most up-to-date guidance, please visit your local Wazeopedia.

Please do not make any more updates to these legacy wiki pages, all future updates should be made in your country's local Wazeopedia.

Clock over a larger globe


From waze
Revision as of 21:44, 18 July 2014 by Kentsmith9 (Talk | contribs)

Jump to: navigation, search
This is a documentation subpage for Template:RootPage.
It contains usage information, categories and other content that is not part of the original template page.

This template uses the #titleparts parser function extension to extract only the root of the page name.


Place {{RootPage}} where the root of the current page name is desired. An optional parameter is a pagename other than the current pagename.

Pagename {{RootPage}}
USA/CommonState/Test USA

Related versions

An adaptation of Template:Tlc except if the root page is USA it uses the second subpage. This enables the automation of USA/CommonState template suite to display the state name on pages and the template itself will display CommonState.
It operates half way between Template:Tlc and Template:Tlc. It is highly customized for the USA/CommonState template suite. The pages with "USA" respond with USA/CommonState, but all other pages return the primary pagename of BasePageName or BasePageName/Test.... This enables the automation of USA/CommonState to display normally if it is deployed on test pages. The state page can then be tested without affecting the original page and after testing is complete it can be moved along with all the subpages to the primary page. This function requires test pages only start from a subpage that begins /Test... below the initial page name for the state or territory. This also means no other section be created as a subpage that begins with /Test....
Page name Intent Condition
California/Test Main test page for a new California template Good
California/Test city
A custom section to link from other current pages Bad. This page will cause link failures if {{BasePage2}} is used on that page.
Like BasePage2 it is highly customized for the USA/CommonState template suite. On pages with USA/CommonState, it will display the 3rd subpage (if present), otherwise it is blank. For pages with "Main", it will display the subpage above "Main", otherwise it will display the subpage.

Pagename {{RootPage2}} {{BasePage2}} {{SubPage2}}
USA/CommonState/Test CommonState USA/CommonState Test
USA/CommonState CommonState USA/CommonState
USA/CommonState/Test/Test 2 CommonState USA/CommonState Test 2
Arizona/To do Arizona Arizona To do
Arizona/Test/To do Arizona Arizona/Test To do
Arizona/Test Arizona Arizona/Test
Arizona/Test/To do/Main Arizona Arizona/Test To do
Arizona/Test/To do/Main/Preload Arizona Arizona/Test To do
Arizona/To do/Main/Preload Arizona Arizona To do
Arizona/Testing/To do/Main/Preload Arizona Arizona/Testing To do
Arizona/Testing/To do/Preload Arizona Arizona/Testing To do