Difference between revisions of "Template:Is future month/doc"

From blackwiki
Jump to navigation Jump to search
imported>Izkala
(Td)
imported>Izkala
(ce)
Line 10: Line 10:
 
}}
 
}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
==TemplateData==
<!-- Categories below this line, please; interwikis at Wikidata -->
+
{{TemplateData header}}
[[Category:Boolean, register, and condition testing templates]]
 
[[Category:Date-computing templates based on current time]]
 
}}</includeonly>
 
  
 
<templatedata>
 
<templatedata>
Line 33: Line 30:
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
[[Category:Boolean, register, and condition testing templates]]
 +
[[Category:Date-computing templates based on current time]]
 +
}}</includeonly>

Revision as of 13:49, 27 June 2015

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=November}}
  • {{Is future month|month=December|year=2025}} gives

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