« Modèle:Event date » : différence entre les versions

De Wiki - La Calv
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
<includeonly>{{#switch: {{{1|}}}
<includeonly>{{#switch: {{{1|}}}
  | Saint-Valentin                  = {{#ifeq: {{{2|}}} | end | Feb 17th | Feb 7th  }}
  | Arcade                          = {{#ifeq: {{{2|}}} | end | Jun 1st  | Jul 1st  }}
   | Halloween                        = {{#ifeq: {{{2|}}} | end | Nov 1st  | Oct 1st  }}
   | Halloween                        = {{#ifeq: {{{2|}}} | end | Nov 1st  | Oct 1st  }}
   | Noël                            = {{#ifeq: {{{2|}}} | end | Jan 1st  | Dec 1st  }}
   | Noël                            = {{#ifeq: {{{2|}}} | end | Jan 1st  | Dec 1st  }}

Version du 11 novembre 2023 à 20:36

Usage: {{Event date|Halloween|end}} creates: Nov 1st

Send in an event name, get the (human readable) annual start date of the event. If the end flag is set, then you get the end date.