الگو:Age in weeks: تفاوت میان نسخهها
محتوای حذفشده محتوای افزودهشده
ردهانبوه: انتقال از رده:Date mathematics templates به رده:الگو:ریاضیات تاریخ |
بدون خلاصۀ ویرایش |
||
خط ۱: | خط ۱: | ||
<includeonly>{{#invoke:age|age_generic|template=age_w}}</includeonly><noinclude>{{توضیحات}}</noinclude> |
|||
<noinclude>This template returns the number of weeks that have elapsed between two dates. If the second set of parameters is not included it will automatically calculate the days between a given date and today. To use type: '''<nowiki>{{Age in weeks|month1= |day1= |year1= |month2= |day2= | year2=}}</nowiki>''' |
|||
</noinclude><includeonly>{{#expr:floor {{#expr: |
|||
( |
|||
+ {{formatnum:{{Gregorian serial date |
|||
|month = {{formatnum:{{{month2|{{CURRENTMONTH}}}}}|R}} |
|||
|day = {{formatnum:{{{day2|{{CURRENTDAY}}}}}|R}} |
|||
|year = {{formatnum:{{{year2|{{CURRENTYEAR}}}}}|R}} |
|||
}}|R}} |
|||
- {{formatnum:{{Gregorian serial date |
|||
|month = {{formatnum:{{{month1|{{CURRENTMONTH}}}}}|R}} |
|||
|day = {{formatnum:{{{day1|{{CURRENTDAY}}}}}|R}} |
|||
|year = {{formatnum:{{{year1|{{CURRENTYEAR}}}}}|R}} |
|||
}}|R}} |
|||
) |
|||
/ 7 |
|||
}} }}</includeonly><noinclude>[[رده:الگو:ریاضیات تاریخ|{{PAGENAME}}]] |
|||
</noinclude> |