Zeroclanzhang(讨论 | 贡献) (创建页面,内容为“{{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 ({…”) |
Zeroclanzhang(讨论 | 贡献) 无编辑摘要 |
||
第1行: | 第1行: | ||
{{ | <includeonly>{{#ifeq:0|{{NAMESPACENUMBER:{{{2|{{FULLPAGENAME}}}}}}}|:{{{1}}}|:{{#rel2abs:{{{1}}}|{{{2|{{FULLPAGENAME}}}}}}}}}</includeonly><noinclude> | ||
{{Documentation}} | |||
{{ | </noinclude> | ||
{ | |||
|{{ | |||
|{{ | |||
|{{ | |||
<includeonly> | |||
< | |||
}}</ |
2024年1月21日 (日) 18:42的最新版本
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>}} |
|