Difference between revisions of "Template:Duration in days"

From blackwiki
Jump to navigation Jump to search
imported>BlueFire10
(new template)
 
imported>Johnuniq
(use Module:Age for features including ability to enter dates in full and to detect invalid dates)
Line 1: Line 1:
<includeonly>{{#expr:
+
<includeonly>{{#invoke:age|age_generic|template=duration_days}}</includeonly><noinclude>{{documentation}}</noinclude>
        1 + {{Gregorian serial date
 
                      |month = {{{month2|{{{5|{{CURRENTMONTH}}}}}}}}
 
                      |day = {{{day2|{{{6|{{CURRENTDAY}}}}}}}}
 
                      |year = {{{year2|{{{4|{{CURRENTYEAR}}}}}}}}
 
          }}
 
        - {{Gregorian serial date
 
                      |month = {{{month1|{{{2|{{CURRENTMONTH}}}}}}}}
 
                      |day = {{{day1|{{{3|{{CURRENTDAY}}}}}}}}
 
                      |year = {{{year1|{{{1|{{CURRENTYEAR}}}}}}}}
 
          }} }}</includeonly><noinclude>
 
{{Documentation}}
 
</noinclude>
 

Revision as of 02:13, 5 April 2018

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

Usage

Same as {{Age in days}} + 1. Use when we want to count days, rather than give "age".