454
edits
(Standardisation of the example documentation.) |
m (added "floor" operator to round down 2016.3.33333333 to 2016.3 and 2016.4.333333333 to 2016.4) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{1|}}} | <includeonly>{{#switch: {{{1|}}} | ||
<!-- if/when this works correctly, these should probably be moved to their own sub-templates? --> | <!-- if/when this works correctly, these should probably be moved to their own sub-templates? --> | ||
| cr = {{#ifexpr: {{CURRENTMONTH}} < 3 |{{#expr: {{CURRENTYEAR}} - 1}} | {{CURRENTYEAR}}}}.{{#expr: {{CURRENTMONTH}} div 3}} | | cr = {{#ifexpr: {{CURRENTMONTH}} < 3 |{{#expr: {{CURRENTYEAR}} - 1}} | {{CURRENTYEAR}}}}.{{#expr: floor ( {{CURRENTMONTH}} div 3)}} | ||
| crd = 17 September 2016 | | crd = 17 September 2016 | ||
<!-- note, this hasn't really been tested yet ... ---> | <!-- note, this hasn't really been tested yet ... ---> | ||
| nr = {{#ifeq: {{#expr: {{CURRENTMONTH}} div 3}} | 4 | {{#expr: {{CURRENTYEAR}} + 1}} | {{CURRENTYEAR}}}}.{{#expr:{{#expr: {{CURRENTMONTH}} div 3}} +1}} | | nr = {{#ifeq: {{#expr: {{CURRENTMONTH}} div 3}} | 4 | {{#expr: {{CURRENTYEAR}} + 1}} | {{CURRENTYEAR}}}}.{{#expr:{{#expr: floor ( {{CURRENTMONTH}} div 3)}} +1}} | ||
| nrd = <daysuntil>17 November 2016</daysuntil> | | nrd = <daysuntil>17 November 2016</daysuntil> | ||
| #default = {{error|No argument given|current release}} | | #default = {{error|No argument given|current release}} |
edits