Difference between revisions of "Template:Days ago"

From Team Fortress Wiki
Jump to: navigation, search
(move coding to /core subpage, add new langs from translatewiki.net: es, fi, hu, it, ja, nl, pt, sv, zh-hans)
Line 1: Line 1:
{{#ifexpr:{{LOCALMONTH}} = {{{1|}}}
+
<includeonly>{{Days ago/core
|{{#ifexpr:{{LOCALDAY}} = {{{2|}}}
+
| 1 = {{{1|}}}
  |({{lang
+
| 2 = {{{2|}}}
|cs=Dnes
+
| today = {{lang
|de=Heute
+
  | cs = Dnes
|en=Today
+
  | de = Heute
|fr=Aujourd'hui
+
  | es = Hoy
|pl=dzisiaj
+
  | fi = Tänään
|ro=Astăzi
+
  | fr = Aujourd’hui
|ru=сегодня
+
  | hu = Ma
|zh-hant=今天
+
  | it = Oggi
}})
+
  | ja = 今日
   |{{#ifexpr:{{LOCALDAY}} - {{{2|}}} = 1
+
   | nl = Vandaag
    |({{lang
+
  | pl = Dzisiaj
|cs=Včera
+
  | pt = Hoje
|de=Gestern
+
  | ro = Astăzi
|en=Yesterday
+
  | ru = Сегодня
|fr=Hier
+
  | sv = Idag
|pl=wczoraj
+
  | zh-hans = 今天
|ro=Ieri
+
  | zh-hant = 今天
|ru=вчера
 
|zh-hant=昨天
 
}})
 
    |({{lang <!-- Use this if your language uses a different syntax to English. -->
 
|cs=před&nbsp;
 
|de=vor&nbsp;
 
|en=<!-- None -->
 
|ro=acum&nbsp;
 
}}{{#expr:{{LOCALDAY}} - {{{2|}}}}}&nbsp;{{lang
 
|cs=dny
 
|de=Tagen
 
|en=days ago
 
|fr=jours auparavant
 
|pl=dni temu
 
|ru=days ago
 
|ro=zile
 
|ru={{Plural|lang=ru|{{#expr:{{LOCALDAY}} - {{{2|}}}}}|день|дня|дней}} назад
 
|zh-hant=天前
 
}})
 
    }}
 
 
   }}
 
   }}
|}}<noinclude>
+
| yesterday = {{lang
{{Translation switching|cs, de, en, fr, pl, ro, ru,zh-hant}}
+
  | cs = Včera
 +
  | de = Gestern
 +
  | en = Yesterday
 +
  | es = Ayer
 +
  | fi = Eilen
 +
  | fr = Hier
 +
  | hu = Tegnap
 +
  | it = Ieri
 +
  | ja = 昨日
 +
  | nl = Gisteren
 +
  | pl = wczoraj
 +
  | pt = Ontem
 +
  | ro = Ieri
 +
  | ru = вчера
 +
  | sv = I går
 +
  | zh-hans = 昨天
 +
  | zh-hant = 昨天
 +
  }}
 +
| days-ago = {{lang
 +
  | cs = před {{#expr:{{LOCALDAY}} - {{{2|}}}}} dny
 +
  | de = vor {{#expr:{{LOCALDAY}} - {{{2|}}}}} Tagen
 +
  | en = {{#expr:{{LOCALDAY}} - {{{2|}}}}} days ago
 +
  | es = hace {{#expr:{{LOCALDAY}} - {{{2|}}}}} {{Plural|lang=es|{{#expr:{{LOCALDAY}} - {{{2|}}}}}|día|días}}
 +
  | fi = {{#expr:{{LOCALDAY}} - {{{2|}}}}} {{Plural|lang=fi|{{#expr:{{LOCALDAY}} - {{{2|}}}}}|päivä|päivää}} sitten
 +
  | fr = {{#expr:{{LOCALDAY}} - {{{2|}}}}} jours auparavant
 +
  | hu = {{#expr:{{LOCALDAY}} - {{{2|}}}}} nappal ezelőtt
 +
  | it = {{#expr:{{LOCALDAY}} - {{{2|}}}}} {{Plural|lang=it|2={{#expr:{{LOCALDAY}} - {{{2|}}}}}|giorno|giorni}} fa
 +
  | ja = {{#expr:{{LOCALDAY}} - {{{2|}}}}}{{Plural|lang=ja|2={{#expr:{{LOCALDAY}} - {{{2|}}}}}|日}}前
 +
  | nl = {{#expr:{{LOCALDAY}} - {{{2|}}}}} {{Plural|lang=nl|2={{#expr:{{LOCALDAY}} - {{{2|}}}}}|dag|dagen}} geleden
 +
  | pt = {{#expr:{{LOCALDAY}} - {{{2|}}}}} {{Plural|lang=pt|2={{#expr:{{LOCALDAY}} - {{{2|}}}}}|dia|dias}} atrás
 +
  | pl = {{#expr:{{LOCALDAY}} - {{{2|}}}}} dni temu
 +
  | ro = acum {{#expr:{{LOCALDAY}} - {{{2|}}}}} zile
 +
  | ru = {{#expr:{{LOCALDAY}} - {{{2|}}}}} {{Plural|lang=ru|{{#expr:{{LOCALDAY}} - {{{2|}}}}}|день|дня|дней}} назад
 +
  | sv = {{#expr:{{LOCALDAY}} - {{{2|}}}}} {{Plural|lang=sv|2={{#expr:{{LOCALDAY}} - {{{2|}}}}}|dag|dagar}} sedan
 +
  | zh-hans = {{#expr:{{LOCALDAY}} - {{{2|}}}}}日前
 +
  | zh-hant = {{#expr:{{LOCALDAY}} - {{{2|}}}}}天前
 +
  }}
 +
}}</includeonly><noinclude>
 +
{{translation switching|cs, de, es, fi, fr, hu, it, ja, nl, pt, pl, ro, ru, sv, zh-hans, zh-hant}}
 +
[[Category:Language templates|Days ago]]
 
</noinclude>
 
</noinclude>

Revision as of 06:42, 9 September 2010