Difference between revisions of "User:Mikado282/Days2SF"
(Could be made main space translation switching template later if other want to use it.) |
(fix return) |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Template doc}}</noinclude> | + | <noinclude>{{Template doc}}</noinclude>{{#ifeq: |
− | {{#ifeq: | ||
{{ #expr: {{#time: z |{{CURRENTYEAR}}-10-01 }} - {{#time: z |now}} > {{#expr: 0 }} }} | {{#expr: 1}} | {{ #expr: {{#time: z |{{CURRENTYEAR}}-10-01 }} - {{#time: z |now}} > {{#expr: 0 }} }} | {{#expr: 1}} | ||
|{{#expr: {{#time: z |{{CURRENTYEAR}}-10-01 }} - {{#time: z |now}} }} days until [[Halloween event|SF {{CURRENTYEAR}}]] | |{{#expr: {{#time: z |{{CURRENTYEAR}}-10-01 }} - {{#time: z |now}} }} days until [[Halloween event|SF {{CURRENTYEAR}}]] | ||
− | |{{#expr: {{#time: z |{{CURRENTYEAR}}-12-31 }} - {{#time: z |now}} | + | |{{#expr: {{#time: z |{{CURRENTYEAR}}-12-31 }} - {{#time: z |now}} + {{#time: z |{{#expr: {{CURRENTYEAR}}+1 }}-10-01 }} }} days until [[Halloween event|SF {{#expr: {{CURRENTYEAR}}+1 }}]] |
− | |||
}} | }} |
Revision as of 02:46, 21 September 2023
Days to next SF event, unless event has started, then days to next SF event in the next year.
- Expect this template to be masked while the event is active.
148 days until SF 2024
- Test event has started
512 days until SF 2025
148 days until SF 2024