Template:Is future month/doc: Difference between revisions

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search
m 1 revision imported
imported>Buidhe
cfd closed as merge
 
Line 32: Line 32:
<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Boolean, register, and condition testing templates]]
[[Category:If-then-else templates]]
[[Category:Date-computing templates based on current time]]
[[Category:Date-computing templates based on current time]]
}}</includeonly>
}}</includeonly>

Latest revision as of 21:13, 30 January 2022

Usage

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

  • {{Is future month|year=2025|month=December}}
  • {{Is future month|year=2026|month=January}} → 1

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Is future month in articles based on its 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