模板:Absolute page title/doc

来自决策链云智库
< 模板:Absolute page title
Zeroclanzhang讨论 | 贡献2024年1月21日 (日) 18:42的版本 (创建页面,内容为“{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{High use}} == 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 ({…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

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>}}
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