Template:FULLROOTPAGENAME/doc: Difference between revisions

From Campaigns
Jump to navigation Jump to search
mNo edit summary
Line 30: Line 30:
== See also ==
== See also ==
* [[Help:Magic words#Page names]]
* [[Help:Magic words#Page names]]
* {{tl|ROOTPAGENAME}}


<includeonly>{{sandbox other||
<includeonly>{{sandbox other||

Revision as of 11:13, 24 November 2021

Get the namespace and the root of the page name.

Usage

  • → Template:FULLROOTPAGENAME
  • → Template:1x
  • → wikipedia:Administrators' noticeboard

In namespaces with subpages disabled, it will return the full page name:

  • → List of 28 Days

Note that this template can be substituted.

TemplateData

Template:TemplateData header

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

Page nameoptional

See also