Difference between revisions of "Template:Days ago"

From Team Fortress Wiki
Jump to: navigation, search
(added new /ar lines to temp)
m (turkish translation request from desertboys)
Line 24: Line 24:
 
   | ru = Сегодня
 
   | ru = Сегодня
 
   | sv = Idag
 
   | sv = Idag
 +
  | tr = Bugün
 
   | zh-hans = 今天
 
   | zh-hans = 今天
 
   | zh-hant = 今天
 
   | zh-hant = 今天
Line 48: Line 49:
 
   | ru = вчера
 
   | ru = вчера
 
   | sv = Igår
 
   | sv = Igår
 +
  | tr = Dün
 
   | zh-hans = 昨天
 
   | zh-hans = 昨天
 
   | zh-hant = 昨天
 
   | zh-hant = 昨天
Line 72: Line 74:
 
   | ru = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{Plural|lang=ru|{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|день|дня|дней}} назад
 
   | ru = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{Plural|lang=ru|{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|день|дня|дней}} назад
 
   | sv = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|dag|dagar}} sedan
 
   | sv = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|dag|dagar}} sedan
 +
  | tr = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} gün önce
 
   | zh-hans = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}日前
 
   | zh-hans = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}日前
 
   | zh-hant = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}天前
 
   | zh-hant = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}天前

Revision as of 16:14, 19 June 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)