Difference between revisions of "Template:FULLROOTPAGENAME/doc"
Jump to navigation
Jump to search
(←Blanked the page) |
imported>Smalljim m (Reverted edits by 173.76.254.251 (talk) to last version by Zyxw) |
||
| Line 1: | Line 1: | ||
| + | {{Documentation subpage}} | ||
| + | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
| + | {{high-risk| 770,000+ }} | ||
| + | Get the full root page name of the current or the given page. It is similar to the template {{tl|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 <nowiki>{{</nowiki>[[WP:VAR|FULLPAGENAME]]<nowiki>}}</nowiki>. | ||
| + | |||
| + | This template can be substituted. | ||
| + | |||
| + | === Usage === | ||
| + | * {{tlx|FULLROOTPAGENAME}} → {{FULLROOTPAGENAME}} | ||
| + | * {{tlx|FULLROOTPAGENAME|<nowiki></nowiki>}} → {{FULLROOTPAGENAME|}} | ||
| + | * {{tlx|FULLROOTPAGENAME|Wikipedia:Administrators' noticeboard/Arbitration enforcement/Archive1}} → {{FULLROOTPAGENAME|Wikipedia:Administrators' noticeboard/Arbitration enforcement/Archive1}} | ||
| + | * {{tlx|FULLROOTPAGENAME|List of 28 Days/Weeks Later characters}} → {{FULLROOTPAGENAME|List of 28 Days/Weeks Later characters}} | ||
| + | |||
| + | == See also == | ||
| + | * [[mw:Help:Magic words#Page names]] | ||
| + | * {{tl|FULLBASEPAGENAME}} | ||
| + | * {{tl|ROOTPAGENAME}} | ||
| + | |||
| + | ==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> | ||
| + | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
| + | [[Category:Wikipedia metatemplates|{{PAGENAME}}]] | ||
| + | |||
| + | </includeonly> | ||
| + | |||
| + | <includeonly> | ||
| + | [[ko:틀:FULLROOTPAGENAME]] | ||
| + | </includeonly> | ||
Revision as of 10:46, 12 September 2014
| This is a documentation subpage for Template:FULLROOTPAGENAME. It contains usage information, categories and other content that is not part of the original template page. |
| This template is used on 1,660,000+ pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. Transclusion count updated automatically (see documentation). |
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
{{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
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).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Page name | 1 | The input page name. If omitted or empty, the current page name will be used | Page | optional |