Difference between revisions of "Template:Localized Release Announcement"

From FlightGear wiki
Jump to: navigation, search
(+param: lang; doc: More descriptive first section, doc style, rel templ: News; -cat)
Line 12: Line 12:
 
| pl = <!-- Polish -->
 
| pl = <!-- Polish -->
 
* '''{{{date}}}:''' FlightGear {{{version}}} wydana
 
* '''{{{date}}}:''' FlightGear {{{version}}} wydana
| en = <!-- English -->
+
| en = <!-- English -->  
* '''{{{date}}}:''' FlightGear [[Changelog {{{version}}}|{{{version}}}]] released
+
* '''{{{date}}}:''' FlightGear [[Changelog {{{version}}}|{{{version}}}]] released  
}}<noinclude>
+
| {{{lang|en}}}
 +
}}D<noinclude>
 
{{WIP}}
 
{{WIP}}
 
{{Informative template|1=
 
{{Informative template|1=
 
== Goal ==
 
== Goal ==
This template is used for assembling the localized news section as displayed on the [[Main Page]]:
+
This template is used for showing FlightGear release dates in the {{tl|news}} template displayed on the [[Main Page]].
  
<syntaxhighlight>{{Localized Release Announcement|date=February 17, 2015|version=3.4}}</syntaxhighlight>
+
The template will show translated texts depending on the language prefix of the page it is on.  If there is no translation it will fall back to English.
 +
 
 +
== Usage ==
 +
{{obr}}'''Localized Release Announcement''' {{!}}date= {{!}}version= {{!}}''lang=''{{cbr}}
 +
 
 +
All parameters but '''lang''' are mandatory.
 +
 
 +
; date:    Date of the release in <Month> <d>, <yyyy> format, for example '''{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}'''.
 +
 
 +
; version:  Version of the release, for example '''3.4'''.
 +
 
 +
; lang:    Language override for testing and demonstration purposes.
 +
 
 +
== Example ==
 +
{{obr}}Localized Release Announcement {{!}}date={{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} {{!}}version=3.4{{cbr}}
 +
 
 +
{{Localized Release Announcement |date={{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} |version=3.4}}
 +
 
 +
== Related templates ==
 +
* {{tl|news}}
  
{{Localized Release Announcement|date=February 17, 2015|version=3.4}}
 
 
}}
 
}}
  
 
[[Category:Templates]]
 
[[Category:Templates]]
[[Category:Undocumented templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 12:21, 17 May 2015

  • {{{date}}}: FlightGear [[Changelog {{{version}}}|{{{version}}}]] releasedD
WIP.png Work in progress
This article or section will be worked on in the upcoming hours or days.
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 showing FlightGear release dates in the {{news}} template displayed on the Main Page.

The template will show translated texts depending on the language prefix of the page it is on. If there is no translation it will fall back to English.

Usage

{{Localized Release Announcement |date= |version= |lang=}}

All parameters but lang are mandatory.

date
Date of the release in <Month> <d>, <yyyy> format, for example December 2, 2020.
version
Version of the release, for example 3.4.
lang
Language override for testing and demonstration purposes.

Example

{{Localized Release Announcement |date=December 2, 2020 |version=3.4}}


  • December 02, 2020: FlightGear 3.4 is released.

Related templates