Difference between revisions of "Template:FULLBASEPAGENAME/doc"

From blackwiki
Jump to navigation Jump to search
imported>Amalthea
imported>Amalthea
(rm outdated doc, works correctly in namespaces without subpages now (as defined in {{ns has subpages}}))
Line 3: Line 3:
  
 
Get the fully qualified base page name of the current or the given page. It is similar to the magic word <nowiki>{{BASEPAGENAME}}</nowiki>, but prepends the namespace of the page.
 
Get the fully qualified base page name of the current or the given page. It is similar to the magic word <nowiki>{{BASEPAGENAME}}</nowiki>, but prepends the namespace of the page.
 
If this template is used in namespaces with subpages disabled it will nonetheless attempt to remove anything after the last slash "/" in the title.
 
  
 
=== Usage ===
 
=== Usage ===
Line 10: Line 8:
 
* {{tlx|FULLBASEPAGENAME|<nowiki></nowiki>}} &rarr; {{FULLBASEPAGENAME|}}
 
* {{tlx|FULLBASEPAGENAME|<nowiki></nowiki>}} &rarr; {{FULLBASEPAGENAME|}}
 
* {{tlx|FULLBASEPAGENAME|Wikipedia:Administrators' noticeboard/Arbitration enforcement/Archive1}} &rarr; {{FULLBASEPAGENAME|Wikipedia:Administrators' noticeboard/Arbitration enforcement/Archive1}}
 
* {{tlx|FULLBASEPAGENAME|Wikipedia:Administrators' noticeboard/Arbitration enforcement/Archive1}} &rarr; {{FULLBASEPAGENAME|Wikipedia:Administrators' noticeboard/Arbitration enforcement/Archive1}}
 +
 +
 +
In namespaces with subpages disabled it will return the full page name:
 
* {{tlx|FULLBASEPAGENAME|List of 28 Days/Weeks Later characters}} &rarr; {{FULLBASEPAGENAME|List of 28 Days/Weeks Later characters}}
 
* {{tlx|FULLBASEPAGENAME|List of 28 Days/Weeks Later characters}} &rarr; {{FULLBASEPAGENAME|List of 28 Days/Weeks Later characters}}
  

Revision as of 16:22, 30 April 2009

Get the fully qualified base page name of the current or the given page. It is similar to the magic word {{BASEPAGENAME}}, but prepends the namespace of the page.

Usage

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


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

See also