Difference between revisions of "Template:FULLBASEPAGENAME"

From Nordic Larp Wiki
Jump to navigation Jump to search
en>Jo-Jo Eumerus
m (Changed protection level of Template:FULLBASEPAGENAME: Highly visible template: Lowering to template protection ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if: {{Is subpage namespace | {{#if:{{{1|}}}|{{NAMESPACE:{{{1}}}}}|{{NAMESPACE}}}} }}  
+
{{#if: {{Ns has subpages | {{#if:{{{1|}}}|{{NAMESPACE:{{{1}}}}}|{{NAMESPACE}}}} }}  
 
   | {{#if: {{#titleparts:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}|-1}}
 
   | {{#if: {{#titleparts:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}|-1}}
 
     | {{#titleparts:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}|-1}}
 
     | {{#titleparts:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}|-1}}
Line 8: Line 8:
  
 
{{documentation}}
 
{{documentation}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 21:23, 10 January 2019

Template:FULLBASEPAGENAME

Template documentation[view] [edit] [history] [purge]

Get the fully qualified base page name of the current or the given page. It is basically equivalent to using the magic word {{BASEPAGENAME}} in the Main namespace and {{NAMESPACE}}:{{BASEPAGENAME}} in all other namespaces.

Usage

  • {{FULLBASEPAGENAME}} → Template:FULLBASEPAGENAME
  • {{FULLBASEPAGENAME|}} → Template:FULLBASEPAGENAME
  • {{FULLBASEPAGENAME|Wikipedia:Administrators' noticeboard/Arbitration enforcement/Archive1}} → Wikipedia:Administrators' noticeboard/Arbitration enforcement/Archive1


In namespaces with subpages disabled it will return the full page name:

  • {{FULLBASEPAGENAME|List of 28 Days/Weeks Later characters}} → List of 28 Days/Weeks Later characters

See also

ja:Template:FULLBASEPAGENAME sl:Predloga:FULLBASEPAGENAME