Difference between revisions of "Template:NewPostCount"

From ChoralWiki
Jump to navigation Jump to search
m (Text replace - "{{PAGENAME}}" to "Category:Templates")
(fix #time call: F Y,. not F yy)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{#dpl:
 
{{#dpl:
|category=Posted in {{#time:F|{{{1|{{CURRENTYEAR}}-{{CURRENTMONTH}}}}} }}
+
|category=Posted in {{#time:F Y|{{{1|{{CURRENTYEAR}}-{{CURRENTMONTH}}}}} }}
 
|category=Sheet music
 
|category=Sheet music
 
|namespace=
 
|namespace=
Line 10: Line 10:
 
}}<noinclude>
 
}}<noinclude>
 
{{prot-temp}}
 
{{prot-temp}}
 +
[[Category:DPL templates]]
 
[[Category:Templates]]
 
[[Category:Templates]]
 
{{DisplayBox|text='''Usage''' &ndash;
 
{{DisplayBox|text='''Usage''' &ndash;
 
There are two forms by which the template may be invoked:
 
There are two forms by which the template may be invoked:
<pre>{{NewScoreCount}}
+
<pre>{{NewPostCount}}
 
{{NewPostCount|yyyy-mm-dd}}
 
{{NewPostCount|yyyy-mm-dd}}
     (valid only if yyyy-mm-dd falls withing the past thirty days)</pre>
+
     (normally used only if yyyy-mm-dd falls withing the past thirty days)</pre>
 
'''Examples'''
 
'''Examples'''
 
<pre>{{NewPostCount}}</pre>
 
<pre>{{NewPostCount}}</pre>

Latest revision as of 03:34, 1 January 2021

326

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

{{NewPostCount}}
{{NewPostCount|yyyy-mm-dd}}
    (normally used only if yyyy-mm-dd falls withing the past thirty days)

Examples

{{NewPostCount}}

gives a count of the number of score pages (326) with newly posted editions in the current month (10).

{{NewPostCount|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}

gives a count of the number of score pages (326) with newly posted editions today (2021-10-24).