Template:Local: Difference between revisions

From OER in Education
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
  <nowiki>{{</nowiki>Local
  <nowiki>{{</nowiki>Local
  | default text
  |default=default text
  |Rwanda=Zambian version
  |Rwanda=Zambian version
  |Kenya=Kenyan version
  |Kenya=Kenyan version
Line 10: Line 10:
Gives
Gives
{{Local
{{Local
|default text|Zambia=Zambian version
|default=default text
|Zambia=Zambian version
|Kenya=Kenyan version
|Kenya=Kenyan version
|Rwanda=Rwandan version
|Rwanda=Rwandan version
Line 20: Line 21:
-->{{#ifeq: {{#var:islocal}} | yes |<!--
-->{{#ifeq: {{#var:islocal}} | yes |<!--
   -->{{#switch: {{#var:localcode}}
   -->{{#switch: {{#var:localcode}}
|zm={{{Zambia|{{{1|}}}}}}
|zm={{{Zambia|{{{default|}}}}}}
|ke={{{Kenya|{{{1|}}}}}}
|ke={{{Kenya|{{{default|}}}}}}
|rw={{{Rwanda|{{{1|}}}}}}
|rw={{{Rwanda|{{{default|}}}}}}
|sl={{{Sierra Leone|{{{1|}}}}}}
|sl={{{Sierra Leone|{{{default|}}}}}}
|ug={{{Uganda|{{{1|}}}}}}
|ug={{{Uganda|{{{default|}}}}}}
|#default ={{{1|}}}
|#default ={{{default|}}}
}}<!--
}}<!--
   -->|<!-- else
   -->|<!-- else
   -->{{GenericCountry|{{{1|}}}}}{{Zambia|{{{Zambia|}}}}}{{Kenya|{{{Kenya|}}}}}{{Rwanda|{{{Rwanda|}}}}}{{Sierra Leone|{{{Sierra Leone|X}}}}}{{Uganda|{{{Uganda|X}}}}}<!--
   -->{{GenericCountry|{{{default|}}}}}{{Zambia|{{{Zambia|}}}}}{{Kenya|{{{Kenya|}}}}}{{Rwanda|{{{Rwanda|}}}}}{{Sierra Leone|{{{Sierra Leone|X}}}}}{{Uganda|{{{Uganda|X}}}}}<!--
-->}}</includeonly>
-->}}</includeonly>

Revision as of 20:35, 7 January 2015

{{Local
|default=default text
|Rwanda=Zambian version
|Kenya=Kenyan version
|Rwanda=Rwandan version
|Sierra Leone=Sierra Leonean version
|Uganda=Ugandan version
}}

Gives Template:GenericCountryZambian version[Z]Kenyan version[K]Rwandan version[R]Sierra Leonean version[S]Ugandan version[U]