Difference between revisions of "Template:Week after Pentecost"

From OrthodoxWiki
Jump to: navigation, search
(new)
 
m (fix)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#ifexpr:  
 
{{#ifexpr:  
 
{{#expr: {{#time:W|{{{date|}}} }} - {{Pentecost date|year={{#time:Y|{{{date|}}}}}|format=W}} }} > 0
 
{{#expr: {{#time:W|{{{date|}}} }} - {{Pentecost date|year={{#time:Y|{{{date|}}}}}|format=W}} }} > 0
| {{#expr: {{#time:W|{{{date|}}} }} - {{Pentecost date|year={{#time:Y|{{{date|}}}}}|format=W}} }}
+
| {{#expr: {{#time:W|{{{date|}}} }} -     {{Pentecost date|year={{#time:Y|{{{date|}}}         }}|format=W}} }}
| {{#expr: {{#time:W|{{{date|}}}}} + 52 - {{Pentecost date|format=W|year={{#time:Y|{{{date|jan 5 1956 - 1 year}}}}}}}}}
+
| {{#expr: {{#time:W|{{{date|}}}}} + 52 - {{Pentecost date|year={{#time:Y|{{{date|}}} - 1 year}}|format=W}}}}
}}<noinclude>
+
}} <noinclude>
 
----
 
----
 +
 
This template displays the current week number after Pentecost.
 
This template displays the current week number after Pentecost.
  
Line 19: Line 20:
 
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 after Pentecost|date=Feb 18 2011}}</nowiki> returns {{Week after Pentecost|date=Feb 18 2011}}
+
<nowiki>{{Week after Pentecost|date=Feb 18 2011}}</nowiki> returns:
 +
 
 +
{{Week after Pentecost|date=Feb 18 2011}}
  
  
 
[[Category:OrthodoxWiki Templates|{{PAGENAME}}]]
 
[[Category:OrthodoxWiki Templates|{{PAGENAME}}]]
 
[[Category:Calendar templates]]</noinclude>
 
[[Category:Calendar templates]]</noinclude>

Latest revision as of 14:13, December 2, 2011

46


This template displays the current week number after Pentecost.

(Week 1 starts the Monday after Pentecost)

Usage

Usage: {{Week after Pentecost}}

Or this template displays the current week number after Pentecost for the date given.

Usage: {{Week after Pentecost|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 after Pentecost|date=Feb 18 2011}} returns:

39