Template talk:LocalisedContent: Difference between revisions
From OER in Education
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 19: | Line 19: | ||
-->}}<!-- | -->}}<!-- | ||
end printed content | end printed content | ||
-->}} | |||
= Old version: Display logic, based on PAGENAME-2=OER4Schools = | |||
<!-- | |||
display logic: | |||
-->{{#ifeq: {{#titleparts: {{PAGENAME}} | -2 }} | OER4Schools |<!-- | |||
-->{{#ifeq: {{#titleparts: {{PAGENAME}} | | -1 }} | {{{tag}}} |<!-- | |||
-->{{#var:localisedcontentUNMARKED}}<!-- | |||
-->|<!--else nothing | |||
-->}}|<!-- | |||
else | |||
-->{{#var:localisedcontent}}<!-- | |||
-->}} | |||
= Old version = | |||
<!-- | |||
display logic: | |||
-->{{#ifeq: {{#varexists:includeparent}} | 1 |<!-- | |||
-->{{#ifeq: {{#titleparts: {{PAGENAME}} | | -1 }} | {{{tag}}} |<!-- | |||
-->{{#var:localisedcontentUNMARKED}}<!-- | |||
-->|<!--else | |||
-->{{#ifeq: {{#titleparts: {{PAGENAME}} | | -1 }} | pv | {{#var:localisedcontent}} |<!--else: nothing-->}}<!-- | |||
-->}}<!-- | |||
-->|<!-- else | |||
-->{{#var:localisedcontent}}<!-- | |||
-->}} | -->}} |