« Modèle:Event definitions » : différence entre les versions
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 | {{#ifexpr: {{#time:U}} >= {{#time:U|01.01.{{CURRENTYEAR}} 00:00}} | {{#vardefine:Upcoming event|Saint-Valentin}} }} | ||
{{#ifexpr: {{#time:U}} > {{#time:U|16.02.{{CURRENTYEAR}} 22:30}} | {{#vardefine:Upcoming event|Arcade}} }} | |||
{{#ifexpr: {{#time:U}} > {{#time:U|05.06.{{CURRENTYEAR}} 00:00}} | {{#vardefine:Upcoming event|Halloween}} }} | |||
{{#ifexpr: {{#time:U}} > {{#time:U| | {{#ifexpr: {{#time:U}} > {{#time:U|03.10.{{CURRENTYEAR}} 00:00}} | {{#vardefine:Upcoming event|Noël}} }} | ||
{{#ifexpr: {{#time:U}} > {{#time:U|01.12.{{CURRENTYEAR}} 00:00}} | {{#vardefine:Upcoming event|Saint-Valentin}} }} | |||
{{#ifexpr: {{#time:U}} > {{#time:U| | |||
{{#ifexpr: {{#time:U}} > {{#time:U| | |||
{{#ifexpr: {{#time:U}} > {{#time:U| | |||
{{#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:
{{#var:Upcoming event}}
-> Noël{{#var:Upcoming event 2}}
-> Saint-Valentin{{#var:Upcoming event 3}}
-> Arcade