Template:Days since
Revision as of 20:57, 2 May 2020 by imported>Mdaniels5757 (create documentation subpage)
14 years, 189 days
{{Days since}} shows the years/days (or months/days) since a specific date.
Usage
{{Days since|2025|01|01}}
produces: 8 months ago
{{Days since|2025|01|01|short=yes}}
produces: 8m
Template data
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Days since
Shows the years/days (or months/days) since the entered date.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | Year | Number | required |
2 | 2 | Month | Number | required |
3 | 3 | Day | Number | required |
Short | short | Uses "d" or "m" instead of "months" or "days" if set to "yes" | String | optional |
See also
- Template:Birth date and age – show birthdate and age in years
- Template:Years and days – show years and days for a count in days
The above documentation is transcluded from Template:Days since/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |