Template:PostedOn: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(updated to use relative dates)
m (Text replacement - "Category:Templates]]" to "Category:DPL templates]] Category:Templates")
 
(7 intermediate revisions by 3 users not shown)
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}}
|linksto=Posted on {{{1|an unknown date}}}
|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
Line 10: Line 6:
|shownamespace=false
|shownamespace=false
|allowcachedresults=false
|allowcachedresults=false
|resultsheader=<p>'''{{#time:F j, Y|{{{1|1900-01-01}}}}}'''</p>
|resultsheader=<p>'''{{#time:j|{{{1|1900-01-01}}}}} {{month|{{#time:n|{{{1|1900-01-01}}}}}|{{{2|}}}}} {{#time:Y|{{{1|1900-01-01}}}}}'''</p>
|suppresserrors=true}}</includeonly><noinclude>
|noresultsheader=&nbsp;}}</includeonly><noinclude>
{{Doc|1=
Lists all scores posted on CPDL on a given day
Lists all scores posted on CPDL on a given day
;Syntax : <tt><nowiki>{{PostedOn|yyyy-mm-dd}}</nowiki></tt>
;Syntax : <tt><nowiki>{{PostedOn|yyyy-mm-dd}}</nowiki></tt>


Tests can be carried on at the template's [[/Sandbox|sandbox]]
}}
[[Category:DPL templates]]
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 04:39, 5 January 2020


Documentation

Lists all scores posted on CPDL on a given day

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


Tests can be carried on at the template's sandbox