« Modèle:Event definitions » : différence entre les versions
Aller à la navigation
Aller à la recherche
(Page créée avec « <noinclude>This is a template that is used by {{tl|Next Event}} to display the next three events for quick access. Usage: <code><nowiki>{{Event definitions}}</nowiki></code> {{Event definitions}} Outputs the following variables: #<code><nowiki>{{#var:Upcoming event}}</nowiki></code> -> {{#var:Upcoming event}} #<code><nowiki>{{#var:Upcoming event 2}}</nowiki></code> -> {{#var:Upcoming event 2}} #<code><nowiki>{{#var:Upcoming event 3}}</nowiki></code> -> {{#var:U... ») |
Aucun résumé des modifications |
||
(3 versions intermédiaires par le même utilisateur non affichées) | |||
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.10.{{CURRENTYEAR}} | {{#ifexpr: {{#time:U}} >= {{#time:U|01.01.{{CURRENTYEAR}} 00:00}} | {{#vardefine:Upcoming event|Saint-Valentin}} }} | ||
{{#ifexpr: {{#time:U}} > {{#time:U| | {{#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|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}} }} | |||
{{#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