Template:NewWorkCount2: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#expr:{{NewScoreCount|{{{1|{{CURRENTYEAR}}}}}{{#ifexpr:{{{2|}}}|-{{{2}}}}}{{#ifexpr:{{{3|}}}|-{{{3}}}}}}} - {{#dpl: category = Sheet music
<includeonly>{{#expr:{{NewScoreCount|{{{1|{{CURRENTYEAR}}}}}{{#ifexpr:{{{2|}}}|-{{{2}}}}}{{#ifexpr:{{{3|}}}|-{{{3}}}}}}} - {{#dpl: category = Sheet music
|namespace=  
|namespace=  
|mode=userformat
|mode=userformat
Line 7: Line 7:
|resultsheader=%TOTALPAGES%
|resultsheader=%TOTALPAGES%
|noresultsheader = 0
|noresultsheader = 0
|allowcachedresults = true}}}}<noinclude>
|allowcachedresults = true}}}}</includeonly><noinclude>
<!--{{prot-temp}}-->
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]


Line 28: Line 27:
}}
}}


<!--OLD CODE (2009)
 
{{#expr: {{NewScoreCount| {{{1|{{CURRENTYEAR}}}}}{{#ifexpr:{{{2|}}}|-{{{2}}}}}{{#ifexpr:{{{3|}}}|-{{{3}}}}}}} - {{#dpl:
|categorymatch={{{1|{{CURRENTYEAR}}}}}{{#ifexpr:{{{2|}}}|-{{{2}}}}}{{#ifexpr:{{{3|}}}|-{{{3}}}}}%
|category=Sheet music
|namespace=
|lastrevisionbefore={{#time: Ymd|{{{1|{{CURRENTYEAR}}}}}-{{{2|01}}}-{{{3|01}}}- 1 Day}}
|distinct=true
|mode=userformat
|resultsheader=%TOTALPAGES%
|noresultsheader=0
|allowcachedresults=true
}}}}
END OLD CODE-->
</noinclude>
</noinclude>

Revision as of 17:48, 4 June 2020


UsageExamples

{{NewWorkCount2}}

gives a count of the number of current score pages (1382) created in the current year (2024).

{{NewWorkCount2|2007}}

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

{{NewWorkCount2|2008|10}}

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

{{NewWorkCount2|2007|09|11}}

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