Teamplaid:ROOTPAGENAME
ROOTPAGENAME
Get the root page name of a page. It is similar to the magic word {{BASEPAGENAME}}, but returns the root of the page hierarchy instead of the parent.
Ùsaid - Usage
deasaich- {{ROOTPAGENAME}} → ROOTPAGENAME
- {{ROOTPAGENAME|Template:1x/sandbox}} → 1x
- {{ROOTPAGENAME|Teamplaid:Lang-x}} → Lang-x
- {{ROOTPAGENAME|Wikipedia:Administrators' noticeboard/Arbitration enforcement/Archive1}} → Administrators' noticeboard/Arbitration enforcement/Archive1
In namespaces with subpages disabled, it will return the full page name:
- {{ROOTPAGENAME|List of 28 Days/Weeks Later characters}} → List of 28 Days/Weeks Later characters
Note that this template can be substituted.
Faic cuideachd - Also see
The above documentation is transcluded from Teamplaid:ROOTPAGENAME/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |