Template:NewWorkCount: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{#expr: {{NewScoreCount| {{{1|{{CURRENTYEAR}}}}}{{#ifexpr:{{{2|}}}|-{{{2}}}}}{{#ifexpr:{{{3|}}}|-{{{3}}}}}}} - {{#dpl:
<includeonly>{{#expr: {{NewScoreCount| {{{1|{{CURRENTYEAR}}}}}{{#if:{{{2|}}}|-{{{2}}}}}{{#if:{{{3|}}}|-{{{3}}}}}}} - {{#dpl:category=Sheet music|categorymatch={{{1|{{CURRENTYEAR}}}}}{{#if:{{{2|}}}|-{{{2}}}|&nbsp;}}{{#if:{{{3|}}}|-{{{3}}}|&nbsp;}}%
|categorymatch={{{1|{{CURRENTYEAR}}}}}{{#ifexpr:{{{2|}}}|-{{{2}}}}}{{#ifexpr:{{{3|}}}|-{{{3}}}}}%
|category=Sheet music
|namespace=
|namespace=
|lastrevisionbefore={{#time: Ymd|{{{1|{{CURRENTYEAR}}}}}-{{{2|01}}}-{{{3|01}}}- 1 Day}}
|lastrevisionbefore={{#time: Ymd|{{{1|{{CURRENTYEAR}}}}}{{#if:{{{2|}}}|-{{{2}}}|-01}}{{#if:{{{3|}}}|-{{{3}}}|-01}}- 1 Day}}
|distinct=false
|distinct=true
|mode=userformat
|mode=userformat
|resultsheader=%TOTALPAGES%
|resultsheader=%TOTALPAGES%
|noresultsheader=0
|noresultsheader=0
}}}}<!-- counts new works pages for yyyy, or yyyy|mm, or yyyy|mm|dd ... default is for the current year -->
|allowcachedresults=true
}}}}</includeonly><noinclude>
{{prot-temp}}
<!--{{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>{{NewWorkCount}}</pre>
gives a count of the number of current score pages ({{NewWorkCount}}) created in the current year ({{CURRENTYEAR}}).
<pre>{{NewWorkCount|2007}}</pre>
gives a count of the number of current score pages ({{NewWorkCount|2007}}) created in 2007.
<pre>{{NewWorkCount|2008|10}}</pre>
gives a count of the number of current score pages ({{NewWorkCount|2008|10}}) created in October of 2008.
<pre>{{NewWorkCount|2007|09|11}}</pre>
gives a count of the number of current score pages ({{NewWorkCount|2007|09|11}}) created on September 11, 2007.
}}-->
[[Category:Templates|{{PAGENAME}}]]
[[Category:DPL templates]]
 
</noinclude>

Latest revision as of 00:24, 23 July 2020