Template:NewWork: Difference between revisions
Jump to navigation
Jump to search
Documentation
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{switch|{{IsNew|{{{1|1901-01-01}}}}} | <includeonly>{{switch|{{IsNew|{{{1|1901-01-01}}}}} | ||
|case: yes={{filepath:NewScore.gif}} [[Category:New works| {{{1|1901-01-01}}}]] {{switch|{{IsNew|{{{1|1901-01-01}}}|range=30 days}} | |case: yes={{filepath:NewScore.gif}} [[Category:New works| {{{1|1901-01-01}}}]] {{switch|{{IsNew|{{{1|1901-01-01}}}|range=30 days}} | ||
|case: yes=[[Category:New works in the past 30 days| {{{1|1901-01-01}}}]][[Category:Posted on day {{#time:j|{{{1|1901-01-01}}} }}]][[Category:Posted in {{#time:F|{{{1|1901-01-01}}} }}]] | |case: yes=[[Category:New works in the past 30 days| {{{1|1901-01-01}}}]][[Category:Posted on day {{#time:j|{{{1|1901-01-01}}} }}]][[Category:Posted in {{#time:F|{{{1|1901-01-01}}} }}]] | ||
|default= | |default= |
Revision as of 19:35, 2 February 2015
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |
- Usage
- {{NewWork|<yyyy-mm-dd>}}
This template is affected by the behaviour of template 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 () in front of the edition's CPDL#
- Insert the page in which it is contained in category New works
- If the date passed (yyyy-mm-dd) falls inside the alternate date range value (currently 30 days), then NewWork will
- Insert the page in the categories New works in the past 30 days (for the Multi-Category Search), Posted on day dd and Posted in Month (for the LatestScores)
- Only works in these two categories are eligible to be displayed on the Main page "Latest scores" listing.