Template:LocalisedContent: Difference between revisions

From OER in Education
No edit summary
No edit summary
 
(3 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>{{#ifeq: {{{text|}}} | |<!--
--><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}}}|<nowiki>[</nowiki>{{{letter|letter}}}<nowiki>]</nowiki>]]</span></sup>}}<!--
-->{{#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>

Latest revision as of 21:11, 7 January 2015

Basic options

OER4Schools Kenya (info)

test

OER4Schools ABC (info)

some text

in line [A]

[A]

Some tests with headings

1bcC

ABC1[K]

textA