Jump to content

Module:Easter/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Crissov (talk | contribs) at 20:18, 8 July 2016 (arguments: small error, planned additions). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Module to calculate Easter dates and dates relative to Easter.

Calculate

Function to calculate Easter date or date of the event related to Easter.

arguments

Field Purpose Example argument
1 Year 2025 or 1882
method Calculation method of the Easter date:
Julian
original calculation for Julian calendar
Eastern or Orthodox
original calculation for Julian calendar converted to Gregorian calendar
Western or Roman or Gregorian
revised calculation for Gregorian calendar. This is default method if not given.
Eastern to calculate Easter date in the Orthodox rite.
day Name of the event related to Easter date or integer number of days before (negative) or after (positive) Easter Sunday. The following days are available by name:
Septuagesima
63 days before Easter - this is the earliest date returned by the funtion
Sexagesima
56 days before Easter
Fat Thursday
52 days before Easter
Quinquagesima
49 days before Easter
Shrove Monday
48 days before Easter
Shrove Tuesday
47 days before Easter
Ash Wednesday
46 days before Easter
Palm Sunday
7 days before Easter
Maundy Thursday
3 days before Easter
Good Friday
2 days before Easter
Holy Saturday
1 day before Easter
Easter
0 - neither before nor after - this is default value if not given
Easter Monday
1 day after Easter
Ascension Thursday
39 days after Easter
Pentecost
49 day after Easter
Corpus Christi
60 day after Easter
49 or interchangeably Pentecost
format Describes date format in the final output, which is the same as used in #time parser function. Default format is Y-m-d. There is a special value none that prevents from final date formatting. j xd

examples

{{#invoke:Easter|Calculate|{{CURRENTYEAR}}}}
2025-04-20
{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|method=Eastern}}
2025-04-20
{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|format=[[j xg]]}}
20 April
{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|method=Eastern|format=[[j xg]]}}
20 April
{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|day=Ash Wednesday}}
2025-03-05
{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|method=Eastern|day=Ash Wednesday}}
2025-03-05
{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|format=[[j xg]] (l)|day=Ash Wednesday}}
5 March (Wednesday)
{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|method=Eastern|format=[[j xg]] (l)|day=Ash Wednesday}}
5 March (Wednesday)