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:Days until

From FlightGear wiki
Jump to: navigation, search

0

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

Goal

This template will count down to a certain date.

Note Only dates within a year ahead can be counted down to with this template.

Usage

{{days until|event |date=}}
event
Date to be count down to. Defaults to today.
date
Overrides the current date and time. Useful for debugging purposes etc.

Examples

{{days until|Friday, 20 September 2019}}

3

{{days until|+2 weeks |date=+1 week}}

7

Technical details

This template uses the MediaWiki extension ParserFunctions and specifically the #time: function. The date or time can be in one of the many PHP strtotime() formats, which also includes relative time formats.

Note Dates are less ambiguous if the year is given with four digits and the month is given with letters.

Related templates