Difference between revisions of "Template:Is future month"

From blackwiki
Jump to navigation Jump to search
imported>Rich Farmbrough
imported>Rich Farmbrough
Line 12: Line 12:
 
"params": {
 
"params": {
 
"year": {
 
"year": {
 +
"example": "2010",
 
"type": "number",
 
"type": "number",
 
"required": true
 
"required": true

Revision as of 13:22, 27 June 2015

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=2025|month=December}}


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

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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


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

Template parameters

ParameterDescriptionTypeStatus
Monthmonth

no description

Example
April
Stringrequired
Yearyear

no description

Example
2010
Numberrequired