Difference between revisions of "Template:ParentsOf"

From AtlasWiki
Jump to: navigation, search
(Adding TrimNamespace to ensure this succeeds for both PAGENAME and FULLPAGENAME; adding to XCSG Templates category)
Line 4: Line 4:
 
Format:
 
Format:
 
<pre>{{ParentsOf|child}}</pre>
 
<pre>{{ParentsOf|child}}</pre>
</noinclude><includeonly>{{#show:{{{1}}}|?extends|link=none}}</includeonly>
+
</noinclude><includeonly>{{#show:{{TrimNamespace{{{1}}}}}|?extends|link=none}}</includeonly><noinclude>[[Category:XCSG Templates]]</noinclude>

Revision as of 15:40, 21 April 2014

Returns the name of the parent of the requested page, or a comma-separated list of parents if there is more than one.

Format:

{{ParentsOf|child}}