Difference between revisions of "Template:DYK queue/backlog"

From blackwiki
Jump to navigation Jump to search
imported>MSGJ
(use 5)
imported>MSGJ
(number of empty should no longer yield an error in any case)
Line 1: Line 1:
{{#ifexpr: {{#iferror: {{DYK queue/number of empty}} | 0 | {{DYK queue/number of empty}} }} >= 5
+
{{#ifexpr:{{DYK queue/number of empty}}>=5
| {{mbox
+
|{{mbox
 
   | type = style
 
   | type = style
 
   | style = text-align: center;
 
   | style = text-align: center;
 
   | text = This page has a '''[[:Category:Administrative backlog|backlog]]''' that requires the attention of one or more administrators.<br>''This notice will be hidden when there are fewer than five empty queues.''
 
   | text = This page has a '''[[:Category:Administrative backlog|backlog]]''' that requires the attention of one or more administrators.<br>''This notice will be hidden when there are fewer than five empty queues.''
  }}<includeonly>[[Category:Administrative backlog]]</includeonly>
+
}}<includeonly>[[Category:Administrative backlog]]</includeonly>
| {{cmbox
+
|{{cmbox
 
   | image = [[File:Edit-clear.svg|40x40px|link=|alt=]]
 
   | image = [[File:Edit-clear.svg|40x40px|link=|alt=]]
 
   | textstyle = text-align: center;
 
   | textstyle = text-align: center;
 
   | text = If there are five or more empty queues, this page will report a [[:Category:Administrative backlog|backlog]]. <small>({{purge|recount}})</small>
 
   | text = If there are five or more empty queues, this page will report a [[:Category:Administrative backlog|backlog]]. <small>({{purge|recount}})</small>
  }}
+
}}
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 15:51, 7 June 2020

50px Template documentation[view] [edit] [history] [purge]

Usage

This template triggers a backlog notice on Template:Did you know/Queue whenever the number of empty DYK queues reaches 4 or higher.

It uses {{DYK queue/number of empty}} to calculate the number of empty queues, which is currently 7.