7,257
edits
Changes
new
{{#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 the Monday before Pascha)
==Usage==
Usage: '''<nowiki>{{</nowiki>Week before Pascha<nowiki>}}</nowiki>'''
Or this template displays the current week number before Pascha for the date given.
Usage: '''<nowiki>{{</nowiki>Week before Pascha|date='''''Mmm dd yyyy'''''<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:
{{Week before Pascha|date=Mar 6 2011}}
[[Category:OrthodoxWiki Templates|{{PAGENAME}}]]
[[Category:Calendar templates]]</noinclude>
{{#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 the Monday before Pascha)
==Usage==
Usage: '''<nowiki>{{</nowiki>Week before Pascha<nowiki>}}</nowiki>'''
Or this template displays the current week number before Pascha for the date given.
Usage: '''<nowiki>{{</nowiki>Week before Pascha|date='''''Mmm dd yyyy'''''<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:
{{Week before Pascha|date=Mar 6 2011}}
[[Category:OrthodoxWiki Templates|{{PAGENAME}}]]
[[Category:Calendar templates]]</noinclude>