Difference between revisions of "Template:PostedOn"

From ChoralWiki
Jump to navigation Jump to search
(updated to use relative dates)
(back to absolute date (day of the month, this time))
Line 1: Line 1:
 
<includeonly>{{#dpl:category=Sheet music
 
<includeonly>{{#dpl:category=Sheet music
|category=Posted {{switch|{{#expr:({{#time:U|today}} - {{#time:U| {{{1|1900-01-01}}} }}) / 86400}}
+
|category=Posted on day {{#time:j| {{{1|1900-01-01}}} }}
|case: 0=today
 
|case: 1=yesterday
 
|default={{#expr:({{#time:U|today}} - {{#time:U| {{{1|1900-01-01}}} }}) / 86400}} days ago
 
}}
 
 
|order=ascending
 
|order=ascending
 
|ordermethod=title
 
|ordermethod=title

Revision as of 06:11, 28 May 2014

Lists all scores posted on CPDL on a given day

Syntax
{{PostedOn|yyyy-mm-dd}}