Template:FULLROOTPAGENAME: Difference between revisions
Jump to navigation
Jump to search
Infobox>Amalthea Create template to get the full root page name of the given or the current page. Works correctly in namespaces with subpages disabled |
m 7 revisions imported |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{#if: {{ | {{ safesubst:<noinclude/>#if: {{ safesubst:<noinclude/>Ns has subpages | {{ safesubst:<noinclude/>#if:{{{1|}}}|{{ safesubst:<noinclude/>NAMESPACE:{{{1}}}}}|{{ safesubst:<noinclude/>NAMESPACE}}}} }} | ||
| {{#titleparts:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}|1}} | | {{ safesubst:<noinclude/>#titleparts:{{ safesubst:<noinclude/>#if:{{{1|}}}|{{{1}}}|{{ safesubst:<noinclude/>FULLPAGENAME}}}}|1}} | ||
| {{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}} | | {{ safesubst:<noinclude/>#if:{{{1|}}}|{{{1}}}|{{ safesubst:<noinclude/>FULLPAGENAME}}}} | ||
}}<noinclude> | }}<noinclude> | ||