Difference between revisions of "Template:Days ago"
(Push new changes.) |
Moussekateer (talk | contribs) m (dem brackets) |
||
Line 4: | Line 4: | ||
| day = {{{3}}} | | day = {{{3}}} | ||
− | | today = {{lang | + | | today = ({{lang |
| cs = Dnes | | cs = Dnes | ||
| de = Heute | | de = Heute | ||
Line 25: | Line 25: | ||
| zh-hans = 今天 | | zh-hans = 今天 | ||
| zh-hant = 今天 | | zh-hant = 今天 | ||
− | }} | + | }}) |
− | | yesterday = {{lang | + | | yesterday = ({{lang |
| cs = Včera | | cs = Včera | ||
| de = Gestern | | de = Gestern | ||
Line 47: | Line 47: | ||
| zh-hans = 昨天 | | zh-hans = 昨天 | ||
| zh-hant = 昨天 | | zh-hant = 昨天 | ||
− | }} | + | }}) |
| days-ago = {{lang | | days-ago = {{lang |
Revision as of 00:21, 8 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 5100 days ago