Difference between revisions of "Template:Days since/doc"
Jump to navigation
Jump to search
imported>Mdaniels5757 (create doc) |
imported>Christian75 (→Usage: Fix example (tlx didn't show short=yes) and a more interesting example than 0 days ago (current time)) |
||
Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
− | {{tlx|Days since|{{CURRENTYEAR}}| | + | {{tlx|Days since|{{CURRENTYEAR}}|01|01}} produces: {{Days since|{{CURRENTYEAR}}|01|01}} |
− | {{tlx|Days since|{{CURRENTYEAR}}| | + | {{tlx|1=Days since|2={{CURRENTYEAR}}|3=01|4=01|5=short=yes}} produces: {{Days since|{{CURRENTYEAR}}|01|01|short=yes}} |
== Template data == | == Template data == |
Latest revision as of 15:15, 7 September 2020
![]() | This is a documentation subpage for Template:Days since. It contains 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|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