模板: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 | 頁面名稱 | 非必填 |