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
|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 7: Line 6:
|resultsheader=%TOTALPAGES%
|resultsheader=%TOTALPAGES%
|noresultsheader = 0
|noresultsheader = 0
|allowcachedresults = true}}}}
|allowcachedresults = true}}}}</includeonly>
<noinclude>
<noinclude>
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]


{{DisplayBox|text='''Usage''' &ndash;
{{DisplayBox|text='''Usage''' &ndash;
There are four forms by which the template may be invoked:
<!--There are four forms by which the template may be invoked:
<pre>{{NewWorkCount}}
<pre>{{NewWorkCount}}
{{NewWorkCount|yyyy}}
{{NewWorkCount|yyyy}}
Line 25: Line 24:
gives a count of the number of current score pages ({{NewWorkCount2|2008|10}}) created in October of 2008.
gives a count of the number of current score pages ({{NewWorkCount2|2008|10}}) created in October of 2008.
<pre>{{NewWorkCount2|2007|09|11}}</pre>
<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.
gives a count of the number of current score pages ({{NewWorkCount2|2007|09|11}}) created on September 11, 2007.-->
}}
}}
<!--</noinclude>-->
</noinclude>

Revision as of 18:02, 4 June 2020


Usage