Difference between revisions of "Template:Days since"

From blackwiki
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
+
Days since: Show years/days or months/days since date: year|month|day
 
-========================================================================
 
-========================================================================
 
--></noinclude>{{
 
--></noinclude>{{
Line 14: Line 14:
 
}}
 
}}
 
}}<noinclude>
 
}}<noinclude>
 
+
{{Documentation}}
{{documentation|content=
+
<!-- Add categories to the /doc subpage, interwikis to Wikidata, not here -->
{{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.
 
 
 
== 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
 
}}{{Sandbox other|<!-- Absolutely nothing. -->|
 
[[Category:Date-computing templates based on current time]]
 
}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 20:57, 2 May 2020

14 years, 190 days

Template documentation[view] [edit] [history] [purge]

{{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.

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

See also