Template:LocalisedContent: Difference between revisions

From OER in Education
No edit summary
No edit summary
Line 46: Line 46:
-->{{#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}}}|<nowiki>[</nowiki>{{{letter|letter}}}<nowiki>]</nowiki>]]</span></sup>}}<!--
end inline content
end inline content
-->}}{{#ifeq: {{{1|}}} | |<!--
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>}}<!--
End localised content box UNMARKED
-->|<!--
start inline content UNMARKED
-->{{#vardefine:localisedcontent|<span style="">{{{1}}}</span>}}<!--
end inline content UNMARKED
-->}}<!--
-->}}<!--
display logic:
display logic:
-->{{#ifeq: {{#titleparts: {{PAGENAME}} | -2 }} | OER4Schools |<!--
-->{{#ifeq: {{#titleparts: {{PAGENAME}} | -2 }} | OER4Schools |<!--
   -->{{#ifeq: {{#titleparts: {{PAGENAME}} | | -1 }} | {{{tag}}} |<!--
   -->{{#ifeq: {{#titleparts: {{PAGENAME}} | | -1 }} | {{{tag}}} |<!--
     -->{{#var:localisedcontent}}<!--
     -->{{#var:localisedcontentUNMARKED}}<!--
     -->|<!--else nothing
     -->|<!--else nothing
   -->}}|<!--
   -->}}|<!--

Revision as of 00:01, 7 January 2015

Basic options

OER4Schools Kenya (info)

test

OER4Schools ABC (info)

some text

in line

Some tests with headings

1bcC

ABC1

textA