Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Template:Localized Release Announcement

From FlightGear wiki
Revision as of 10:47, 17 January 2019 by Skybike (Talk | contribs) (Translated dates, alt texts, new doc, more languages. Note: We need to update "Template:News")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
WIP.png Work in progress
This article or section will be worked on in the upcoming hours or days.
Note: It all works. We could use this template right away!
See history for the latest developments.
The following template description is not displayed when the template is inserted in an article.

Goal

This template is used for translating news in the {{news}} template displayed on the Main Page.

  • Translated dates based on language prefix of the main page.
  • For a new FlightGear release it will show (translated) texts.
  • You can also type in custom text and its translations for not release-specific news (but keep the dates).


Usage

{{Localized Release Announcement|date= |version= |codename= |lang=}}
{{Localized Release Announcement|date= |en=|ca=|de=|es=|fr=|it=|nl=|pl=|pt=|ru=|sl=}}


All parameters but date are optional.

date
Date of the release in any format like <d>-<m>-<yyyy> (or <Month> <d>, <yyyy>), for example 25-08-2019.
version
Version of the release, for example 3.4 or 2018.3.2. (optional)
codename
Default airport or name of release, for example Bergen. (optional)
LE(en/es/fr)
For other news to be used like {{LangSwitch}}, for example | en = Hello World | de = Hallo Welt | es... (optional)
lang
Language override for testing and demonstration purposes. (optional)

Example

With Codename

{{Localized Release Announcement |date=25-08-2019 |version=2018.3 |codename=Bergen}}
  • August 25, 2019: FlightGear 2018.3 "Bergen" is released.

or in Português:

  • 25 de agosto de 2019: Lançado o FlightGear 2018.3 "Bergen".

Without Codename

{{Localized Release Announcement |date=August 25, 2019 |version=3.6}}  (Spanish Es/Portada)
  • August 25, 2019: FlightGear 3.6 is released.

On a spanish Page like Es/Portada:

  • 25 de agosto de 2019: FlightGear 3.6 lanzado.

Translated Date only

{{Localized Release Announcement |date=25-08-2019 }}
  • August 25, 2019:

or Russian

  • 25 август 2019:

Then add your message.


Other News

{{Localized Release Announcement |date=25-08-2019 
  |en=Hello World
  |de=Hallo Welt
  |pt=Olá mundo
  |it=Ciao mondo
}}
  • August 25, 2019: Hello World

Italian:

  • 25 agosto 2019: Ciao mondo

Dutch (nl) - no translation for message given here, shows english message and dutch date (just like {{LangSwitch}})

  • 25 augustus 2019: Hello World

Related templates