« 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 |
||
Ligne 9 : | Ligne 9 : | ||
[[Category:Date and time templates]]</noinclude><includeonly>{{#if: | [[Category:Date and time templates]]</noinclude><includeonly>{{#if: | ||
{{#ifexpr: {{#time:U}} >= {{#time:U|01.10.{{CURRENTYEAR}} 07:01}} | {{#vardefine:Upcoming event|Halloween}} }} | {{#ifexpr: {{#time:U}} >= {{#time:U|01.10.{{CURRENTYEAR}} 07:01}} | {{#vardefine:Upcoming event|Halloween}} }} | ||
{{#ifexpr: {{#time:U}} > {{#time:U|21.11.{{CURRENTYEAR}} 20:00}} | {{#vardefine:Upcoming event| | {{#ifexpr: {{#time:U}} > {{#time:U|21.11.{{CURRENTYEAR}} 20:00}} | {{#vardefine:Upcoming event|Noël}} }} | ||
{{#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 à 20:37
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}}
-> Halloween{{#var:Upcoming event 2}}
-> Noël{{#var:Upcoming event 3}}
-> Saint-Valentin