Template:NewWorkCount: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(added allowcachedresults=true to reduce server workload; updates may become a bit delayed)
No edit summary
 
(6 intermediate revisions by 3 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
|allowcachedresults=true
|allowcachedresults=true
}}}}<noinclude>
}}}}</includeonly><noinclude>
{{prot-temp}}
{{prot-temp}}
[[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}}
Line 27: Line 24:
<pre>{{NewWorkCount|2007|09|11}}</pre>
<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.
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