Difference between revisions of "Template:Days since"
Jump to navigation
Jump to search
Template documentation
imported>Mr. Guye |
imported>Mdaniels5757 (temp. screw up format for documentation, will fix) |
||
Line 16: | Line 16: | ||
{{documentation|content= | {{documentation|content= | ||
− | |||
'''{{tl|Days since}}''' shows the years/days (or months/days) since a specific date, entered in the 3-number format: year{{!}}month{{!}}day. | '''{{tl|Days since}}''' shows the years/days (or months/days) since a specific date, entered in the 3-number format: year{{!}}month{{!}}day. | ||
Line 25: | Line 24: | ||
[[Category:Date-computing templates based on current time]] | [[Category:Date-computing templates based on current time]] | ||
}} | }} | ||
− | </noinclude> | + | {{TemplateData header}} |
+ | <templatedata> | ||
+ | { | ||
+ | "params": { | ||
+ | "1": { | ||
+ | "description": "Year", | ||
+ | "type": "number", | ||
+ | "required": true | ||
+ | }, | ||
+ | "2": { | ||
+ | "description": "Month", | ||
+ | "type": "number", | ||
+ | "required": true | ||
+ | }, | ||
+ | "3": { | ||
+ | "description": "Day", | ||
+ | "type": "number", | ||
+ | "required": true | ||
+ | }, | ||
+ | "short": { | ||
+ | "description": "Uses \"d\" or \"m\" instead of \"months\" or \"days\" if set to \"yes\"", | ||
+ | "type": "string" | ||
+ | } | ||
+ | }, | ||
+ | "description": "Shows the years/days (or months/days) since the entered date.", | ||
+ | "paramOrder": [ | ||
+ | "1", | ||
+ | "2", | ||
+ | "3", | ||
+ | "short" | ||
+ | ], | ||
+ | "format": "inline" | ||
+ | } | ||
+ | </templatedata></noinclude> |
Revision as of 20:56, 2 May 2020
14 years, 189 days

{{Days since}} shows the years/days (or months/days) since a specific date, entered in the 3-number format: year|month|day.
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. Subpages of this template. |
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 |