Template:NewPostCount: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(Template to count score pages with New postings in the current month or on a given date (within the past 30 days).)
 
mNo edit summary
Line 19: Line 19:
<pre>{{NewPostCount}}</pre>
<pre>{{NewPostCount}}</pre>
gives a count of the number of score pages ({{NewPostCount}}) with newly posted editions in the current month ({{CURRENTMONTH}}).
gives a count of the number of score pages ({{NewPostCount}}) with newly posted editions in the current month ({{CURRENTMONTH}}).
<pre>{{NewPostCount|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}}}</pre>
<pre>{{NewPostCount|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}</pre>
gives a count of the number of score pages ({{NewPostCount|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}}}) with newly posted editions today ({{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}).
gives a count of the number of score pages ({{NewPostCount|{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}}}) with newly posted editions today ({{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}).
}}
}}

Revision as of 15:42, 9 December 2009

0

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

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

Examples

{{NewPostCount}}

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

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

gives a count of the number of score pages (0) with newly posted editions today (2024-04-24).