Difference between revisions of "Template:Patch2date"
From Captain of Industry Wiki
Thadius856 (talk | contribs) (Creation) |
Thadius856 (talk | contribs) (derp, i converted {{{1}}} to lowercase then compared it to proper case. fixed. adding warning to myself and future editors.) |
||
Line 2: | Line 2: | ||
-->{{#vardefine: patch_date | | -->{{#vardefine: patch_date | | ||
{{#switch: {{lc:{{{1}}}}} | {{#switch: {{lc:{{{1}}}}} | ||
| | <!-- NOTE: All entries below must be fully lowercase or this template will break --> | ||
| | | beta 0.3.10 = 2022-01-15 | ||
| beta 0.3.9 = 2022-01-13 | |||
<!-- insert more dates here later --> | <!-- insert more dates here later --> | ||
| | | alpha 0.2.6a | ||
| | | alpha 0.2.6 = 2021-09-27 | ||
<!-- insert more dates here later --> | <!-- insert more dates here later --> | ||
}} | }} | ||
Line 13: | Line 14: | ||
{{documentation}} | {{documentation}} | ||
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> | <!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> | ||
Revision as of 13:07, 16 January 2022
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
- Description
- This template accepts one unnamed parameter (a patch number). It returns the date that patch was published as variable
patch_date
.
- Dependencies
- To remain current, a manual update to this template after each update is released.
- Syntax
{{patch2date|version#}}
- Sample Output
- {{patch2date|Beta 0.3.10}} --> variable
patch_date
set to 2022-01-15 (not visible to site visitors) - {{patch2date|Alpha 0.2.6}} --> variable
patch_date
set to 2021-09-27 (not visible to site visitors)
The above text is transcluded from Template:Patch2date/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to Template:Patch2date/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to Template:Patch2date/doc. (View all subpages of this page.)