Anonymous

Template:Local/help: Difference between revisions

From OER in Education
no edit summary
No edit summary
No edit summary
Line 39: Line 39:
}}
}}
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.
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 =
= Setting a default =
== With default ==
With a default setting, the default text is displayed for all countries:
<nowiki>{{</nowiki>Local
|default=default
|Rwanda=Rwandan version
}}
Gives
{{Local
|default=default
|Rwanda=Rwandan version
}}
(See [[Template:Local/help/rw]] and  [[Template:Local/help/zm]]
 
== Without default ==
If no default is given, only the present values countries are displayed on localised pages:
If no default is given, only the present values countries are displayed on localised pages:
  <nowiki>{{</nowiki>Local
  <nowiki>{{</nowiki>Local