Template:Current release: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (brainfart ...)
m (Back to the future (2018 2019))
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{1|}}}
<includeonly>{{#switch: {{{1|}}}
<!-- if/when this works correctly, these should probably be moved to their own sub-templates? -->
| cr = 2018.3
| cr = {{#ifexpr: {{CURRENTMONTH}} < 3 |{{#expr: {{CURRENTYEAR}} - 1}} | {{CURRENTYEAR}}}}.{{#expr: {{CURRENTMONTH}} div 3}}
| crd = 09 Dec 2018
| crd = 17 September 2016
| nr = 2019.1
<!-- note, this hasn't really been tested yet ... --->
| nrd = a few<!--<daysuntil>06 February 2019</daysuntil>-->
| nr = {{#ifeq: {{#expr: {{CURRENTMONTH}} div 3}} | 4 | {{#expr: {{CURRENTYEAR}} + 1}} | {{CURRENTYEAR}}}}.{{#expr:{{#expr: {{CURRENTMONTH}} div 3}} +1}}
 
| nrd = <daysuntil>17 November 2016</daysuntil>
| full = 2018.3.1
| fulldate = 09 December 2018
 
| #default = {{error|No argument given|current release}}
| #default = {{error|No argument given|current release}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Line 15: Line 17:
# the next release
# the next release
# the number of days until the next release.
# the number of days until the next release.
# the full version of the newest release and its release date


This template should be updated with every new release, including bugfix releases.
This template should be updated with every new release, including bugfix releases.
Line 20: Line 23:
== Usage ==
== Usage ==
  {{obr}}'''current release'''{{!}}data{{cbr}}
  {{obr}}'''current release'''{{!}}data{{cbr}}
Example:
{{Current release|cr}}


; data : Dictates what data is returned. This parameter is mandatory. Value may be one of:
; data : Dictates what data is returned. This parameter is mandatory. Value may be one of:
Line 29: Line 29:
:*'''nr''': Next release
:*'''nr''': Next release
:*'''nrd''': Days until the next release
:*'''nrd''': Days until the next release
== Examples ==
{{obr}}current release{{!}}cr{{cbr}}
{{current release|cr}}


== Related template ==
== Related template ==

Revision as of 15:13, 19 March 2019


The following template description is not displayed when the template is inserted in an article.

Goal

This template is used internally by {{GitStatus}} to display:

  1. the current release
  2. the release date of the current release
  3. the next release
  4. the number of days until the next release.
  5. the full version of the newest release and its release date

This template should be updated with every new release, including bugfix releases.

Usage

{{current release|data}}
data
Dictates what data is returned. This parameter is mandatory. Value may be one of:
  • cr: Current release
  • crd: Release date of current release
  • nr: Next release
  • nrd: Days until the next release

Examples

{{current release|cr}}

2018.3

Related template

See also