• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Absolute page title/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Absolute page title
This is the template sandbox page for Template:Absolute page title (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 4,400 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

Usage

edit

Resolves a relative title to its absolute form. The result can be used across different namespaces with consistent behavior.

The first parameter (mandatory) is the target page title. It can be a full page title or a relative subpage.

The second parameter (optional) is the base page. It defaults to the current page ({{FULLPAGENAME}}).

Examples

edit
Code Result
{{Absolute page title|TargetPage|BasePage}}
TargetPage
{{Absolute page title|/TargetPage|BasePage}}
/TargetPage
{{Absolute page title|Talk:TargetPage|Talk:BasePage}}
Talk:TargetPage
{{Absolute page title|Talk:TargetPage|BasePage}}
Talk:TargetPage
{{Absolute page title|/Subpage|Talk:BasePage}}
Talk:BasePage/Subpage

See also

edit
  • Wikipedia:Subpages
  • mw:Help:Extension:ParserFunctions##rel2abs
The above documentation is transcluded from Template:Absolute page title/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Absolute_page_title/sandbox&oldid=1034571817"
Last edited on 20 July 2021, at 17:04

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 20 July 2021, at 17:04 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop