This template is protected from editing.

Difference between revisions of "Template:Is event"

From Team Fortress Wiki
Jump to: navigation, search
m (fix default value)
m (+ TF Birthday)
Line 4: Line 4:
 
  | 10 = Scream Fortress
 
  | 10 = Scream Fortress
 
  | 11 = {{#ifeq: {{#expr: {{CURRENTDAY2}} <= 07 }} | 1 | Scream Fortress | None }}
 
  | 11 = {{#ifeq: {{#expr: {{CURRENTDAY2}} <= 07 }} | 1 | Scream Fortress | None }}
 +
| 08 = {{#expr: {{CURRENTDAY2}} >= 23 and {{CURRENTDAY2}} <= 25 }} | 1 | TF Birthday | None }}
 
  | #default = None
 
  | #default = None
 
}}
 
}}
 
</includeonly><noinclude>{{Doc begin}}
 
</includeonly><noinclude>{{Doc begin}}
 
== Usage ==
 
== Usage ==
This template returns if the current month matches an in-game event (Smissmass or Halloween):
+
This template returns if the current month matches an in-game event (Smissmas or Halloween):
  
 
:<nowiki>{{is event}}</nowiki>  
 
:<nowiki>{{is event}}</nowiki>  
Line 15: Line 16:
 
* <nowiki>{{is event}}</nowiki> (from Oct 01 to Nov 07) returns '''Scream Fortress'''
 
* <nowiki>{{is event}}</nowiki> (from Oct 01 to Nov 07) returns '''Scream Fortress'''
 
* <nowiki>{{is event}}</nowiki> (from Dec 01 to Jan 07) returns '''Smissmas'''
 
* <nowiki>{{is event}}</nowiki> (from Dec 01 to Jan 07) returns '''Smissmas'''
 +
* <nowiki>{{is event}}</nowiki> (from Aug 23 to Aug 25) returns '''TF Birthday'''
 
* <nowiki>{{is event}}</nowiki> currently returns '''{{is event}}'''
 
* <nowiki>{{is event}}</nowiki> currently returns '''{{is event}}'''
 
* <nowiki>{{is event}}</nowiki> defaults to '''None'''  
 
* <nowiki>{{is event}}</nowiki> defaults to '''None'''  
 
</noinclude>
 
</noinclude>

Revision as of 22:35, 18 September 2021

Documentation for Is event

Usage

This template returns if the current month matches an in-game event (Smissmas or Halloween):

{{is event}}

Examples:

  • {{is event}} (from Oct 01 to Nov 07) returns Scream Fortress
  • {{is event}} (from Dec 01 to Jan 07) returns Smissmas
  • {{is event}} (from Aug 23 to Aug 25) returns TF Birthday
  • {{is event}} currently returns None

  • {{is event}} defaults to None