Difference between revisions of "Template:Is future month"
Jump to navigation
Jump to search
imported>Rich Farmbrough |
imported>Rich Farmbrough |
||
| Line 5: | Line 5: | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
| + | </noinclude> | ||
| + | |||
| + | <noinclude> | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "year": {}, | ||
| + | "month": {} | ||
| + | }, | ||
| + | "paramOrder": [ | ||
| + | "month", | ||
| + | "year" | ||
| + | ], | ||
| + | "description": "returns \"1\" if the month and year given are in the future, blank otherwise." | ||
| + | } | ||
| + | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 13:19, 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=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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Year | year | no description
| Number | required |
| Month | month | no description
| String | required |
| The above documentation is transcluded from Template:Is future month/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
returns "1" if the month and year given are in the future, blank otherwise.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Month | month | no description | Unknown | optional |
| Year | year | no description | Unknown | optional |