Difference between revisions of "Template:Days ago"
Moussekateer (talk | contribs) m (dem brackets) |
(move brackets to main page template) |
||
Line 4: | Line 4: | ||
| day = {{{3}}} | | day = {{{3}}} | ||
− | | today = ({{lang | + | | today = {{#if:{{{br|}}}|(}}{{lang |
| cs = Dnes | | cs = Dnes | ||
| de = Heute | | de = Heute | ||
Line 25: | Line 25: | ||
| zh-hans = 今天 | | zh-hans = 今天 | ||
| zh-hant = 今天 | | zh-hant = 今天 | ||
− | }}) | + | }}{{#if:{{{br|}}}|)}} |
− | | yesterday = ({{lang | + | |
+ | | yesterday = {{#if:{{{br|}}}|(}}{{lang | ||
| cs = Včera | | cs = Včera | ||
| de = Gestern | | de = Gestern | ||
Line 47: | Line 48: | ||
| zh-hans = 昨天 | | zh-hans = 昨天 | ||
| zh-hant = 昨天 | | zh-hant = 昨天 | ||
− | }}) | + | }}{{#if:{{{br|}}}|)}} |
− | | days-ago = {{lang | + | | days-ago = {{#if:{{{br|}}}|(}}{{lang |
− | | cs = | + | | cs = před {{age in days|{{{1}}}|{{{2}}}|{{{3}}}}} dny |
− | | de = | + | | 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 = | + | | 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 = | + | | 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 = | + | | 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}}}}}天前 |
− | }} | + | }}{{#if:{{{br|}}}|)}} |
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Line 79: | Line 80: | ||
== Usage == | == Usage == | ||
* {{tlx|Days ago|2010|12|8}} (yyyy-m-d) generates {{Days ago|2010|12|8}} | * {{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> |
Revision as of 10:01, 30 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.