Difference between revisions of "Template:Days ago"

From Team Fortress Wiki
Jump to: navigation, search
(Updated available languages)
Line 83: Line 83:
  
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
{{translation switching|ar, cs, da, de, en, es, fi, fr, hu, it, ja, ko, nl, no, pt, pt-br, pl, ro, ru, sv, tr, zh-hans, zh-hant}}
+
{{translation switching|en, ar, cs, da, de, es, fi, fr, hu, it, ja, ko, nl, no, pl, pt, pt-br, ro, ru, sv, tr, zh-hans, zh-hant}}
 
{{doc begin}}
 
{{doc begin}}
 
This template makes use of [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions ParserFunctions] in the MediaWiki software to calculate the amount of days past since a specified date. Its main usage is on the {{tl|Latest updates}} template that appears on the [[Main Page]]. As the code of this template can be quite complex, {{tl|Days ago/core}} is used to hold the mathematical expressions and {{tl|Days ago}} handles language translations.
 
This template makes use of [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions ParserFunctions] in the MediaWiki software to calculate the amount of days past since a specified date. Its main usage is on the {{tl|Latest updates}} template that appears on the [[Main Page]]. As the code of this template can be quite complex, {{tl|Days ago/core}} is used to hold the mathematical expressions and {{tl|Days ago}} handles language translations.

Revision as of 20:24, 20 June 2016

Documentation for Days ago

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 {{Latest updates}} template that appears on the Main Page. As the code of this template can be quite complex, {{Days ago/core}} is used to hold the mathematical expressions and {{Days ago}} handles language translations.

Usage

  • {{Days ago|2010|12|8}} (yyyy-m-d) generates 4887 days ago
  • {{Days ago|2010|12|8|br=yes}} (yyyy-m-d) generates (4887 days ago)