12,782
edits
No edit summary |
No edit summary |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
<nowiki>{{</nowiki>Local | <nowiki>{{</nowiki>Local | ||
|default=default text | |default=default text | ||
| | |Zambia=Zambian version | ||
|Kenya=Kenyan version | |Kenya=Kenyan version | ||
|Rwanda=Rwandan version | |Rwanda=Rwandan version | ||
|Sierra Leone=Sierra Leonean version | |Sierra Leone=Sierra Leonean version | ||
|Uganda=Ugandan version | |Uganda=Ugandan version | ||
|Ghana=Ghanaian version | |||
}} | }} | ||
gives " | |||
{{Local | {{Local | ||
|default=default text | |default=default text | ||
| Line 16: | Line 17: | ||
|Sierra Leone=Sierra Leonean version | |Sierra Leone=Sierra Leonean version | ||
|Uganda=Ugandan version | |Uganda=Ugandan version | ||
}} | |Ghana=Ghanaian 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: | ||
<nowiki>{{</nowiki>Local | <nowiki>{{</nowiki>Local | ||
|default=default text | |default=default text | ||
| | |Zambia=Zambian version | ||
|Kenya=Kenyan version | |Kenya=Kenyan version | ||
|Rwanda=Rwandan version | |Rwanda=Rwandan version | ||
|Sierra Leone=Sierra Leonean version | |Sierra Leone=Sierra Leonean version | ||
|Uganda=Ugandan version | |Uganda=Ugandan version | ||
|Ghana=Ghanaian version | |||
|defaultonly=1 | |defaultonly=1 | ||
}} | }} | ||
gives | |||
{{Local | {{Local | ||
|default=default text | |default=default text | ||
| Line 36: | Line 39: | ||
|Sierra Leone=Sierra Leonean version | |Sierra Leone=Sierra Leonean version | ||
|Uganda=Ugandan version | |Uganda=Ugandan version | ||
|Ghana=Ghanaian version | |||
|defaultonly=1 | |defaultonly=1 | ||
}} | }} | ||
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. | ||
= | |||
If no default is given, only | = Setting a default = | ||
== With default == | |||
With a default setting, the default text is displayed for all countries, except where specific values are given: | |||
<nowiki>{{</nowiki>Local | |||
|default=default value | |||
|Rwanda=Rwandan version | |||
}} | |||
gives | |||
"{{Local | |||
|default=default value | |||
|Rwanda=Rwandan version | |||
}}", see [[Template:Local/help/rw]] (which displays "Rwandan version") and [[Template:Local/help/zm]] (which displays "default value"). | |||
== Without default == | |||
If no default is given, only the present values countries are displayed on localised pages: | |||
<nowiki>{{</nowiki>Local | <nowiki>{{</nowiki>Local | ||
|Rwanda=Rwandan version | |Rwanda=Rwandan version | ||
}} | }} | ||
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). | ||
| | |||
== With default, blanking one value == | |||
With a default setting, the default text is displayed for all countries, except where specific values are given, including a blank value: | |||
<nowiki>{{</nowiki>Local | |||
|default=default value | |||
|Rwanda= | |||
}} | |||
gives | |||
"{{Local | |||
|default=default value | |||
|Rwanda= | |||
}}", see [[Template:Local/help/rw]] (which displays "" in the Rwandan version) and [[Template:Local/help/zm]] (which displays "default value"). | |||
= Formatting = | |||
== Small adaptations == | |||
As above, for small adaptations, like single words or a sentence, use this: | |||
<nowiki>{{Local|</nowiki>Kenya<nowiki>=inline text, for smaller adaptations}}</nowiki> | |||
which produces this: | |||
{{Local|Kenya=inline text, for smaller adaptations}} | |||
== Larger adaptations == | |||
Where you want to add a specific longer note that is only relevant to {{{country|Kenya}}}, use this: | |||
<nowiki>{{</nowiki>Kenya|text= | |||
text placed in a box, for larger adaptations. | |||
}} | |||
which produces: | |||
{{Kenya|text= | |||
text placed in a box, for larger adaptations. | |||
}} | }} | ||
This could also be used for comments, where something will need adapting in the long run. | |||
== Important == | |||
Please consider whether your note is relevant only to {{{country|Kenya}}}, or it's generally relevant to all users! If it's relevant to all users, then do add it to the resource as a whole! | |||