Template:Platform Announce/doc
This is a documentation subpage for Template:Platform Announce. It contains usage information, categories and other content or metadata that is not part of the original template. |
Usage
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>{{LangSwitch | default = <bdi dir="ltr" lang="en"><!-- new message in English--></bdi> }}</noinclude><noinclude>{{Documentation}}</noinclude>
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:
{{LangSwitch | 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> }}<noinclude>{{Documentation}}</noinclude>
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