Template:FULLROOTPAGENAME: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{ {{{|safesubst:}}}#if: {{ {{{|safesubst:}}}Ns has subpages | {{ {{{|safesubst:}}}#if:{{{1|}}}|{{ {{{|safesubst:}}}NAMESPACE:{{{1}}}}}|{{ {{{|safesubst:}}}NAMESPACE}}}} }} ...") |
mNo edit summary |
||
Line 7: | Line 7: | ||
</noinclude> | </noinclude> | ||
[[Category:Templates]] |
Latest revision as of 19:03, 14 December 2012
Template:FULLROOTPAGENAME
[edit] Template documentation
This template is used on 1,300,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please consider discussing any changes on the talk page before implementing them. |
Get the full root page name of the current or the given page. It is similar to the magic word {{FULLBASEPAGENAME}}, but returns the root of the page hierarchy instead of the parent. In namespaces with no subpages, it will return either the given pagename or {{FULLPAGENAME}}.
This template can be substituted.
Usage[edit source]
{{FULLROOTPAGENAME}}
→ Template:FULLROOTPAGENAME{{FULLROOTPAGENAME|}}
→ Template:FULLROOTPAGENAME{{FULLROOTPAGENAME|Wikipedia:Administrators' noticeboard/Arbitration enforcement/Archive1}}
→ wikipedia:Administrators' noticeboard{{FULLROOTPAGENAME|List of 28 Days/Weeks Later characters}}
→ List of 28 Days