Difference between revisions of "Template:FULLROOTPAGENAME"

From SVR Wiki
Jump to: navigation, search
m (4 revisions imported: Importing As Of template and dependencies)
(Create template to get the full root page name of the given or the current page. Works correctly in namespaces with subpages disabled)
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{ {{{|safesubst:}}}#if: {{ {{{|safesubst:}}}Ns has subpages | {{ {{{|safesubst:}}}#if:{{{1|}}}|{{ {{{|safesubst:}}}NAMESPACE:{{{1}}}}}|{{ {{{|safesubst:}}}NAMESPACE}}}} }}  
+
{{#if: {{Is subpage namespace | {{#if:{{{1|}}}|{{NAMESPACE:{{{1}}}}}|{{NAMESPACE}}}} }}  
   | {{ {{{|safesubst:}}}#titleparts:{{ {{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|{{ {{{|safesubst:}}}FULLPAGENAME}}}}|1}}
+
   | {{#titleparts:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}|1}}
   | {{ {{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|{{ {{{|safesubst:}}}FULLPAGENAME}}}}
+
   | {{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}
 
}}<noinclude>
 
}}<noinclude>
  

Revision as of 09:19, 28 April 2009

Template:FULLROOTPAGENAME

Documentation icon Template documentation[create]

{{ }}