Template:NewWorkCount: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (User:CHGiffen/NewWorkCount moved to Template:NewWorkCount: new template, counts new work pages created)
(documentation, categorization, protection)
Line 8: Line 8:
|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 -->
}}}}<noinclude>
{{prot-temp}}
[[Category:Templates|{{PAGENAME}}]]
{{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|2008|10}}</pre>
gives a count of the number of current score pages ({{NewWorkCount|2007|09|11}}) created on September 11, 2007.
}}

Revision as of 17:44, 15 December 2008

838

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

{{NewWorkCount}}
{{NewWorkCount|yyyy}}
{{NewWorkCount|yyyy|mm}}
{{NewWorkCount|yyyy|mm|dd}}

Examples

{{NewWorkCount}}

gives a count of the number of current score pages (838) created in the current year (2024).

{{NewWorkCount|2007}}

gives a count of the number of current score pages (762) created in 2007.

{{NewWorkCount|2008|10}}

gives a count of the number of current score pages (56) created in October of 2008.

{{NewWorkCount|2008|10}}

gives a count of the number of current score pages (75) created on September 11, 2007.