Difference between revisions of "Template:Days ago"
(Improving translation of the french part (not sure if it's going to work, copy pasta of spanish version).) |
(Push new changes.) |
||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{Days ago/core |
− | | | + | | year = {{{1}}} |
− | | | + | | month = {{{2}}} |
+ | | day = {{{3}}} | ||
+ | |||
| today = {{lang | | today = {{lang | ||
| cs = Dnes | | cs = Dnes | ||
Line 46: | Line 48: | ||
| zh-hant = 昨天 | | zh-hant = 昨天 | ||
}} | }} | ||
+ | |||
| days-ago = {{lang | | days-ago = {{lang | ||
− | | cs = před {{ | + | | cs = (před {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} dny) |
− | | de = vor {{ | + | | de = (vor {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} Tagen) |
− | | en = {{ | + | | en = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|day|days}} ago) |
− | | es = Hace {{ | + | | es = (Hace {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|día|días}}) |
− | | fi = {{ | + | | fi = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|päivä|päivää}} sitten) |
− | | fr = Il y a {{ | + | | fr = (Il y a {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|jour|jours}}) |
− | | hu = {{ | + | | hu = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} nappal ezelőtt) |
− | | it = {{ | + | | it = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|giorno|giorni}} fa) |
− | | ja = {{ | + | | ja = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}日前) |
− | | ko = {{ | + | | ko = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}일 전) |
− | | nl = {{ | + | | nl = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|dag|dagen}} geleden) |
− | | no = {{ | + | | no = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|dag|dager}} siden) |
− | | pt = {{ | + | | pt = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|dia|dias}} atrás) |
− | | pt-br = {{ | + | | pt-br = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|dia|dias}} atrás) |
− | | pl = {{ | + | | pl = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} dni temu) |
− | | ro = acum {{ | + | | ro = (acum {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} zile) |
− | | ru = {{ | + | | ru = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{Plural|lang=ru|{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|день|дня|дней}} назад) |
− | | sv = {{ | + | | sv = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} {{PLURAL:{{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}|dag|dagar}} sedan) |
− | | zh-hans = {{ | + | | zh-hans = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}日前) |
− | | zh-hant = {{ | + | | zh-hant = ({{age in days|{{{1}}}|{{{2}}}|{{{3}}}}}天前) |
}} | }} | ||
− | + | ||
− | {{translation switching| | + | }}</includeonly><noinclude> |
+ | {{translation switching|all languages except: ar}} | ||
{{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. | ||
== Usage == | == Usage == | ||
− | * {{tlx|Days ago| | + | * {{tlx|Days ago|2010|12|8}} (yyyy-m-d) generates {{Days ago|2010|12|8}} |
− | |||
− | |||
− | |||
− | |||
[[Category:Language templates|Days ago]] | [[Category:Language templates|Days ago]] | ||
</noinclude> | </noinclude> |
Revision as of 10:03, 2 January 2011
![]() | This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Days ago/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: all languages except: ar (add) |
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 4942 days ago