Template:ReturnToParent: Difference between revisions

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 30: Line 30:
|{{#if:{{{1|}}}
|{{#if:{{{1|}}}
|[[{{{1}}}|← Return to {{{1}}}]]
|[[{{{1}}}|← Return to {{{1}}}]]
|{{#ifexist:{{BASEPAGENAME}}
|{{#if:{{#invoke:ParentPage|getParent}}
|[[{{BASEPAGENAME}}|← Return to {{BASEPAGENAME}}]]
|[[{{#invoke:ParentPage|getParent}}|← Return to {{#invoke:ParentPage|getParentName}}]]
|{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}
|[[{{NAMESPACE}}:{{BASEPAGENAME}}|← Return to {{BASEPAGENAME}}]]
|<span class="error">This is not a subpage</span>
|<span class="error">This is not a subpage</span>
}}
}}
}}
}}
}}
}}</includeonly>
}}</includeonly>