Template:LocalisedContent: Difference between revisions

From OER in Education
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 17: Line 17:
|colour=green
|colour=green
|tag=ke
|tag=ke
}}
{{localisedContent
|
|country=ABC
|letter=A
|colour=green
|tag=ke
}}
{{localisedContent
|
|country=ABC
|letter=A
|colour=green
|tag=ke
|unmarked=1
}}
}}


Line 28: Line 45:
</noinclude><!--
</noinclude><!--
Extra documentation:
Extra documentation:
{{#ifeq: {{{1|}}} selects whether content is in-line, or in a box.
{{#ifeq: {{{text|}}} selects whether content is in-line, or in a box.




--><includeonly>{{#ifeq: {{{1|}}} | |<!--
--><includeonly>{{#vardefine:sbo|[}}{{#vardefine:sbc|]}}{{#ifeq: {{{text|}}} | |<!--
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}}}|{{#var:sbo}}{{{letter|letter}}}{{#var:sbc}}]]</span></sup>}}<!--
end inline content
-->|<!--
Start localised content box
Start localised content box
-->{{#vardefine:localisedcontent|<div style="margin:5px 0 20px 20px; border:solid 1px {{{colour}}};border-left:solid 10px {{{colour}}};background-color:#efefef;overflow:auto;
-->{{#vardefine:localisedcontent|<div style="margin:5px 0 20px 20px; border:solid 1px {{{colour}}};border-left:solid 10px {{{colour}}};background-color:#efefef;overflow:auto;
Line 42: Line 63:
</div>}}<!--
</div>}}<!--
End localised content box
End localised content box
-->}}<!--
PRODUCE UNMARKED VERSIONS
-->{{#ifeq: {{{text|}}} | |<!--
start inline content UNMARKED
-->{{#vardefine:localisedcontentUNMARKED|<span style="">{{{1}}}</span>}}<!--
end inline content UNMARKED
-->|<!--
-->|<!--
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>}}<!--
end inline content
-->}}{{#ifeq: {{{1|}}} | |<!--
Start localised content box UNMARKED (at the moment the same as the marked box above...
Start localised content box UNMARKED (at the moment the same as the marked box above...
-->{{#vardefine:localisedcontentUNMARKED|<div style="margin:5px 0 20px 20px; border:solid 1px {{{colour}}};border-left:solid 10px {{{colour}}};background-color:#efefef;overflow:auto;
-->{{#vardefine:localisedcontentUNMARKED|<div style="margin:5px 0 20px 20px; border:solid 1px {{{colour}}};border-left:solid 10px {{{colour}}};background-color:#efefef;overflow:auto;
Line 57: Line 80:
</div>}}<!--
</div>}}<!--
End localised content box UNMARKED
End localised content box UNMARKED
-->|<!--
start inline content UNMARKED
-->{{#vardefine:localisedcontentUNMARKED|<span style="">{{{1}}}</span>}}<!--
end inline content UNMARKED
-->}}<!--
-->}}<!--
display logic:
display logic:
-->{{#ifeq: {{#varexists:includeparent}} | 1 |<!--
-->{{#ifeq: {{#var:islocal}} | yes |<!--
   -->{{#ifeq: {{#titleparts: {{PAGENAME}} | | -1 }} | {{{tag}}} |<!--
   -->{{#ifeq: {{#var:localcode}} | {{{tag}}} |<!-- -->{{#var:localisedcontentUNMARKED}}<!-- -->|<!--nothing-->}}<!--  
    -->{{#var:localisedcontentUNMARKED}}<!--
-->|<!-- else
  -->|<!--else
  -->{{#ifeq:{{{unmarked|}}}|1|<!-- -->{{#var:localisedcontentUNMARKED}}<!-- -->|<!-- -->{{#var:localisedcontent}}<!-- -->}}<!--
    -->{{#ifeq: {{#titleparts: {{PAGENAME}} | | -1 }} | pv | {{#var:localisedcontent}} |<!--else: nothing-->}}<!--  
  -->}}<!--
-->|<!-- else
  -->{{#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