Template talk:VersionRevision
Appearance
Fix for New Release Numbers
The current handling of these new release numbers (i.e. 2503-17) where we simply purge the hyphen to convert them to numbers results in early monthly releases (i.e. 1-9, and likely most prior to release 100) not appropriately sorting before the final 5.0 release (i.e. release 42320).
We need to increment those by 42321 to ensure they are sorted beyond the 5.0 releases. This logic replacing the default output should in theory account for such, but seems to cause some of the 5.0 releases to be improperly sorted somehow, that still needs to be addressed.
{{#if:\{\{#regex:{{{1}}}@|/^[0-9]{4}/|}}
|{{#expr:42321+{{#rreplace:{{{1}}}|/\D/|}}}}
|{{#rreplace:{{{1}}}|/\D/|}}
Refer [1]
Kolano (talk) 09:41, 15 December 2025 (CET)
- This template has been broken for a while, the last serious attempt I made were in July of 2024 and it ended partially reverted. The edit from April 2025 was a simple bandaid fix to prevent game pages from exploding due to the dev versions derived from the hotfix release we did under the new naming scheme (it used 2506a-xxx format -- technically this format won't be used anymore for future dev versions that happen to be derived from hotfix, but this template will still have to account for that at some point) and I hadn't touched it since.
- I think it might benefit from being rewritten from scratch, but no ETA of when/if I'll be able to do that anytime soon, so I left it as is... mbc07 (talk) 04:03, 16 December 2025 (CET)
- So, I've finally rewritten this template, leveraging the variables extension. It should work now with all revision styles (both old and new) and also fixes some issues from the old template (e.g. not handling 3.0-1 to 3.0-45 releases correctly). I took time to leave various comments in the template source to (hopefully) make it easier to understand too. - mbc07 (talk) 08:09, 11 April 2026 (CEST)