Difference between revisions of "Template:Days ago"

From Team Fortress Wiki
Jump to: navigation, search
m
Line 7: Line 7:
 
   | ar = اليوم
 
   | ar = اليوم
 
   | cs = Dnes
 
   | cs = Dnes
 +
  | da = I dag
 
   | de = Heute
 
   | de = Heute
 
   | en = Today
 
   | en = Today
Line 32: Line 33:
 
   | ar = أمس
 
   | ar = أمس
 
   | cs = Včera
 
   | cs = Včera
 +
  | da = I går
 
   | de = Gestern
 
   | de = Gestern
 
   | en = Yesterday
 
   | en = Yesterday
Line 57: Line 59:
 
   | ar = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|يوم|أيام}} الماضية
 
   | ar = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|يوم|أيام}} الماضية
 
   | cs = před {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} dny
 
   | cs = před {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} dny
 +
  | da = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|dag|dage}} siden
 
   | de = vor {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} Tagen
 
   | de = vor {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} Tagen
 
   | en = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|day|days}} ago
 
   | en = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|day|days}} ago
Line 80: Line 83:
  
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
{{translation switching|all languages}}
+
{{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}}
 
{{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 22:22, 4 August 2011

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 5100 days ago
  • {{Days ago|2010|12|8|br=yes}} (yyyy-m-d) generates (5100 days ago)