Template:Days since/doc: Difference between revisions
Jump to navigation
Jump to search
(→Usage: Fix example (tlx didn't show short=yes) and a more interesting example than 0 days ago (current time)) |
Richardpruen (talk | contribs) m (1 revision imported) |
||
(No difference)
|
Revision as of 05:21, 29 August 2021
This is a documentation subpage for Template:Days since. It may contain usage information, categories and other content that is not part of the original template page. |
{{Days since}} shows the years/days (or months/days) since a specific date.
Usage
{{Days since|2024|01|01}} produces: 0
{{Days since|2024|01|01|short=yes}} produces: 0
Template data
This is the TemplateData documentation for this template used by VisualEditor and other tools.
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