Difference between revisions of "Template:Days since"
Jump to navigation
Jump to search
imported>Mr. Guye |
imported>Mdaniels5757 m (create documentation subpage) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude><!-- | <noinclude><!-- | ||
-======================================================================== | -======================================================================== | ||
| − | - | + | - Days since: Show years/days or months/days since date: year|month|day |
-======================================================================== | -======================================================================== | ||
--></noinclude>{{ | --></noinclude>{{ | ||
| Line 14: | Line 14: | ||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
| − | + | {{Documentation}} | |
| − | + | <!-- Add categories to the /doc subpage, interwikis to Wikidata, not here --> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</noinclude> | </noinclude> | ||
Latest revision as of 20:57, 2 May 2020
14 years, 253 days
{{Days since}} shows the years/days (or months/days) since a specific date.
Usage
{{Days since|2025|01|01}} produces: 10 months ago
{{Days since|2025|01|01|short=yes}} produces: 10m
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. |