الگو:Age in weeks: تفاوت میان نسخه‌ها

از ویکی‌پدیا، دانشنامهٔ آزاد
محتوای حذف‌شده محتوای افزوده‌شده
Rezabot (بحث | مشارکت‌ها)
درون‌ریزی خودکار مقاله‌ها
 
علیرضا (بحث | مشارکت‌ها)
پشتیبانی از ارقام فارسی
خط ۲: خط ۲:
</noinclude><includeonly>{{#expr:floor {{#expr:
</noinclude><includeonly>{{#expr:floor {{#expr:
(
(
+ {{Gregorian serial date
+ {{formatnum:{{Gregorian serial date
|month = {{{month2|{{CURRENTMONTH}}}}}
|month = {{formatnum:{{{month2|{{CURRENTMONTH}}}}}|R}}
|day = {{{day2|{{CURRENTDAY}}}}}
|day = {{formatnum:{{{day2|{{CURRENTDAY}}}}}|R}}
|year = {{{year2|{{CURRENTYEAR}}}}}
|year = {{formatnum:{{{year2|{{CURRENTYEAR}}}}}|R}}
}}
}}|R}}
- {{Gregorian serial date
- {{formatnum:{{Gregorian serial date
|month = {{{month1|{{CURRENTMONTH}}}}}
|month = {{formatnum:{{{month1|{{CURRENTMONTH}}}}}|R}}
|day = {{{day1|{{CURRENTDAY}}}}}
|day = {{formatnum:{{{day1|{{CURRENTDAY}}}}}|R}}
|year = {{{year1|{{CURRENTYEAR}}}}}
|year = {{formatnum:{{{year1|{{CURRENTYEAR}}}}}|R}}
}}
}}|R}}
)
)
/ 7
/ 7

نسخهٔ ‏۲۹ اکتبر ۲۰۱۴، ساعت ۱۷:۱۳

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: {{Age in weeks|month1= |day1= |year1= |month2= |day2= | year2=}}