Template:FULLROOTPAGENAME: Difference between revisions

From Vigyanwiki
Template>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 (8 revisions imported from alpha:Template:FULLROOTPAGENAME)
 
(9 intermediate revisions by 7 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 14:08, 12 December 2022

Template:FULLROOTPAGENAME

Template documentation