Modèle:Special events lookup

De Wiki - La Calv
Révision datée du 11 novembre 2023 à 18:16 par Sorrow (discussion | contributions) (Page créée avec « <includeonly>{{#if: <!-- time switches based on event date and time inputs from Template:Special events --> <!-- Check if the time is greater than the start date, and before the end date. --> {{#ifexpr: {{#time:U}} < {{#time:U| {{{Noël end}}} }} | {{#vardefine:Special event|Noël}} }} {{#ifexpr: {{#time:U}} > {{#time:U| {{{Halloween start}}} }}... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

This template takes date inputs from {{Special events calendar}} and calculates which event is active.

Usually, the only output is a variable called {{#var:Special event}}, which it shows. See Template:Special events calendar for a template that can be used.

Usage

{{Special events lookup
 | Halloween start                     = 01.10.2023 19:00
 | Halloween end                       = 01.11.2023 08:01
 | Noël start                          = 01.12.2023 20:00
 | Noël end                            = 01.01.2023 20:00
}}