Template:Days ago

From Dota 2 Wiki
Jump to: navigation, search

Documentation for Template:Days ago [ view | edit | purge ]

This template makes use of ParserFunctions in the MediaWiki software to calculate the amount of days past since a specified date. Its main usage is on the Main Page to display how long the latest patch, test patch, blog post and version has been released.

Usage

{{Days ago|YYYY-MM-DD}}

Example

  • {{Days ago|2010-12-08}} generates 3799 days ago

TemplateData

Display the days since the given date.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Date1

no description

Example
2015-02-03
Daterequired