Template:Date to Version/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation/Header}} | {{Documentation/Header}} | ||
Template that returns the [[Version]] | {{Lua|Version Dates}} | ||
Template that returns the current [[Version]] on a particular date. | |||
==Syntax== | ==Syntax== | ||
| Line 6: | Line 7: | ||
==Examples== | ==Examples== | ||
{{T|Date to Version|_Y_=1}}<br> | {{T|Date to Version|2025-08-30|_Y_=1}}<br /> | ||
{{T|Date to Version|2025 | {{T|Date to Version|September 17, 2025|_Y_=1}}<br /> | ||
{{T|Date to Version|2026 | {{T|Date to Version|January 25 2026|_Y_=1}}<br /> | ||
==Template Data== | ==Template Data== | ||
<templatedata> | |||
{ | { | ||
"params": { | "params": { | ||
| Line 23: | Line 18: | ||
"description": "Date to input.", | "description": "Date to input.", | ||
"type": "date", | "type": "date", | ||
"required": true | "required": true | ||
} | } | ||
| Line 30: | Line 24: | ||
"1" | "1" | ||
], | ], | ||
"format": "inline" | "format": "inline" | ||
} | } | ||
</templatedata> | </templatedata> | ||
Latest revision as of 02:43, 17 September 2025
This is the documentation page for Date to Version. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
This template uses Module:Version Dates, a script written in Lua.
Template that returns the current Version on a particular date.
Syntax
{{Date to Version|date}}
Examples
{{Date to Version|2025-08-30}} yields: 0.0
{{Date to Version|September 17, 2025}} yields: 0.3.0
{{Date to Version|January 25 2026}} yields: 0.3.0
Template Data
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Date to input. | Date | required |