Kentsmith9 (talk | contribs) |
Kentsmith9 (talk | contribs) (testing) |
||
Line 17: | Line 17: | ||
|} | |} | ||
== | == Related versions == | ||
A special version of this template is {{tl|RootPage2}} where it operates the same and {{tlc|RootPage}} except if the root page is '''USA''' it uses the second subpage. This enables the automation of [[USA/CommonState]] to display normally if it is the sample template or deployed on an actual state page without further modifications. | A special version of this template is {{tl|RootPage2}} where it operates the same and {{tlc|RootPage}} except if the root page is '''USA''' it uses the second subpage. This enables the automation of [[USA/CommonState]] to display normally if it is the sample template or deployed on an actual state page without further modifications. | ||
Line 40: | Line 40: | ||
|} | |} | ||
A related version of this template is {{tl|BasePage2}} where it operates the same as {{tlc|RootPage2}} except it uses the basepage. 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. | |||
{| class= "wikitable" | |||
! Pagename | |||
! <nowiki>{{BasePage2}}</nowiki> | |||
|- | |||
| USA/CommonState/Test | |||
| {{BasePage2|USA/CommonState/Test}} | |||
|- | |||
| USA/CommonState | |||
| {{BasePage2|USA/CommonState}} | |||
|- | |||
| Arizona/To do | |||
| {{BasePage2|Arizona/To do}} | |||
|- | |||
| Arizona/Test/To do | |||
| {{BasePage2|Arizona/Test/To do}} | |||
|- | |||
| Arizona/Test/To do/Main | |||
| {{BasePage2|Arizona/Test/To do/Main}} | |||
|} | |||
<includeonly> | <includeonly> | ||
<!-- ADD CATEGORIES BELOW THIS LINE --> | <!-- ADD CATEGORIES BELOW THIS LINE --> |
Revision as of 14:48, 17 July 2014
This is a documentation subpage for . 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.
Usage
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 |
USA | USA |
Related versions
A special version of this template is {{RootPage2}} where it operates the same and Template:Tlc except if the root page is USA it uses the second subpage. This enables the automation of USA/CommonState to display normally if it is the sample template or deployed on an actual state page without further modifications.
Pagename | {{RootPage2}} |
---|---|
USA/CommonState/Test | CommonState |
USA/CommonState | CommonState |
Arizona/To do | Arizona |
Arizona/Test/To do | Arizona |
Arizona/Test/To do/Main | Arizona |
A related version of this template is {{BasePage2}} where it operates the same as Template:Tlc except it uses the basepage. 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.
Pagename | {{BasePage2}} |
---|---|
USA/CommonState/Test | USA/CommonState |
USA/CommonState | USA/CommonState |
Arizona/To do | Arizona |
Arizona/Test/To do | Arizona/Test |
Arizona/Test/To do/Main | Arizona/Test |