Template:LocalisedContent: Difference between revisions
From OER in Education
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 27: | Line 27: | ||
}} | }} | ||
{{localisedContent | |||
| | |||
|country=ABC | |||
|letter=A | |||
|colour=green | |||
|tag=ke | |||
|unmarked=1 | |||
}} | |||
= Some tests with headings = | = Some tests with headings = | ||
Line 40: | Line 48: | ||
--><includeonly>{{#vardefine: | --><includeonly>{{#vardefine:sbo|[}}{{#vardefine:sbc|]}}{{#ifeq: {{{text|}}} | |<!-- | ||
start inline content | start inline content | ||
-->{{#vardefine:localisedcontent|<span style="padding: 1px; border-bottom: solid 2px {{{colour|black}}}; border-right: solid 2px {{{colour|black}}};">{{{1}}}</span><sup><span style="color:{{{colour|black}}};">[[OER4Schools/{{{country|country}}}| | -->{{#vardefine:localisedcontent|<span style="padding: 1px; border-bottom: solid 2px {{{colour|black}}}; border-right: solid 2px {{{colour|black}}};">{{{1}}}</span><sup><span style="color:{{{colour|black}}};">[[OER4Schools/{{{country|country}}}|{{#var:sbo}}{{{letter|letter}}}{{#var:sbc}}]]</span></sup>}}<!-- | ||
end inline content | end inline content | ||
-->|<!-- | -->|<!-- | ||
Line 75: | Line 83: | ||
display logic: | display logic: | ||
-->{{#ifeq: {{#var:islocal}} | yes |<!-- | -->{{#ifeq: {{#var:islocal}} | yes |<!-- | ||
-->{{#ifeq: {{#var:localcode}} | {{{tag}}} |<!-- -->{{#var:localisedcontentUNMARKED}}<!-- -->}}<!-- | -->{{#ifeq: {{#var:localcode}} | {{{tag}}} |<!-- -->{{#var:localisedcontentUNMARKED}}<!-- -->|<!--nothing-->}}<!-- | ||
-->|<!-- else | -->|<!-- else | ||
-->{{#var:localisedcontent}}<!-- | -->{{#ifeq:{{{unmarked|}}}|1|<!-- -->{{#var:localisedcontentUNMARKED}}<!-- -->|<!-- -->{{#var:localisedcontent}}<!-- -->}}<!-- | ||
-->}}</includeonly> | -->}}</includeonly> |