Template:Includeparent: Difference between revisions

From OER in Education
No edit summary
No edit summary
Line 1: Line 1:
{{#vardefine:includeparent|yes}}{{: {{#titleparts: {{PAGENAME}} | -1 }} }}
{{#vardefine:includeparent|yes}}<!--
-->{{#ifeq: {{#titleparts: {{PAGENAME}} | |-1}}|pv|{{#vardefine:ispv|yes}}{{#vardefine:includeparentdepth|-2}}|{{vardefine:ispv|no}}{{vardefine:includeparentdepth|-1}}}}<!--
-->{{#switch: {{#titleparts:{{PAGENAME}} | | {{#var:includeparentdepth}}
|zm={{#vardefine:islocal|yes}}{{#vardefine:localcode|zm}}
|ke={{#vardefine:islocal|yes}}{{#vardefine:localcode|ke}}
|rw={{#vardefine:islocal|yes}}{{#vardefine:localcode|rw}}
|sl={{#vardefine:islocal|yes}}{{#vardefine:localcode|sl}}
|ug={{#vardefine:islocal|yes}}{{#vardefine:localcode|ug}}
|#default ={{#vardefine:islocal|no}}
}}<!--
-->{{: {{#titleparts: {{PAGENAME}} | {{#var:includeparentdepth}} }} }}

Revision as of 19:15, 7 January 2015