Difference between revisions of "Template:BacklogCount"

From blackwiki
Jump to navigation Jump to search
imported>Dispenser
m ({{documentation}} and links to dispenser.info.tm)
imported>Jonesey95
(fix invalid input to formatnum causing articles to appear in Category:Pages with non-numeric formatnum arguments)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
-->{{#ifexpr: {{formatnum:{{{1|}}}|R}} > {{formatnum:{{{2|}}}|R}}<!--
 
-->{{#ifexpr: {{formatnum:{{{1|}}}|R}} > {{formatnum:{{{2|}}}|R}}<!--
 
   -->|<li style="font-size: smaller;">{{{3|}}}: {{#if:{{{4|}}}<!--
 
   -->|<li style="font-size: smaller;">{{{3|}}}: {{#if:{{{4|}}}<!--
                                               -->|[//dispenser.info.tm/~dispenser/cgi-bin/categorder.py/Category:{{replace|{{{4}}}| |_}} {{formatnum:{{{1|}}}}}]<!--
+
                                               -->|[//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|}}}|,|}}}}]<!--
                                               -->|{{formatnum:{{{1|}}}}}}}</li><!--
+
                                               -->|{{formatnum:{{replace|{{{1|}}}|,|}}}}}}</li><!--
 
   -->| <!-- empty -->}}</includeonly><noinclude>
 
   -->| <!-- empty -->}}</includeonly><noinclude>
 
{{documentation|content=
 
{{documentation|content=
Line 11: Line 11:
 
:2 = Number required to display (if there are less items in the backlog than this number, this template won't display anything)
 
: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
 
:3 = Link to display
:4 = Name of category to use to link number in backlog to http://dispenser.info.tm/~dispenser/cgi-bin/categorder.py (optional)
+
:4 = Name of category to use to link number in backlog to [https://tools.wmflabs.org/massviews/ Massviews] (optional)
  
 
}}
 
}}
 
</noinclude>
 
</noinclude>

Latest revision as of 16:45, 29 September 2020

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)