Template:VersionRevision: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 30: Line 30:
|5.0@=17728
|5.0@=17728
|#default=
|#default=
{{#if:{{#regex:{{{1}}}|/^[0-9]\.[0-9]\.?[0-9]?\-(rc-)?[0-9]+.*$/}}<!--found a new-format git release-->
{{#if:{{#regex:{{{1}}}|/^[vV]?[0-9]\.[0-9]\.?[0-9]?\-(rc-)?[0-9]+.*$/}}<!--found a new-format git release-->
|{{#expr:<!--basically, we're doing... (rev value of the base revision) + (build number)-->
|{{#expr:<!--basically, we're doing... (rev value of the base revision) + (build number)-->
{{#switch:{{#regex:{{{1}}}@|/^[0-9]\.[0-9]\.?[0-9]?@/}}<!--switching on the first part of the rev (3.0, 4.0, etc)-->
{{#switch:{{#regex:{{{1}}}|/^[vV]?[0-9]\.[0-9]\.?[0-9]?/}}@<!--switching on the first part of the rev (3.0, 4.0, etc)-->
|2.0@=5384
|2.0@=5384
|3.0@=7615
|3.0@=7615