Template:Local/help: Difference between revisions

From OER in Education
No edit summary
No edit summary
Line 42: Line 42:
If no default is given, only certain countries are displayed
If no default is given, only certain countries are displayed
  <nowiki>{{</nowiki>Local
  <nowiki>{{</nowiki>Local
|default=default text
  |Rwanda=Zambian version
  |Rwanda=Zambian version
  |Kenya=Kenyan version
  |Kenya=Kenyan version
Line 51: Line 50:
Gives
Gives
{{Local
{{Local
|default=default text
|Zambia=Zambian version
|Zambia=Zambian version
|Kenya=Kenyan version
|Kenya=Kenyan version

Revision as of 21:34, 7 January 2015

Full version: Default and all countries

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

Gives default text[-]Zambian version[Z]Kenyan version[K]Rwandan version[R]Sierra Leonean version[S]Ugandan version[U]...[G]

It's possible to display the 'default' value only on page that would otherwise show all values:

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

Gives default text I.e. the "defaultonly" attribute shows the default text only, which can be useful for images, as you would otherwise see a stack of images.

No default

If no default is given, only certain countries are displayed

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

Gives Zambian version[Z]Kenyan version[K]Rwandan version[R]Sierra Leonean version[S]Ugandan version[U]