Template:FULLROOTPAGENAME: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>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 1 revision imported
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{#if: {{Is subpage namespace | {{#if:{{{1|}}}|{{NAMESPACE:{{{1}}}}}|{{NAMESPACE}}}} }}  
{{ 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>



Latest revision as of 20:44, 28 November 2023

Template:FULLROOTPAGENAME