« Modèle:Event definitions » : 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
 
(Une version intermédiaire par le même utilisateur non affichée)
Ligne 8 : Ligne 8 :


[[Category:Date and time templates]]</noinclude><includeonly>{{#if:
[[Category:Date and time templates]]</noinclude><includeonly>{{#if:
   {{#ifexpr: {{#time:U}} >= {{#time:U|01.01.{{CURRENTYEAR}} 00:00}} | {{#vardefine:Upcoming event|Canthan New Year}} }}
   {{#ifexpr: {{#time:U}} >= {{#time:U|01.01.{{CURRENTYEAR}} 00:00}} | {{#vardefine:Upcoming event|Saint-Valentin}} }}
  {{#ifexpr: {{#time:U}} > {{#time:U|31.01.{{CURRENTYEAR}} 20:00}} | {{#vardefine:Upcoming event|Lucky Treats Week}} }}
   {{#ifexpr: {{#time:U}} > {{#time:U|16.02.{{CURRENTYEAR}} 22:30}} | {{#vardefine:Upcoming event|Arcade}} }}
  {{#ifexpr: {{#time:U}} > {{#time:U|14.03.{{CURRENTYEAR}} 19:00}} | {{#vardefine:Upcoming event|Saint-Valentin}} }}
   {{#ifexpr: {{#time:U}} > {{#time:U|05.06.{{CURRENTYEAR}} 00:00}} | {{#vardefine:Upcoming event|Halloween}} }}
   {{#ifexpr: {{#time:U}} > {{#time:U|01.04.{{CURRENTYEAR}} 07:01}} | {{#vardefine:Upcoming event|Sweet Treats Week}} }}
   {{#ifexpr: {{#time:U}} > {{#time:U|03.10.{{CURRENTYEAR}} 00:00}} | {{#vardefine:Upcoming event|Noël}} }}
  {{#ifexpr: {{#time:U}} > {{#time:U|10.04.{{CURRENTYEAR}} 19:00}} | {{#vardefine:Upcoming event|Anniversary Celebration}} }}
   {{#ifexpr: {{#time:U}} > {{#time:U|01.12.{{CURRENTYEAR}} 00:00}} | {{#vardefine:Upcoming event|Saint-Valentin}} }}
  {{#ifexpr: {{#time:U}} > {{#time:U|22.04.{{CURRENTYEAR}} 19:00}} | {{#vardefine:Upcoming event|Dragon Festival}} }}
   {{#ifexpr: {{#time:U}} > {{#time:U|27.06.{{CURRENTYEAR}} 19:00}} | {{#vardefine:Upcoming event|Wintersday in July}} }}
  {{#ifexpr: {{#time:U}} > {{#time:U|24.07.{{CURRENTYEAR}} 19:00}} | {{#vardefine:Upcoming event|Wayfarer's Reverie}} }}
  {{#ifexpr: {{#time:U}} > {{#time:U|25.08.{{CURRENTYEAR}} 19:00}} | {{#vardefine:Upcoming event|Pirate Week}} }}
  {{#ifexpr: {{#time:U}} > {{#time:U|13.09.{{CURRENTYEAR}} 19:00}} | {{#vardefine:Upcoming event|Breast Cancer Awareness Month}} }}
  {{#ifexpr: {{#time:U}} > {{#time:U|01.10.{{CURRENTYEAR}} 07:01}} | {{#vardefine:Upcoming event|Halloween}} }}
   {{#ifexpr: {{#time:U}} > {{#time:U|18.10.{{CURRENTYEAR}} 19:00}} | {{#vardefine:Upcoming event|Special Treats Week}} }}
  {{#ifexpr: {{#time:U}} > {{#time:U|21.11.{{CURRENTYEAR}} 20:00}} | {{#vardefine:Upcoming event|Noël}} }}
   {{#ifexpr: {{#time:U}} > {{#time:U|19.12.{{CURRENTYEAR}} 20:00}} | {{#vardefine:Upcoming event|Canthan New Year}} }}
   {{#vardefine:Upcoming event 2|{{Next Event|{{#var:Upcoming event}}}}}}
   {{#vardefine:Upcoming event 2|{{Next Event|{{#var:Upcoming event}}}}}}
   {{#vardefine:Upcoming event 3|{{Next Event|{{#var:Upcoming event 2}}}}}}
   {{#vardefine:Upcoming event 3|{{Next Event|{{#var:Upcoming event 2}}}}}}
}}</includeonly>
}}</includeonly>

Dernière version du 11 novembre 2023 à 23:44

This is a template that is used by {{Next Event}} to display the next three events for quick access.

Usage: {{Event definitions}} Outputs the following variables:

  1. {{#var:Upcoming event}} -> Noël
  2. {{#var:Upcoming event 2}} -> Saint-Valentin
  3. {{#var:Upcoming event 3}} -> Arcade