Template:VersionRevision: Difference between revisions
Jump to navigation
Jump to search
m (Added 4.0.2. Just mimicked how 4.0.1 was entered.) |
(Made changes suggested in the Discussion page. It's a simple numbering change so it shouldn't break anything, but everyone please check!) |
||
Line 9: | Line 9: | ||
|4.0.2|v4.0.2=4.0.2 | |4.0.2|v4.0.2=4.0.2 | ||
|5.0|v5.0=5.0 | |5.0|v5.0=5.0 | ||
| | |5384|r5384=2.0 | ||
| | |7615|r7615=3.0 | ||
| | |8551|r8551=3.5 | ||
| | |11001|r11001=4.0 | ||
|20000|r20000=5.0<!--Placeholder for unreleased 5.0--> | |20000|r20000=5.0<!--Placeholder for unreleased 5.0--> | ||
<!--switch cannot handle regex, so anything more complicated than straight match goes into default--> | <!--switch cannot handle regex, so anything more complicated than straight match goes into default--> | ||
Line 25: | Line 25: | ||
}} | }} | ||
|link|#default={{#switch:{{{1}}}<!--link format, mostly for calculations and other templates use--> | |link|#default={{#switch:{{{1}}}<!--link format, mostly for calculations and other templates use--> | ||
|2.0|v2.0= | |2.0|v2.0=5384 | ||
|3.0|v3.0= | |3.0|v3.0=7615<!--936 3.0 era releases--> | ||
|3.5|v3.5= | |3.5|v3.5=8551<!--2450 3.5 era releases--> | ||
|4.0|v4.0|4.0.1|v4.0.1|4.0.2|v4.0.2= | |4.0|v4.0|4.0.1|v4.0.1|4.0.2|v4.0.2=11001 | ||
|5.0|v5.0=20000<!--Placeholder for unreleased 5.0--> | |5.0|v5.0=20000<!--Placeholder for unreleased 5.0--> | ||
<!--switch cannot handle regex, so anything more complicated than straight match goes into default--> | <!--switch cannot handle regex, so anything more complicated than straight match goes into default--> | ||
Line 35: | Line 35: | ||
|{{#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}}}|/^[0-9]\.[0-9]\.?[0-9]?/}}<!--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.1|4.0.2= | |4.0|4.0.1|4.0.2=11001 | ||
|5.0=20000 | |5.0=20000 | ||
}} | }} | ||
Line 44: | Line 44: | ||
|{{#if:{{#regex:{{{1}}}|/^[r,R][0-9]{1,4}/}} | |{{#if:{{#regex:{{{1}}}|/^[r,R][0-9]{1,4}/}} | ||
|{{#switch:{{#regex:{{{1}}}|/^[r,R]/|}} | |{{#switch:{{#regex:{{{1}}}|/^[r,R]/|}} | ||
|2.0|v2.0= | |2.0|v2.0=5354 | ||
|3.0|v3.0= | |3.0|v3.0=7615 | ||
|3.5|v3.5= | |3.5|v3.5=8551 | ||
|4.0|v4.0|4.0.1|v4.0.1= | |4.0|v4.0|4.0.1|v4.0.1=11001 | ||
|5.0|v5.0=20000 | |5.0|v5.0=20000 | ||
|#default={{#regex:{{{1}}}|/^[r,R]/|}}}} | |#default={{#regex:{{{1}}}|/^[r,R]/|}}}} |