Difference between revisions of "Template:Week after Pentecost"

From OrthodoxWiki
Jump to: navigation, search
(new)
 
m (fix)
Line 5: Line 5:
 
}}<noinclude>
 
}}<noinclude>
 
----
 
----
 +
{{#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}} }}
 +
| {{#expr: {{#time:W|{{{date|}}}}} + 52 - {{Pentecost date|format=W|year={{#time:Y|{{{date|}} - 1 year}}}}}}}
 +
}}<noinclude>
 +
 
This template displays the current week number after Pentecost.
 
This template displays the current week number after Pentecost.
  

Revision as of 13:19, December 2, 2011

46


Expression error: Unexpected < operator.}

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