Template:Current release: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (this won't handle the transition from xxxx.4 to yyyy.1 in its current form (yet))
mNo edit summary
Line 2: Line 2:
| cr = 2016.{{#expr: {{CURRENTMONTH}} div 3}}
| cr = 2016.{{#expr: {{CURRENTMONTH}} div 3}}
| crd = 17 September 2016
| crd = 17 September 2016
| nr = 2016.{{#expr:{{#expr: {{CURRENTMONTH}} div 3}} +1}}
<!-- note, this hasn't really been tested yet ... --->
| nr = {{#ifeq: {{#expr: {{CURRENTMONTH}} div 3}} | 4 | {{#expr: {{CURRENTYEAR}} + 1}} | {{CURRENTYEAR}}}}.{{#expr:{{#expr: {{CURRENTMONTH}} div 3}} +1}}
| nrd = <daysuntil>17 November 2016</daysuntil>
| nrd = <daysuntil>17 November 2016</daysuntil>
| #default = {{error|No argument given|current release}}
| #default = {{error|No argument given|current release}}

Revision as of 17:52, 15 September 2016


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.

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

Usage

{{current release|data}}

Example: 2024.2.3333333333333

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

Related template

See also