Difference between revisions of "User:Mikado282/Magic dates"

From Team Fortress Wiki
Jump to: navigation, search
(Created page with " {{#time:{{{date-format|F j, Y \a\t h:i:s A}}} | October 12, 2011 2:12:00 + 1 seconds - 1 days + 0 days + 1 seconds - 3 seconds {{{tz|}}} | {{SUBPAGENAME}} }} {{#time:{{{dat...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions Help:Extension:ParserFunctions]
 +
 +
*<nowiki>{{CURRENTDOY}}:</nowiki> {{#expr: {{#time: z |now }}  }}
 +
*Halloween Start:  {{#expr: {{#time: z |2023-10-01}} }}
 +
*Days until Halloween Event: {{#expr: {{#time: z |2023-10-01 }} - {{#time: z |now}} }}
 +
 +
*<nowiki>{{CURRENTDAY2}}:</nowiki> {{CURRENTDAY2}}
  
 
{{#time:{{{date-format|F j, Y \a\t h:i:s A}}}
 
{{#time:{{{date-format|F j, Y \a\t h:i:s A}}}
Line 10: Line 17:
 
| {{SUBPAGENAME}} }}
 
| {{SUBPAGENAME}} }}
  
{{#time:{{{date-format|F j, Y \a\t h:i:s A}}}
+
{{#switch: {{CURRENTMONTH1}}
| October 12, 2011 2:12:00
+
| 01 = {{#ifexpr: {{CURRENTDAY2}} = 3 | something | }}
- October 12, 2012 2:12:00
+
| 02 = {{#ifexpr: {{CURRENTDAY2}} = 4 | something else |}}
 
}}
 
}}
 +
  
 
[[Category:User Mikado282's Sandboxes]]
 
[[Category:User Mikado282's Sandboxes]]

Latest revision as of 21:52, 16 September 2023

Help:Extension:ParserFunctions

  • {{CURRENTDOY}}: 3
  • Halloween Start: 273
  • Days until Halloween Event: 270
  • {{CURRENTDAY2}}: 04

October 11, 2011 at 02:11:59 AM