Difference between revisions of "Template:Days ago"

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