« 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 |
||
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|07.02.{{CURRENTYEAR}} 19:00}} | {{#vardefine:Upcoming event|Arcade}} }} | |||
{{#ifexpr: {{#time:U}} > {{#time:U|01.05.{{CURRENTYEAR}} 19: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> |
Version du 11 novembre 2023 à 23:38
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