Difference between revisions of "Template:FULLROOTPAGENAME/doc"

From blackwiki
Jump to navigation Jump to search
imported>Xaris333
imported>Amalthea
(→‎Template data: Fill in the required structured parameter information)
Line 18: Line 18:
 
* {{tl|ROOTPAGENAME}}
 
* {{tl|ROOTPAGENAME}}
  
==Templatedata==
+
==Template data==
 +
{{TemplateDataHeader}}
 +
<templatedata>{
 +
  "description": "A meta template that takes a page name and returns its root page name (including namespace).",
 +
  "params": {
 +
    "1": {
 +
      "label": "Page name",
 +
      "description": "The input page name. If omitted or empty, the current page name will be used",
 +
      "type": "string/wiki-page-name",
 +
      "required": false
 +
    }
 +
  }
 +
}</templatedata>
  
 
<includeonly>
 
<includeonly>

Revision as of 09:51, 30 July 2013

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.

Usage

See also

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for FULLROOTPAGENAME

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

Template parameters

ParameterDescriptionTypeStatus
Page name1

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

Pageoptional