Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Humanipedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:Easter/doc
(section)
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <code>Calculate</code> == Function to calculate Easter date or date of the event related to Easter. === arguments === {| class="wikitable" ! Field ! Purpose ! Example argument |- | 1 | Year | <code>{{CURRENTYEAR}}</code> or <code>1882</code> |- | method | Calculation method of the Easter date: ; <code>Julian</code> : original calculation for Julian calendar ; <code>Eastern</code> or <code>Orthodox</code> : original calculation for Julian calendar converted to Gregorian calendar ; <code>Western</code> or <code>Roman</code> or <code>Gregorian</code> : revised calculation for Gregorian calendar. This is default method if not given. | <code>Eastern</code> 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: ; <code>[[Septuagesima]]</code> : 63 days before Easter β this is the earliest date returned by the function ; <code>[[Sexagesima]]</code> : 56 days before Easter ; <code>[[Fat Thursday]]</code> : 52 days before Easter ; <code>[[Quinquagesima]]</code> : 49 days before Easter, also ''Estomihi'' or ''Shrove Sunday'' ; <code>[[Shrove Monday]]</code> : 48 days before Easter, also ''Rose Monday'' ; <code>[[Shrove Tuesday]]</code> : 47 days before Easter, also ''Mardi Gras'', ''Carnival'' or ''Pancake Day'' ; <code>[[Ash Wednesday]]</code> : 46 days before Easter ; <code>[[Lent|Invocabit Sunday]]</code> : 42 days before Easter ; <code>[[Lent|Reminiscere Sunday]]</code> : 35 days before Easter ; <code>[[Lent|Oculi Sunday]]</code> : 28 days before Easter ; <code>[[Mothering Sunday]]</code> : 21 days before Easter, also [[Laetare Sunday|''Laetare'']] ; <code>[[Passion Sunday]]</code> : 14 days before Easter ; <code>[[Holy Week]]</code> : 7 days before Easter ; <code>[[Palm Sunday]]</code> : 7 days before Easter ; <code>[[Holy Monday]]</code> : 6 days before Easter ; <code>[[Holy Tuesday]]</code> : 5 days before Easter ; <code>[[Holy Wednesday]]</code> : 4 days before Easter, also ''Spy Wednesday'' ; <code>[[Maundy Thursday]]</code> : 3 days before Easter, also ''Last Supper'' ; <code>[[Good Friday]]</code> : 2 days before Easter, also ''Crucifixion'' ; <code>[[Holy Saturday]]</code> : 1 day before Easter ; <code>[[Easter]]</code> : 0 β neither before nor after β this is default value if not given, also ''Easter Sunday'' or ''Resurrection'' ; <code>[[Easter Monday]]</code> : 1 day after Easter ; <code>[[Divine Mercy Sunday]]</code> : 7 days after Easter ; <code>[[Misericordias Domini]]</code> : 14 days after Easter ; <code>[[Jubilate Sunday]]</code> : 21 days after Easter ; <code>[[Cantate Sunday]]</code> : 28 days after Easter ; <code>[[Vocem jucunditatis]]</code> : 35 days after Easter ; <code>[[Ascension Thursday]]</code> : 39 days after Easter ; <code>[[Pentecost]]</code> : 49 days after Easter, also ''Whitsun'' or ''Exaudi'' ; <code>[[Whit Monday]]</code> : 50 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>[[Sacred Heart]]</code> : 68 days after Easter ; <code>[[Immaculate Heart]]</code> : 69 days after Easter | <code>49</code> or interchangeably <code>Pentecost</code> |- | format | Describes date format in the final output, which is the same as used in [[mw:Help:Extension:ParserFunctions#.23time|#time parser function]]. Default format is <code>Y-m-d</code>. There is a special value <code>none</code> that prevents from final date formatting. | <code>j xd</code> |} === examples === ; <code><nowiki>{{#invoke:Easter|Calculate|{{CURRENTYEAR}}}}</nowiki></code> : {{#invoke:Easter|Calculate|{{CURRENTYEAR}}}} ; <code><nowiki>{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|method=Eastern}}</nowiki></code> : {{#invoke:Easter|Calculate|{{CURRENTYEAR}}|method=Eastern}} ; <code><nowiki>{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|format=[[j xg]]}}</nowiki></code> : {{#invoke:Easter|Calculate|{{CURRENTYEAR}}|format=[[j xg]]}} ; <code><nowiki>{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|method=Eastern|format=[[j xg]]}}</nowiki></code> : {{#invoke:Easter|Calculate|{{CURRENTYEAR}}|method=Eastern|format=[[j xg]]}} ; <code><nowiki>{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|day=Ash Wednesday}}</nowiki></code> : {{#invoke:Easter|Calculate|{{CURRENTYEAR}}|day=Ash Wednesday}} ; <code><nowiki>{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|method=Eastern|day=Ash Wednesday}}</nowiki></code> : {{#invoke:Easter|Calculate|{{CURRENTYEAR}}|method=Eastern|day=Ash Wednesday}} ; <code><nowiki>{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|format=[[j xg]] (l)|day=Ash Wednesday}}</nowiki></code> : {{#invoke:Easter|Calculate|{{CURRENTYEAR}}|format=[[j xg]] (l)|day=Ash Wednesday}} ; <code><nowiki>{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|method=Eastern|format=[[j xg]] (l)|day=Ash Wednesday}}</nowiki></code> : {{#invoke:Easter|Calculate|{{CURRENTYEAR}}|method=Eastern|format=[[j xg]] (l)|day=Ash Wednesday}} <includeonly>{{Sandbox other|| [[Category:Time, date and calendar modules]] }}</includeonly><noinclude> [[Category:Module documentation pages]] </noinclude>
Summary:
Please note that all contributions to Humanipedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Humanipedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)