Difference between revisions of "Template:ParentsOf"
From AtlasWiki
(fixing close tag) |
(switching from trim namespace to ensure namespace, prerequisite for supporting multiple namespaces, also fixes strange bug affecting XCSG:Initialization) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
Returns the name of the parent of the requested page, or a comma-separated list of parents if there is more than one. | Returns the name of the parent of the requested page, or a comma-separated list of parents if there is more than one. | ||
− | Format: | + | Format: |
− | <pre>{{ | + | <pre>{{ParentsOf|child}}</pre> |
− | </noinclude><includeonly>{{#show:{{{1}}}|?extends|link=none}}</includeonly> | + | </noinclude><includeonly>{{#show:{{EnsureNamespace|{{{1}}}}}|?extends|link=none}}</includeonly><noinclude>[[Category:XCSG Templates]]</noinclude> |
Latest revision as of 11:39, 22 May 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}}