Difference between revisions of "Template:Days since"

From blackwiki
Jump to navigation Jump to search
imported>Mr. Guye
imported>Mdaniels5757
(temp. screw up format for documentation, will fix)
Line 16: Line 16:
  
 
{{documentation|content=
 
{{documentation|content=
{{Inadequate documentation}}
 
 
'''{{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

Template documentation

{{Days since}} shows the years/days (or months/days) since a specific date, entered in the 3-number format: year|month|day.

See also

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

Year

Numberrequired
22

Month

Numberrequired
33

Day

Numberrequired
Shortshort

Uses "d" or "m" instead of "months" or "days" if set to "yes"

Stringoptional