Difference between revisions of "Template:Days from now/doc"

From blackwiki
Jump to navigation Jump to search
(DEFAULTSORT doesn't seem to work, switching to standard {{PAGENAME}} sorting instead)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 12: Line 12:
 
* {{tl|age in days}}
 
* {{tl|age in days}}
  
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<includeonly>{{Sandbox other||<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Date mathematics templates|{{PAGENAME}}]]
 
[[Category:Date mathematics templates|{{PAGENAME}}]]
</includeonly>
+
}}</includeonly>

Latest revision as of 22:52, 24 April 2020

Usage

This template will return a number in days if the date given is less than 60 days away; otherwise, it will return a number in months, so that it does not return large numbers of days that are probably not very useful, which can sometimes be in the thousands.

{{days from now|2020|1|1}}

produces

-2277 days

See also