Template:ARTICLEROOTPAGENAME/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
{{dochead}} | {{dochead}} | ||
Returns the associated content namespace (e.g. "Template" if used on a page in the "Template" or "Template talk" namespace), followed by the root of the page name in namespaces with automatic subpages enabled or the full page name otherwise. It is equivalent to <code>{{[[mw:Help:Magic words#Namespaces|ARTICLESPACE]]<nowiki>}}:{{</nowiki>[[mw:Help:Magic words#Namespaces|ROOTPAGENAME]]}}</code>. | Returns the associated content namespace (e.g. "Template" if used on a page in the "Template" or "Template talk" namespace), followed by the root of the page name in namespaces with automatic subpages enabled or the full page name otherwise. It is equivalent to <code>{{[[mw:Help:Magic words#Namespaces|ARTICLESPACE]]<nowiki>}}:{{</nowiki>[[mw:Help:Magic words#Namespaces|ROOTPAGENAME]]}}</code>, with an additional <code>{{<nowiki />#if:}}</code> statement to avoid adding a colon on regular pages. | ||
Revision as of 23:41, 4 March 2025
Returns the associated content namespace (e.g. "Template" if used on a page in the "Template" or "Template talk" namespace), followed by the root of the page name in namespaces with automatic subpages enabled or the full page name otherwise. It is equivalent to {{ARTICLESPACE}}:{{ROOTPAGENAME}}, with an additional {{#if:}} statement to avoid adding a colon on regular pages.