Template:Age in weeks: Difference between revisions

Jump to navigation Jump to search
en>Johnuniq
(use Module:Age for features including ability to enter dates in full, and to generate a sort key)
m (1 revision imported)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:age|age_generic|template=age_w}}</includeonly><noinclude>{{documentation}}</noinclude>
<includeonly>{{#expr:floor {{#expr:
          (
        + {{Gregorian serial date
                      |month = {{{month2|{{CURRENTMONTH}}}}}
                      |day = {{{day2|{{CURRENTDAY}}}}}
                      |year = {{{year2|{{CURRENTYEAR}}}}}
          }}
        - {{Gregorian serial date
                      |month = {{{month1|{{CURRENTMONTH}}}}}
                      |day = {{{day1|{{CURRENTDAY}}}}}
                      |year = {{{year1|{{CURRENTYEAR}}}}}
          }}
          )
        / 7
          }} }}</includeonly><noinclude>
{{documentation}}
</noinclude>

Latest revision as of 00:24, 1 March 2019