跳至內容

模板:FULLROOTPAGENAME/doc

維基百科,自由的百科全書

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

參見

模板資料

以下是該模板的模板資料,適用於視覺化編輯器等工具。

FULLROOTPAGENAME模板資料

A meta template that takes a page name and returns its root page name (including namespace).

模板參數

參數描述類型狀態
Page name1

The input page name. If omitted or empty, the current page name will be used

頁面名稱非必填