Template:Absolute page title/doc

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