Template:NewScoreCount: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
m (1 revision imported: Upgrade to DPL 3.3.3)
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<DPL>
<includeonly>{{#dpl:category=Sheet music
categorymatch={{{1}}}%
|categorymatch={{{1|{{CURRENTYEAR}}}}}%
category=Sheet music
|namespace=
mode=userformat
|distinct=false
resultsheader=%TOTALPAGES%
|mode=userformat
</DPL>
|resultsheader=%TOTALPAGES%
|noresultsheader=0
|allowcachedresults=true
}}</includeonly><noinclude>
{{prot-temp}}
{{DisplayBox|text='''Usage''' &ndash;
There are four forms by which the template may be invoked:
<pre>{{NewScoreCount}}
{{NewScoreCount|yyyy}}
{{NewScoreCount|yyyy-mm}}
{{NewScoreCount|yyyy-mm-dd}}</pre>
'''Examples'''
<pre>{{NewScoreCount}}</pre>
gives a count of the number of editions submitted ({{NewScoreCount}}) in the current year ({{CURRENTYEAR}}).
<pre>{{NewScoreCount|2007}}</pre>
gives a count of the number of editions submitted ({{NewScoreCount|2007}}) in 2007.
<pre>{{NewScoreCount|2008-10}}</pre>
gives a count of the number of editions submitted ({{NewScoreCount|2008-10}}) in October of 2008.
<pre>{{NewScoreCount|2007-09-11}}</pre>
gives a count of the number of editions submitted ({{NewScoreCount|2007-09-11}}) on September 11, 2007.
}}
[[Category:Templates]]
[[Category:DPL templates]]
</noinclude>

Revision as of 08:46, 4 January 2020

Usage – There are four forms by which the template may be invoked:

{{NewScoreCount}}
{{NewScoreCount|yyyy}}
{{NewScoreCount|yyyy-mm}}
{{NewScoreCount|yyyy-mm-dd}}

Examples

{{NewScoreCount}}

gives a count of the number of editions submitted (1640) in the current year (2024).

{{NewScoreCount|2007}}

gives a count of the number of editions submitted (910) in 2007.

{{NewScoreCount|2008-10}}

gives a count of the number of editions submitted (74) in October of 2008.

{{NewScoreCount|2007-09-11}}

gives a count of the number of editions submitted (97) on September 11, 2007.