Open main menu

OrthodoxWiki β

Changes

Template:Week before Pascha

1,083 bytes added, 17:32, December 2, 2011
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>