Difference between revisions of "Template:FULLROOTPAGENAME/doc"
Jump to navigation
Jump to search
imported>MSGJ (→Usage: try talk) |
(5 golden rings) |
||
| Line 1: | Line 1: | ||
| − | + | ||
| − | |||
| − | |||
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>. | 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. | + | This template can be substituted. Usage === |
| − | + | * {{tlx|}} → {{FULLROOTPAGENAME}} | |
| − | + | * {{tlx||<nowise></nowik; {{| that takes a page name and returns its root page name (including namespace).", | |
| − | * {{tlx| | ||
| − | * {{tlx| | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": "Page name", | "label": "Page name", | ||
"description": "The input page name. If omitted or empty, the current page name will be used", | "description": "The input page name. If omitted or empty, the current page name will be used", | ||
| − | "type": "string/wiki-page | + | "type": "string/wiki-page |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:Wikipedia metatemplates|{{PAGENAME}}]] | [[Category:Wikipedia metatemplates|{{PAGENAME}}]] | ||
| − | |||
| − | |||
Revision as of 05:29, 16 August 2016
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 ===
{{[[Template:|]]}}→ Template:FULLROOTPAGENAME- {{tlx||<nowise></nowik; {{| 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