模板:FULLROOTPAGENAME
外观
Template:FULLROOTPAGENAME
此模板被引用于11,000+个页面。 为了避免造成大规模的影响,所有对此模板的编辑应先于沙盒、测试样例或您的沙盒上测试。 测试后无误的版本可以一次性地加入此模板中,但是修改前请务必于讨论页发起讨论。 模板引用数量会自动更新。 |
Get the full root page name of the current or the given page. It is similar to the template {{FULLBASEPAGENAME}}, but returns the root of the page hierarchy instead of the parent. In namespaces with no subpages, it will return either the given pagename or {{FULLPAGENAME}}.
This template can be substituted.
用途
{{FULLROOTPAGENAME}}
→ Template:FULLROOTPAGENAME{{FULLROOTPAGENAME|}}
→ Template:FULLROOTPAGENAME{{FULLROOTPAGENAME|Wikipedia:Administrators' noticeboard/Arbitration enforcement/Archive1}}
→ Wikipedia:Administrators' noticeboard{{FULLROOTPAGENAME|List of 28 Days/Weeks Later characters}}
→ List of 28 Days/Weeks Later characters
参见
模板资料
A meta template that takes a page name and returns its root page name (including namespace).
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
Page name | 1 | The input page name. If omitted or empty, the current page name will be used | 页面名称 | 可选 |