Template:Week before Pascha

From OrthodoxWiki
(Difference between revisions)
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 10:40, December 2, 2011

36


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

Personal tools
Namespaces
Variants
Actions
Navigation
interaction
Donate

Please consider supporting OrthodoxWiki. FAQs

Toolbox