Difference between revisions of "Template:Is future month/doc"
Jump to navigation
Jump to search
imported>Izkala (Lua magic!) |
imported>Izkala (Td) |
||
| Line 15: | Line 15: | ||
[[Category:Date-computing templates based on current time]] | [[Category:Date-computing templates based on current time]] | ||
}}</includeonly> | }}</includeonly> | ||
| + | |||
| + | <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> | ||
Revision as of 13:47, 27 June 2015
| This is a documentation subpage for Template:Is future month. It contains usage information, categories and other content that is not part of the original template page. |
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
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 |