Difference between revisions of "Template:Days ago"

From Team Fortress Wiki
Jump to: navigation, search
m (Update according to the standards of the brazilian Steam Translation Server team.)
 
(25 intermediate revisions by 14 users not shown)
Line 1: Line 1:
{{#ifexpr:{{LOCALMONTH}} = {{{1|}}}
+
<includeonly>{{Days ago/core
|{{#ifexpr:{{LOCALDAY}} = {{{2|}}}
+
| year  = {{{1}}}
   |({{lang
+
| month = {{{2}}}
|cs=Dnes
+
| day  = {{{3}}}
|de=Heute
+
 
|en=Today
+
| today = {{#if:{{{br|}}}|(}}{{lang | {{#if:{{{force|}}}|force|null}} = {{{force|}}}
|fr=Aujourd'hui
+
   | ar = اليوم
|pl=dzisiaj
+
  | cs = Dnes
|ro=Astăzi
+
  | da = I dag
|ru=сегодня
+
  | de = Heute
|zh-hant=今天
+
  | en = Today
}})
+
  | es = Hoy
  |{{#ifexpr:{{LOCALDAY}} - {{{2|}}} = 1
+
  | fi = Tänään
    |({{lang
+
  | fr = Aujourd’hui
|cs=Včera
+
  | hu = Ma
|de=Gestern
+
  | it = Oggi
|en=Yesterday
+
  | ja = 今日
|fr=Hier
+
  | ko = 오늘
|pl=wczoraj
+
  | nl = Vandaag
|ro=Ieri
+
  | no = I dag
|ru=вчера
+
  | pl = dzisiaj
|zh-hant=昨天
+
  | pt = Hoje
}})
+
  | pt-br = hoje
    |({{lang <!-- Use this if your language uses a different syntax to English. -->
+
  | ro = Astăzi
|cs=před&nbsp;
+
  | ru = сегодня
|de=vor&nbsp;
+
  | sv = Idag
|en=<!-- None -->
+
  | tr = Bugün
|ro=acum&nbsp;
+
  | zh-hans = 今天
}}{{#expr:{{LOCALDAY}} - {{{2|}}}}}&nbsp;{{lang
+
  | zh-hant = 今天
|cs=dny
+
  }}{{#if:{{{br|}}}|)}}
|de=Tagen
+
 
|en=days ago
+
| yesterday = {{#if:{{{br|}}}|(}}{{lang | {{#if:{{{force|}}}|force|null}} = {{{force|}}}
|fr=jours auparavant
+
  | ar = أمس
|pl=dni temu
+
  | cs = Včera
|ru=days ago
+
  | da = I går
|ro=zile
+
  | de = Gestern
|ru={{Plural|lang=ru|{{#expr:{{LOCALDAY}} - {{{2|}}}}}|день|дня|дней}} назад
+
  | en = Yesterday
|zh-hant=天前
+
  | es = Ayer
}})
+
  | fi = Eilen
    }}
+
  | fr = Hier
  }}
+
  | hu = Tegnap
|}}<noinclude>
+
  | it = Ieri
{{Translation switching|cs, de, en, fr, pl, ro, ru,zh-hant}}
+
  | ja = 昨日
 +
  | ko = 어제
 +
  | nl = Gisteren
 +
  | no = I går
 +
  | pl = wczoraj
 +
  | pt = Ontem
 +
  | pt-br = ontem
 +
  | ro = Ieri
 +
  | ru = вчера
 +
  | sv = Igår
 +
  | tr = Dün
 +
  | zh-hans = 昨天
 +
  | zh-hant = 昨天
 +
  }}{{#if:{{{br|}}}|)}}
 +
 
 +
| days-ago = {{#if:{{{br|}}}|(}}{{lang | {{#if:{{{force|}}}|force|null}} = {{{force|}}}
 +
  | ar = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|يوم|أيام}} الماضية
 +
  | 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
 +
  | en = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|day|days}} ago
 +
  | es = Hace {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|día|días}}
 +
  | fi = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|päivä|päivää}} sitten
 +
  | fr = Il y a {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|jour|jours}}
 +
  | hu = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} nappal ezelőtt
 +
  | it = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|giorno|giorni}} fa
 +
  | ja = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}日前
 +
  | ko = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}일 전
 +
  | nl = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|dag|dagen}} geleden
 +
  | no = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|dag|dager}} siden
 +
  | pt = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|dia|dias}} atrás
 +
  | pt-br = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|dia|dias}} atrás
 +
  | pl = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} dni temu
 +
  | ro = acum {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} zile
 +
  | 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
 +
  | tr = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} gün önce
 +
  | zh-hans = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}日前
 +
  | zh-hant = {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}天前
 +
  }}{{#if:{{{br|}}}|)}}
 +
 
 +
}}</includeonly><noinclude>
 +
{{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}}
 +
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.
 +
 
 +
== Usage ==
 +
* {{tlx|Days ago|2010|12|8}} (yyyy-m-d) generates {{Days ago|2010|12|8}}
 +
* {{tlx|Days ago|2010|12|8|5=br=yes}} (yyyy-m-d) generates {{Days ago|2010|12|8|br=yes}}
 +
 
 +
[[Category:Language templates|Days ago]]
 
</noinclude>
 
</noinclude>

Latest revision as of 22:23, 28 August 2022

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