Template:FULLROOTPAGENAME: Difference between revisions
Jump to navigation
Jump to search
m Changed protection level for "Template:FULLROOTPAGENAME": Highly visible template: Allowing template editors ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) |
m →top: migration to {{#translation:}}, replaced: {{translation}} → {{#translation:}} |
||
Line 3: | Line 3: | ||
| {{ {{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|{{ {{{|safesubst:}}}FULLPAGENAME}}}} | | {{ {{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|{{ {{{|safesubst:}}}FULLPAGENAME}}}} | ||
}}<noinclude> | }}<noinclude> | ||
{{ {{TNTN|Documentation}} }} | |||
{{ | [[Category:Templates{{#translation:}}]] | ||
</noinclude> | </noinclude> |
Revision as of 17:21, 22 October 2017
Template:FULLROOTPAGENAME
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
A meta template that takes a page name and returns its root page name (including namespace).
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page name | 1 | The input page name. If omitted or empty, the current page name will be used | Page name | optional |
See also
[[Category:Templates{{#translation:}}]]