Template:NewWorkCount2: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{# | {{#iferror:{{NewWorkCount3|{{{1|{{CURRENTYEAR}}}}}{{#ifexpr:{{{2|}}}|{{!}}{{{2|}}}}}{{#ifexpr{{{3|}}}|{{!}}{{{3|}}}}}}}|%TOTALPAGES%}}<noinclude> | ||
{{DisplayBox|text='''Usage''' – | |||
There are four forms by which the template may be invoked: | |||
<pre>{{NewWorkCount2}} | |||
{{NewWorkCount2|yyyy}} | |||
| | {{NewWorkCount2|yyyy|mm}} | ||
{{NewWorkCount2|yyyy|mm|dd}}</pre> | |||
'''Examples''' | |||
[[Category: | <pre>{{NewWorkCount2}}</pre> | ||
gives a count of the number of current score pages ({{NewWorkCount2}}) created in the current year ({{CURRENTYEAR}}). | |||
<pre>{{NewWorkCount2|2007}}</pre> | |||
gives a count of the number of current score pages ({{NewWorkCount2|2007}}) created in 2007. | |||
<pre>{{NewWorkCount2|2008|10}}</pre> | |||
gives a count of the number of current score pages ({{NewWorkCount2|2008|10}}) created in October of 2008. | |||
<pre>{{NewWorkCount2|2007|09|11}}</pre> | |||
gives a count of the number of current score pages ({{NewWorkCount2|2007|09|11}}) created on September 11, 2007. | |||
}} | |||
[[Category:Templates|{{PAGENAME}}]] | |||
[[Category:DPL templates]] | |||
</noinclude> |
Revision as of 15:00, 5 June 2020
3
Usage – There are four forms by which the template may be invoked:
{{NewWorkCount2}} {{NewWorkCount2|yyyy}} {{NewWorkCount2|yyyy|mm}} {{NewWorkCount2|yyyy|mm|dd}}
Examples
{{NewWorkCount2}}
gives a count of the number of current score pages (3) created in the current year (2024).
{{NewWorkCount2|2007}}
gives a count of the number of current score pages (3) created in 2007.
{{NewWorkCount2|2008|10}}
gives a count of the number of current score pages (3) created in October of 2008.
{{NewWorkCount2|2007|09|11}}
gives a count of the number of current score pages (3) created on September 11, 2007.