Difference between revisions of "Template:Week before Pascha"

From OrthodoxWiki
Jump to: navigation, search
(Usage)
m (adjust)
 
Line 1: Line 1:
 
{{#ifexpr:  
 
{{#ifexpr:  
{{#expr:  1 + {{Pascha date|year={{#time:Y|{{{date| }}}}}|format=W}}  - {{#time:W|{{{date| }}} }} }} > 0
+
{{#expr:  {{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:  {{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 }}
+
|{{#expr:  {{Pascha date|year={{#time:Y|{{{date| }}} + 1 year}}|format=W}} - {{#time:W|{{{date| }}}}} + 52 }}
 
}} <noinclude>
 
}} <noinclude>
 
----
 
----
Line 8: Line 8:
 
This template displays the current week number before Pascha
 
This template displays the current week number before Pascha
  
(Week 1 starts the Monday before Pascha)
+
(Week 1 ends the Sunday before Pascha)
 
==Usage==
 
==Usage==
 
Usage:  '''<nowiki>{{</nowiki>Week before Pascha<nowiki>}}</nowiki>'''
 
Usage:  '''<nowiki>{{</nowiki>Week before Pascha<nowiki>}}</nowiki>'''

Latest revision as of 17:40, December 2, 2011

2


This template displays the current week number before Pascha

(Week 1 ends the Sunday before Pascha)

Usage

Usage: {{Week before Pascha}}

Or this template displays the current week number before Pascha for the date given.

Usage: {{Week before Pascha|date=Mmm dd yyyy}}

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

{{Week before Pascha|date=Mar 6 2011}} returns:

7