Difference between revisions of "Template:DYK queue/next empty"
Jump to navigation
Jump to search
imported>MSGJ (documented at Template:DYK queue/doc) |
imported>MSGJ (output zero if all queues are full) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{#expr: ({{Did you know/Queue/Next}} - {{ | + | {{#ifexpr:{{DYK queue/number of empty}}=0 |
| + | |0 | ||
| + | |{{#expr:({{Did you know/Queue/Next}}-{{DYK queue/number of empty}}+6) mod 7 + 1}} | ||
| + | }}<noinclude> | ||
| + | {{documentation}} | ||
| + | </noinclude> | ||
Latest revision as of 10:28, 12 June 2020
6
Usage
This template calculates the next empty queue, by using the queue next to be loaded (6) and the number of empty queues (7) and then performing some modulo arithmetic.
| The above documentation is transcluded from Template:DYK queue/next empty/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |