Changes

Jump to navigation Jump to search
ce
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
==Usage==
Given a month and year, returns nothing if it is present or past, <code>1</code> if it is future

* {{#invoke:DemoTemplate|Is future month|month={{CURRENTMONTHNAME}}|year={{CURRENTYEAR}}}}
* {{#ifeq:{{CURRENTMONTH}}|12
| {{#invoke:DemoTemplate|Is future month|month=January|year={{#expr:{{CURRENTYEAR}}+1}}}}
| {{#invoke:DemoTemplate|Is future month|month={{#time:F|now + 1 month}}|year={{CURRENTYEAR}}}}
}}

==TemplateData==
{{TemplateData header}}

<templatedata>
{
"params": {
"year": {
"example": "2010",
"type": "number",
"required": true
},
"month": {
"example": "April",
"type": "string",
"required": true
}
},
"description": "Returns \"1\" if the month and year given are in the future, blank otherwise."
}
</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>
Anonymous user

Navigation menu