Template:Week before Pascha

From OrthodoxWiki
(Difference between revisions)
Jump to: navigation, search
(new)
 
m (adjust)
 
(One intermediate revision by one user not shown)
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>'''
Line 18: Line 18:
 
where ''Mmm dd yyyy'' is the month day year  
 
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)  
+
default date is today (default month is this month, default day is today, default year is this year)
 +
 
 
==Example==
 
==Example==
 
<nowiki>{{Week before Pascha|date=Mar 6 2011}}</nowiki> returns:  
 
<nowiki>{{Week before Pascha|date=Mar 6 2011}}</nowiki> returns:  

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

29


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