Template:LocalisedContent: Difference between revisions

From OER in Education
No edit summary
No edit summary
 
(77 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{kenya|text=test}}}
= Basic options =
</noinclude>{{#ifeq:  
 
{{#titleparts: {{PAGENAME}} | | -1 }}
{{kenya|text=test}}
| pv | |
 
{{#ifeq: {{{text|}}} | | <span style="padding: 1px; border-bottom: solid 2px yellow; border-right: solid 2px yellow;">{{{1|}}}</span><sup><span style="color:yellow;">[[OER4Schools/{{{country}}}|{{{letter}}}]]</span></sup> |
{{localisedContent
<div style="margin:5px 0 20px 20px; border:solid 1px yellow;border-left:solid 10px yellow;background-color:#efefef;overflow:auto;
|country=ABC
|letter=A
|text=some text
|colour=green
}}
 
{{localisedContent
|in line
|country=ABC
|letter=A
|colour=green
|tag=ke
}}
 
{{localisedContent
|
|country=ABC
|letter=A
|colour=green
|tag=ke
}}
 
{{localisedContent
|
|country=ABC
|letter=A
|colour=green
|tag=ke
|unmarked=1
}}
 
= Some tests with headings =
 
== {{LocalisedContent/test1 |color=purple |country=country |letter=C|ABC}} ==
== {{kenya|itext=test|ABC1}} ==
== <span style="padding: 1px; border-bottom: solid 2px green; border-right: solid 2px green;">text</span><sup><span style="color:green;">[[OER4Schools/country|A]]</span></sup>==
 
[[Category:LocalisationTemplates]]
</noinclude><!--
Extra documentation:
{{#ifeq: {{{text|}}} selects whether content is in-line, or in a box.
 
 
--><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
-->{{#vardefine:localisedcontent|<div style="margin:5px 0 20px 20px; border:solid 1px {{{colour}}};border-left:solid 10px {{{colour}}};background-color:#efefef;overflow:auto;
border-top-left-radius: 10px;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;" class=”kenya”>
border-bottom-left-radius: 10px;" class=”{{{country}}}”>
<div style="padding: 5px;  padding-left: 10px;  border-bottom: solid 1px yellow;">'''{{{title|OER4Schools Kenya}}}''' ([[OER4Schools/Kenya|info]])</div>
<div style="padding: 5px;  padding-left: 10px;  border-bottom: solid 1px {{{colour}}};">'''{{{title|OER4Schools {{{country}}}}}}''' ([[OER4Schools/{{{country}}}|info]])</div>
<div style="padding: 10px; padding-left: 10px;">
<div style="padding: 10px; padding-left: 10px;">
{{{text}}}
{{{text}}}
</div>
</div>
</div>}}<!--
End localised content box
-->}}<!--
PRODUCE UNMARKED VERSIONS
-->{{#ifeq: {{{text|}}} | |<!--
start inline content UNMARKED
-->{{#vardefine:localisedcontentUNMARKED|<span style="">{{{1}}}</span>}}<!--
end inline content UNMARKED
-->|<!--
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;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;" class=”{{{country}}}”>
<div style="padding: 5px;  padding-left: 10px;  border-bottom: solid 1px {{{colour}}};">'''{{{title|OER4Schools {{{country}}}}}}''' ([[OER4Schools/{{{country}}}|info]])</div>
<div style="padding: 10px; padding-left: 10px;">
{{{text}}}
</div>
</div>
}}}}
</div>}}<!--
End localised content box UNMARKED
-->}}<!--
display logic:
-->{{#ifeq: {{#var:islocal}} | yes |<!--
  -->{{#ifeq: {{#var:localcode}} | {{{tag}}} |<!-- -->{{#var:localisedcontentUNMARKED}}<!-- -->|<!--nothing-->}}<!--
-->|<!-- else
  -->{{#ifeq:{{{unmarked|}}}|1|<!-- -->{{#var:localisedcontentUNMARKED}}<!-- -->|<!-- -->{{#var:localisedcontent}}<!-- -->}}<!--
-->}}</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