6,576
edits
No edit summary |
mNo edit summary |
||
(16 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1}}}| | <includeonly>{{#if:{{{1}}}| | ||
{{#switch:{{{use|}}} | {{#switch:{{{use|}}} | ||
|title={{#switch:{{{1}}}<!--pretty title format--> | |title={{#switch:{{#regex:{{{1}}}@|/^[rRvV]/|}}<!--pretty title format--> | ||
|2.0 | |2.0@=2.0 | ||
|3.0 | |3.0@=3.0 | ||
|3.5 | |3.5@=3.5 | ||
|4.0 | |4.0@=4.0 | ||
|4.0.1| | |4.0.1@=4.0.1 | ||
|5.0 | |4.0.2@=4.0.2 | ||
| | |5.0@=5.0 | ||
| | |5384@=2.0 | ||
| | |7615@=3.0 | ||
| | |8551@=3.5 | ||
| | |11001@=4.0 | ||
|17728@=5.0-rc | |||
|20509@=5.0 | |||
|#default= | |#default= | ||
{{#if:{{#regex:{{{1}}}|/^[0-9]\.[0-9]\.?[0-9]?\-[0-9]+$/}}<!--found a new-format git release--> | {{#if:{{#regex:{{{1}}}|/^[0-9]\.[0-9]\.?[0-9]?\-(rc-)?[0-9]+.*$/}}<!--found a new-format git release--> | ||
|{{#regex:{{{1}}}|/^[0-9]\.[0-9]\.?[0-9]?\-[0-9]+$/}}<!--input is git; output in the format we received it in--> | |{{#regex:{{{1}}}|/^[0-9]\.[0-9]\.?[0-9]?\-(rc-)?[0-9]+.*$/}}<!--input is git; output in the format we received it in--> | ||
|{{#if:{{#regex:{{{1}}}|/^r[0-9]{1,4}$/}}<!--input is not git; detect whether we have a leading 'r'--> | |{{#if:{{#regex:{{{1}}}|/^r[0-9]{1,4}$/}}<!--input is not git; detect whether we have a leading 'r'--> | ||
|{{{1}}}<!--we do, output as-is--> | |{{{1}}}<!--we do, output as-is--> | ||
Line 23: | Line 24: | ||
}} | }} | ||
}} | }} | ||
|link|#default={{#switch:{{{1}}}<!--link format, mostly for calculations and other templates use--> | |link|#default={{#switch:{{#regex:{{{1}}}@|/^[vV]/|}}<!--link format, mostly for calculations and other templates use--> | ||
|2.0 | |2.0@=5384 | ||
|3.0 | |3.0@=7615 | ||
|3.5 | |3.5@=8551 | ||
|4.0 | |4.0@|4.0.1@|4.0.2@=11001 | ||
|4.0.1| | |5.0@=20509 | ||
|5.0 | |||
|#default= | |#default= | ||
{{#if:{{#regex:{{{1}}}|/^[0-9]\.[0-9]\.?[0-9]?\-[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]?(-rc)?/}}@<!--switching on the first part of the rev (3.0, 4.0, etc)--> | ||
|2.0= | |2.0@=5384 | ||
|3.0= | |3.0@=7615 | ||
|3.5= | |3.5@=8551 | ||
|4.0 | |4.0@|4.0.1@|4.0.2@=11001 | ||
|4.0.1| | |5.0-rc@=17728 | ||
|5.0= | |5.0@=20509 | ||
}} | }} | ||
+{{#regex:{{{1}}}|/^[0-9]\.[0-9]\.?[0-9]?\-([0-9]+$ | +{{#regex:{{{1}}}|/^[0-9]\.[0-9]\.?[0-9]?\-(rc-)?([0-9]+).*$/|$2}}}} | ||
|{{#if:{{#regex:{{{1}}}|/^[ | |{{#if:{{#regex:{{{1}}}|/^[vV][0-9]{1,4}/}} | ||
|{{#switch:{{#regex:{{{1}}}|/^[ | |{{#switch:{{#regex:{{{1}}}@|/^[vV]/|}} | ||
|2.0 | |2.0@=5354 | ||
|3.0 | |3.0@=7615 | ||
|3.5 | |3.5@=8551 | ||
|4.0 | |4.0@|4.0.1@|4.0.2@=11001 | ||
|4.0.1| | |5.0-rc-@=17728 | ||
|5.0 | |5.0@=20509 | ||
|#default={{#regex:{{{1}}}|/^[ | |#default={{#regex:{{{1}}}|/^[rRvV]/|}}}} | ||
|{{{1}}} | |{{{1}}} | ||
}} | }} | ||
}} | }} | ||
}} | }} | ||
}}|<revision missing>[[Category:Pages with VersionRevision template errors]]}}</includeonly><noinclude> | }}|<revision missing>{{#if:{{#var:isdoc}}||[[Category:Pages with VersionRevision template errors]]}}}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
edits