7,257
edits
Changes
m
adjust
{{#ifexpr:
{{#expr: 1 + {{Pascha date|year={{#time:Y|{{{date| }}}}}|format=W}} - {{#time:W|{{{date| }}} }} }} > 0| {{#expr: 1 + {{Pascha date|year={{#time:Y|{{{date| }}}}}|format=W}} - {{#time:W|{{{date| }}} }} }}|{{#expr: 1 +{{Pascha date|year={{#time:Y|{{{date| }}} + 1 year}}|format=W}} - {{#time:W|{{{date| }}}}} + 52 }}
}} <noinclude>
----
This template displays the current week number before Pascha
(Week 1 starts ends the Monday Sunday before Pascha)
==Usage==
Usage: '''<nowiki>{{</nowiki>Week before Pascha<nowiki>}}</nowiki>'''
where ''Mmm dd yyyy'' is the month day year
default date is today (default month is this month, default day is today, default year is this year)
==Example==
<nowiki>{{Week before Pascha|date=Mar 6 2011}}</nowiki> returns: