Template:NewWork: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(make template add date category in all cases, add default submission date of 1901-01-01 to trap/avoid errors)
(modify so that template only categorizes by date in the range 10 days (for use in showing new works on Main Page))
Line 3: Line 3:
|case: yes={{filepath:NewScore.gif}}[[Category:New works| {{{1|1901-01-01}}}]]
|case: yes={{filepath:NewScore.gif}}[[Category:New works| {{{1|1901-01-01}}}]]
|default=
|default=
}}[[Category:{{{1|1901-01-01}}}]]</includeonly>
}}{{switch|{{IsNew|{{{1|1901-01-01}}}|range=10 days}}
|case: yes=[[Category:{{{1|1901-01-01}}}]]
|default=
}}</includeonly>

Revision as of 16:26, 27 February 2009