Template:Platform Announce

From OpenStreetMap Wiki
Jump to: navigation, search
[Edit] [Octicons-sync.svgpurge] Template-info.svg Template documentation


If the transcluded content of this template is non-empty it will be shown in a row on the platform status box of the main page.

Example with no message

Keep a pre-filled template (like below) with empty message within a "noinclude" section to make the status easily updateable.

<noinclude>{{#switch: {{Langcode}}
|#default = <bdi dir="ltr" lang="en"><!-- new message in English--></bdi>

Make sure that there's nothing transcluded (all within a "noinclude" section), not even empty tags.

Note there's no archive of past announces, except in the history of this template.

Example with a message

Ideally it should be translatable like this, when there's a message to display:

{{#switch: {{Langcode}}
| fr = [[2016 May server maintenance|9–10 mai : maintenance planifée du serveur]]
| #default = <bdi lang="en" dir="ltr">[[2016 May server maintenance|9–10 May planned server maintenance]]</bdi>

Note that the default English message is surrounded by a "bdi" HTML tag explicitly specifying the language code and direction, so that it can be properly displayed as a fallback message on non-translated (in the example above only French is translated) non-English pages which potentially has differing direction (notably Arabic or Hebrew).

See also