Template:NewWork: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(modify so that template only categorizes by date in the range 10 days (for use in showing new works on Main Page))
(change to add Category:Posted yyyy-mm-dd for 10 days)
Line 1: Line 1:
<noinclude>{{prot-temp}}
<noinclude>{{prot-temp}}
[[Category:Templates|{{PAGENAME}}]]<br></noinclude><includeonly>{{switch|{{IsNew|{{{1|1901-01-01}}}}}
[[Category:Templates|{{PAGENAME}}]]<br></noinclude><includeonly>{{switch|{{IsNew|{{{1|1901-01-01}}}}}
|case: yes={{filepath:NewScore.gif}}[[Category:New works| {{{1|1901-01-01}}}]]
|case: yes={{filepath:NewScore.gif}}[[Category:New works| {{{1|1901-01-01}}}]]{{switch|{{IsNew|{{{1|1901-01-01}}}|range=10 days}}
|default=
|case: yes=[[Category:Posted {{{1|1901-01-01}}}]]
}}{{switch|{{IsNew|{{{1|1901-01-01}}}|range=10 days}}
|default=Posted {{{1|1901-01-01}}}. &nbsp;
|case: yes=[[Category:{{{1|1901-01-01}}}]]
}}
|default=
|default=
}}</includeonly>
}}</includeonly>

Revision as of 15:03, 28 February 2009