Template:Is future month

From Safer nicotine wiki
Template documentation[view] [edit] [history] [purge]

Usage

Given a month and year, returns nothing if it is present or past, 1 if it is future

  • {{Is future month|year=2021|month=October}}
  • {{Is future month|year=2021|month=November}} → 1

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Is future month

Returns "1" if the month and year given are in the future, blank otherwise.

Template parameters

ParameterDescriptionTypeStatus
yearyear

no description

Example
2010
Numberrequired
monthmonth

no description

Example
April
Stringrequired
Cookies help us deliver our services. By using our services, you agree to our use of cookies.