Template:Includeparent: Difference between revisions

From OER in Education
No edit summary
No edit summary
Line 24: Line 24:
}}<!--
}}<!--
-->{{: {{#titleparts: {{PAGENAME}} | {{#var:includeparentdepth}} }} }}<!--
-->{{: {{#titleparts: {{PAGENAME}} | {{#var:includeparentdepth}} }} }}<!--
-->{{ifeq: {{{diag|}}}|1|
-->{{#ifeq: {{{diag|}}}|1|
* includeparent: {{#var:includeparent}}
* includeparent: {{#var:includeparent}}
* titleparts - 1 = {{#titleparts: {{PAGENAME}} | |-1}}
* titleparts - 1 = {{#titleparts: {{PAGENAME}} | |-1}}
* titleparts - 2 = {{#titleparts: {{PAGENAME}} |1|-2}}
* titleparts - 2 = {{#titleparts: {{PAGENAME}} |1|-2}}
* ispv = {{#var:ispv}}
* ispv = {{#var:ispv}}
* includeparentdepth = {{#var:includeparentdepth}|
* includeparentdepth = {{#var:includeparentdepth}}
* #titleparts: PAGENAME | 1 | includeparentdepth= {{#titleparts:{{PAGENAME}} | 1 | {{#var:includeparentdepth}} }}
* #titleparts: PAGENAME | 1 | includeparentdepth = {{#titleparts:{{PAGENAME}} | 1 | {{#var:includeparentdepth}} }}
* islocal = {{#var:isloca}}
* islocal = {{#var:isloca}}
* localcode = {{#var:localcode}}
* localcode = {{#var:localcode}}
}}
}}

Revision as of 19:51, 7 January 2015

If a page is generated using this template, then #var:includeparent = yes

If a page is a PV page, then #var:ispy = yes, otherwise no

If the page is a localised page #var:islocal = yes, otherwise no

If the page is local, #var:localcode = zm, ke, rw, sl, ug, etc.

On a page called PAGE/localcode/pv, PAGE is included, on a page called PAGE/pv, PAGE is included.

if you add

|diag=1

then some diagnostic information is printed at the end of the page. {{: }}1