Difference between revisions of "Template:NewWorkCount2"

From ChoralWiki
Jump to navigation Jump to search
Line 1: Line 1:
{{#expr:{{#dpl:category=Sheet music|namespace=|mode=userformat|resultsheader=%TOTALPAGES%}} - {{#dpl:
+
{{#expr:{{#dpl:category=Sheet music|namespace=|mode=userformat|resultsheader=%TOTALPAGES%|noresultsheader=0|allowcachedresults=true}} - {{#dpl:
 
|notcategorymatch={{{1|{{CURRENTYEAR}}}}}{{#ifexpr:{{{2|}}}|-{{{2}}}}}{{#ifexpr:{{{3|}}}|-{{{3}}}}}%
 
|notcategorymatch={{{1|{{CURRENTYEAR}}}}}{{#ifexpr:{{{2|}}}|-{{{2}}}}}{{#ifexpr:{{{3|}}}|-{{{3}}}}}%
 
|category=Sheet music
 
|category=Sheet music

Revision as of 15:45, 1 June 2020

3496


UsageExamples

{{NewWorkCount2}}

gives a count of the number of current score pages (3496) created in the current year (2021).

{{NewWorkCount2|2007}}

gives a count of the number of current score pages (912) created in 2007.

{{NewWorkCount2|2008|10}}

gives a count of the number of current score pages (74) created in October of 2008.

{{NewWorkCount2|2007|09|11}}

gives a count of the number of current score pages (97) created on September 11, 2007.

END OLD CODE