الگو:CURRENTWEEKDATE
۲۰۱۲-W-[expression " (((((۲۰۱۲)*12+(۰۶)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0) -((((۲۰۱۲)*12+(۰۶)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0) +((((۲۰۱۲)*12+(۰۶)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0) +((((۰۶)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(۲)-32167 )mod7+1" in DOW gives system message "خطای عبارت: نویسه نقطهگذاری شناخته نشده «�»"]
The template returns today's date on the ISO 8601 weekformat YYYY-Www-D. Note that the year is the ISO year.
[ویرایش] Examples
- {{
CURRENTWEEKDATE}} نتیجه میدهد "۲۰۱۲-W-[expression "
(((((۲۰۱۲)*12+(۰۶)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0) -((((۲۰۱۲)*12+(۰۶)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0) +((((۲۰۱۲)*12+(۰۶)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0) +((((۰۶)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(۲)-32167 )mod7+1" in DOW gives system message "خطای عبارت: نویسه نقطهگذاری شناخته نشده «�»"]"
[ویرایش] See also
- Template:ISOWEEKDATE som også tillater angivelse av tid
- Template:CURRENTISOYEAR {{
CURRENTISOYEAR}} نتیجه میدهد "۲۰۱۲" - Template:CURRENTISOWEEK {{
CURRENTISOWEEK}} نتیجه میدهد "" - Template:CURRENTISOWEEKDAY {{
CURRENTISOWEEKDAY}} نتیجه میدهد "[expression "
(((((۲۰۱۲)*12+(۰۶)+57608.5 round 0)/12-1.5 round 0)*1461/4-0.5 round 0) -((((۲۰۱۲)*12+(۰۶)+57608.5 round 0)/12-1.5 round 0)/100-0.5 round 0) +((((۲۰۱۲)*12+(۰۶)+57608.5 round 0)/12-1.5 round 0)/400-0.5 round 0) +((((۰۶)+57608.5 round 0)mod 12+4)*153/5-0.5 round 0)+(۲)-32167 )mod7+1" in DOW gives system message "خطای عبارت: نویسه نقطهگذاری شناخته نشده «�»"]"
- Template:ISOYEAR
- Template:ISOWEEK
- Template:ISOWEEKDAY
- Template:ISOWEEKDATE
- Template:CURRENTISODATE {{
CURRENTISODATE}} نتیجه میدهد "۲۰۱۲-۰۶-0۲"