Template:NewWork: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(necessary for monthly statistics)
(added doc)
Line 6: Line 6:
|default=
|default=
}}</includeonly><noinclude>{{prot-temp}}
}}</includeonly><noinclude>{{prot-temp}}
{{DisplayBox|title=Documentation|text=
;Usage: {{tl|NewWork|''<yyyy-mm-dd>''}}
This template is affected by the behaviour of template {{CiteTemp|IsNew}} in two ways:
# If the date passed as parameter falls inside that template's default date range (currently 90 days), then NewWork will:
#* Show an icon ([[Image:NewScore.gif]]) in front of the edition's CPDL#
#* Insert the page in which it is contained in category {{CiteCat|New works}}
# If the date passed (''yyyy-mm-dd'') falls inside the alternate date range value (currently 30 days), then NewWork will
#* Categorize the page in categories [[:Category:Posted editions by day of month|Posted on day ''dd'']] and [[:Category:Posted editions by month|Posted in ''Month'']]
:Only works in these two categories are eligible to be displayed on the Main page "Latest scores" listing.
}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 16:43, 28 January 2015

Documentation
Usage
{{NewWork|<yyyy-mm-dd>}}

This template is affected by the behaviour of template IsNew in two ways:

  1. If the date passed as parameter falls inside that template's default date range (currently 90 days), then NewWork will:
    • Show an icon (NewScore.gif) in front of the edition's CPDL#
    • Insert the page in which it is contained in category New works
  2. If the date passed (yyyy-mm-dd) falls inside the alternate date range value (currently 30 days), then NewWork will
Only works in these two categories are eligible to be displayed on the Main page "Latest scores" listing.