Template:NewWork: Difference between revisions
Jump to navigation
Jump to search
(testing with relative dates instead of absolute ones) |
(test worked fine) |
||
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= | |case: yes={{switch|{{#expr:({{#time:U|today}} - {{#time:U| {{{1|1901-01-01}}} }}) / 86400}} | ||
|case: 0=[[Category:Posted today]] | |case: 0=[[Category:Posted today]] | ||
|case: 1=[[Category:Posted yesterday]] | |case: 1=[[Category:Posted yesterday]] |
Revision as of 06:52, 27 May 2014
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. |