Template:Easter
Vai alla navigazione
Vai alla ricerca
| Questo template contiene uno o più parametri opzionali. Nel suo codice impiega alcune caratteristiche relativamente complesse o "esoteriche".
Per favore, non tentare di modificarlo se non sei certo di capirne la funzione e se non sei preparato a riparare ogni conseguente danno collaterale nel caso in cui i risultati fossero diversi da quanto avevi in mente. Tutti gli esperimenti devono essere prima condotti nella Sandbox dedicata. |
Le istruzioni che seguono sono contenute nella sottopagina Template:Easter/man (modifica·cronologia)
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 | What is for? | Example argument |
|---|---|---|
| 1 | Year | i.e. 2025 or 1882.
|
| method | Calculation method of the Easter date:
|
i.e. 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) the Easter. The following days are available by name:
|
i.e. 49 |
| 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.
|
i.e. 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 aprile
{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|method=Eastern|format=[[j xg]]}}- 20 aprile
{{#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 marzo (mercoledì)
{{#invoke:Easter|Calculate|{{CURRENTYEAR}}|method=Eastern|format=[[j xg]] (l)|day=Ash Wednesday}}- 5 marzo (mercoledì)