Module:Easter/doc: Difference between revisions
Appearance
Content deleted Content added
→Calculate: + |
m →arguments: fix markup |
||
Line 55: | Line 55: | ||
; <code>[[Trinity Sunday]]</code> : 56 days after Easter |
; <code>[[Trinity Sunday]]</code> : 56 days after Easter |
||
; <code>[[Corpus Christi (feast)|Corpus Christi]]</code> : 60 days after Easter, also ''Body and Blood of Christ'' |
; <code>[[Corpus Christi (feast)|Corpus Christi]]</code> : 60 days after Easter, also ''Body and Blood of Christ'' |
||
; <code>[[Sacred Heart]] : 68 days after Easter |
; <code>[[Sacred Heart]]</code> : 68 days after Easter |
||
; <code>[[Immaculate Heart]] : 69 days after Easter |
; <code>[[Immaculate Heart]]</code> : 69 days after Easter |
||
| <code>49</code> or interchangeably <code>Pentecost</code> |
| <code>49</code> or interchangeably <code>Pentecost</code> |
||
|- |
|- |
Revision as of 12:29, 20 April 2020
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:
|
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:
|
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)