Anonymous

Template:Local/help: Difference between revisions

From OER in Education
no edit summary
No edit summary
No edit summary
Line 8: Line 8:
  |Uganda=Ugandan version
  |Uganda=Ugandan version
  }}
  }}
Gives
gives "
{{Local
{{Local
|default=default text
|default=default text
Line 16: Line 16:
|Sierra Leone=Sierra Leonean version
|Sierra Leone=Sierra Leonean version
|Uganda=Ugandan version
|Uganda=Ugandan version
}}
}}", where on localised pages only the appropriate string appears, see [[Template:Local/help/rw]] and  [[Template:Local/help/zm]].


It's possible to display the 'default' value only on page that would otherwise show all values:
It's possible to display the 'default' value only on page that would otherwise show all values:
Line 28: Line 28:
  |defaultonly=1
  |defaultonly=1
  }}
  }}
Gives
gives
{{Local
{{Local
|default=default text
|default=default text
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.
= Setting a default =
= Setting a default =
== With default ==
== With default ==
With a default setting, the default text is displayed for all countries:
With a default setting, the default text is displayed for all countries, except where specific values are given:
  <nowiki>{{</nowiki>Local
  <nowiki>{{</nowiki>Local
  |default=default
  |default=default
  |Rwanda=Rwandan version
  |Rwanda=Rwandan version
  }}
  }}
Gives
gives
{{Local
"{{Local
|default=default
|default=default value
|Rwanda=Rwandan version
|Rwanda=Rwandan version
}}
}}", see [[Template:Local/help/rw]] (which displays "Rwandan version")) and  [[Template:Local/help/zm]] (which displays "default value").
(See [[Template:Local/help/rw]] and  [[Template:Local/help/zm]]


== Without default ==
== Without default ==
Line 58: Line 58:
  |Rwanda=Rwandan version
  |Rwanda=Rwandan version
  }}
  }}
Gives
gives
{{Local
"{{Local
|Rwanda=Rwandan version
|Rwanda=Rwandan version
}}
}}", see [[Template:Local/help/rw]] (which displays "Rwandan version") and  [[Template:Local/help/zm]] (which displays nothing).
(See [[Template:Local/help/rw]] and  [[Template:Local/help/zm]]