Difference between revisions of "Template:Days elapsed times factor/doc"

From blackwiki
Jump to navigation Jump to search
imported>Greg L
(→‎See also: Category added)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
Is not ready yet, significant figures not implemented yet.
 
  
 
==Usage==
 
==Usage==
Line 15: Line 14:
 
*[[Template:Age in days]]
 
*[[Template:Age in days]]
 
*[[m:Help:ParserFunctions##expr:|Parser function #expr]]
 
*[[m:Help:ParserFunctions##expr:|Parser function #expr]]
<includeonly><!--
+
<includeonly>{{Sandbox other||<!--
 
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. -->
 
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. -->
[[Category:Date mathematics templates|{{PAGENAME}}]]
+
[[Category:Date mathematics templates]]
</includeonly>
+
[[Category:Date-computing templates]]
 +
}}</includeonly>

Latest revision as of 22:52, 24 April 2020

Usage

{{days elapsed times factor|year|month|day|factor|decimal_places}}

Example Moon

This:

Cumulatively, this effect becomes ever more significant over time; since when [[Apollo 11|astronauts first landed on the Moon]] approximately {{age|1969|1|19}}<!-- NOTE TO EDITORS: This date, which is 182 days before the landing, rounds the elapsed time to the nearest year. --> years ago, it is now {{days elapsed times factor|1969|7|20|0.0001046|2}} metres farther away.

Becomes:

Cumulatively, this effect becomes ever more significant over time; since when astronauts first landed on the Moon approximately 57 years ago, it is now 2.17 metres farther away.

See also