This is a documentation subpage for 模板:Absolute page title. It may contain usage information, categories and other content that is not part of the original 模板 page. |
This template is used on approximately 4,000 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
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
Code | Result |
---|---|
{{Absolute page title|<TargetPage>|<BasePage>}} |
|
{{Absolute page title|</TargetPage>|<BasePage>}} |
|
{{Absolute page title|<Talk:TargetPage>|<Talk:BasePage>}} |
|
{{Absolute page title|<Talk:TargetPage>|<BasePage>}} |
|
{{Absolute page title|</Subpage>|<Talk:BasePage>}} |
|
See also