Difference between revisions of "Template:BacklogCount"

From blackwiki
Jump to navigation Jump to search
imported>Drilnoth
(Test)
imported>Jonesey95
(fix invalid input to formatnum causing articles to appear in Category:Pages with non-numeric formatnum arguments)
 
(39 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{#ifeq:{{{dated}}}|yes|{{#expr:
+
<includeonly><!--
{{Progress line 4|{{{1}}}|0}} +
+
-->{{#ifexpr: {{formatnum:{{{1|}}}|R}} > {{formatnum:{{{2|}}}|R}}<!--
{{Progress line 4|{{{1}}}|1}} +
+
  -->|<li style="font-size: smaller;">{{{3|}}}: {{#if:{{{4|}}}<!--
{{Progress line 4|{{{1}}}|2}} +
+
                                              -->|[//tools.wmflabs.org/massviews/?platform=all-access&agent=user&source=category&target=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCategory%3A{{replace|{{{4}}}| |_}}&range=this-month&subjectpage=1&subcategories=1&sort=views&direction=1&view=list {{formatnum:{{replace|{{{1|}}}|,|}}}}]<!--
{{Progress line 4|{{{1}}}|3}} +
+
                                              -->|{{formatnum:{{replace|{{{1|}}}|,|}}}}}}</li><!--
{{Progress line 4|{{{1}}}|4}} +
+
  -->| <!-- empty -->}}</includeonly><noinclude>
{{Progress line 4|{{{1}}}|5}} +
+
{{documentation|content=
{{Progress line 4|{{{1}}}|6}} +
+
Generates each entry in {{tl|backlog status}}.
{{Progress line 4|{{{1}}}|7}} +
+
 
{{Progress line 4|{{{1}}}|8}} +
+
:1 = Number in backlog
{{Progress line 4|{{{1}}}|9}} +
+
:2 = Number required to display (if there are less items in the backlog than this number, this template won't display anything)
{{Progress line 4|{{{1}}}|10}} +
+
:3 = Link to display
{{Progress line 4|{{{1}}}|11}} +
+
:4 = Name of category to use to link number in backlog to [https://tools.wmflabs.org/massviews/ Massviews] (optional)
{{Progress line 4|{{{1}}}|12}} +
+
 
{{Progress line 4|{{{1}}}|13}} +
+
}}
{{Progress line 4|{{{1}}}|14}} +
+
</noinclude>
{{Progress line 4|{{{1}}}|15}} +
 
{{Progress line 4|{{{1}}}|16}} +
 
{{Progress line 4|{{{1}}}|17}} +
 
{{Progress line 4|{{{1}}}|18}} +
 
{{Progress line 4|{{{1}}}|19}} +
 
{{Progress line 4|{{{1}}}|20}} +
 
{{Progress line 4|{{{1}}}|21}} +
 
{{Progress line 4|{{{1}}}|22}} +
 
{{Progress line 4|{{{1}}}|23}} +
 
{{Progress line 4|{{{1}}}|24}} +
 
{{Progress line 4|{{{1}}}|25}} +
 
{{Progress line 4|{{{1}}}|26}} +
 
{{Progress line 4|{{{1}}}|27}} +
 
{{Progress line 4|{{{1}}}|28}} +
 
{{Progress line 4|{{{1}}}|29}} +
 
{{Progress line 4|{{{1}}}|30}} +
 
{{Progress line 4|{{{1}}}|31}} +
 
{{Progress line 4|{{{1}}}|32}} +
 
{{Progress line 4|{{{1}}}|33}} +
 
{{Progress line 4|{{{1}}}|34}} +
 
{{Progress line 4|{{{1}}}|35}} +
 
{{Progress line 4|{{{1}}}|36}} +
 
{{Progress line 4|{{{1}}}|37}} +
 
{{Progress line 4|{{{1}}}|38}} +
 
{{Progress line 4|{{{1}}}|39}} +
 
{{Progress line 4|{{{1}}}|40}} +
 
{{Progress line 4|{{{1}}}|41}} +
 
{{Progress line 4|{{{1}}}|42}} +
 
{{Progress line 4|{{{1}}}|43}} +
 
{{Progress line 4|{{{1}}}|44}} +
 
{{Progress line 4|{{{1}}}|45}} +
 
{{Progress line 4|{{{1}}}|46}} +
 
{{Progress line 4|{{{1}}}|47}} +
 
{{Progress line 4|{{{1}}}|48}}}}|{{PAGESINCATEGORY:{{{1|}}}}}}}
 

Latest revision as of 16:45, 29 September 2020

50px Template documentation

Generates each entry in {{backlog status}}.

1 = Number in backlog
2 = Number required to display (if there are less items in the backlog than this number, this template won't display anything)
3 = Link to display
4 = Name of category to use to link number in backlog to Massviews (optional)