Template:NewWorkCount2: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#expr:{{NewScoreCount|{{{1|{{CURRENTYEAR}}}}}{{#ifexpr:{{{2|}}}|-{{{2}}}}}{{#ifexpr:{{{3|}}}|-{{{3}}}}}}} - {{#dpl: category=Sheet music|namespace=  
{{#expr:{{NewScoreCount|{{{1|{{CURRENTYEAR}}}}}{{#ifexpr:{{{2|}}}|-{{{2}}}}}{{#ifexpr:{{{3|}}}|-{{{3}}}}}}} - {{#dpl: category=Sheet music|namespace=  
|mode=userformat
|mode=userformat
|categorymatch={{#ifexpr:{{{3|}}}|{{{1|{{CURRENTYEAR}}}}}-{{{2}}}-{{{3}}}|{{#ifexpr:{{{2|}}}|{{{1|{{CURRENTYEAR}}}}}-{{{2}}}|{{{1|{{CURRENTYEAR}}}}}}}}}%
|categorymatch={{#ifexpr:{{{3|}}}|{{{1|{{CURRENTYEAR}}}}}-{{{2}}}-{{{3}}}|{{#ifexpr:{{{2|}}}|{{{1|{{CURRENTYEAR}}}}}-{{{2}}}|{{{1|{{CURRENTYEAR}}}}}}}}}%
Line 6: Line 6:
|resultsheader=%TOTALPAGES%
|resultsheader=%TOTALPAGES%
|noresultsheader = 0
|noresultsheader = 0
|allowcachedresults = true}}}}</includeonly>
|allowcachedresults = true}}}}
<noinclude>
[[Category:Templates|{{PAGENAME}}]]
 
{{DisplayBox|text='''Usage''' &ndash;
<!--There are four forms by which the template may be invoked:
<pre>{{NewWorkCount}}
{{NewWorkCount|yyyy}}
{{NewWorkCount|yyyy|mm}}
{{NewWorkCount|yyyy|mm|dd}}</pre>
'''Examples'''
<pre>{{NewWorkCount2}}</pre>
gives a count of the number of current score pages ({{NewWorkCount2}}) created in the current year ({{CURRENTYEAR}}).
<pre>{{NewWorkCount2|2007}}</pre>
gives a count of the number of current score pages ({{NewWorkCount2|2007}}) created in 2007.
<pre>{{NewWorkCount2|2008|10}}</pre>
gives a count of the number of current score pages ({{NewWorkCount2|2008|10}}) created in October of 2008.
<pre>{{NewWorkCount2|2007|09|11}}</pre>
gives a count of the number of current score pages ({{NewWorkCount2|2007|09|11}}) created on September 11, 2007.-->
}}
</noinclude>

Revision as of 18:10, 4 June 2020

1322