Template:NewWork: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(change(alternate) range of categorization in "Posted yyyy-mm-dd" to 30 days (to keep track of newly POSTED scores for that period of time))
(testing with relative dates instead of absolute ones)
Line 1: Line 1:
<noinclude>{{prot-temp}}
<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}}}]] {{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:Posted {{{1|1901-01-01}}}]]
|case: yes=[[Category:Posted {{{1|1901-01-01}}}]] {{switch|{{#expr:({{#time:U|today}} - {{#time:U| {{{1|1901-01-01}}} }}) / 86400}}
|case: 0=[[Category:Posted today]]
|case: 1=[[Category:Posted yesterday]]
|default=[[Category:Posted {{#expr:({{#time:U|today}} - {{#time:U| {{{1|1901-01-01}}} }}) / 86400}} days ago]]
}}
|default=
|default=
}} <small>(Posted {{{1|1901-01-01}}})</small> &nbsp;
}} <small>(Posted {{{1|1901-01-01}}})</small> &nbsp;
|default=
|default=
}}</includeonly>
}}</includeonly><noinclude>{{prot-temp}}
 
[[Category:Templates]]</noinclude>

Revision as of 05:18, 27 May 2014