Template:PostedDate: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(hiding the date for now)
(invokes {{NewWork|<yyyy-mm-dd>}} if the date is within 90 days of the current date)
Line 1: Line 1:
<includeonly></includeonly><noinclude>
<includeonly>{{#ifeq: {{IsNew|{{{1}}}}}|yes|{{NewWork|{{{1}}}}}}}<small>(Posted {{{1}}})</small> &nbsp; </includeonly><noinclude>
{{DisplayBox|title=Documentation|text=
{{DisplayBox|title=Documentation|text=
;Usage: {{tl|PostedDate|''<yyyy-mm-dd>''}}
If the date ''<yyyy-mm-dd>'' is within 90 days of the current date, this template invokes {{tl|NewWork|''<yyyy-mm-dd>''}} which does some bookkeeping work and also displays the "New" icon if the date is within 30 days of the current date. Regardless of the date, this template also prints "<small>(Posted {''<yyyy-mm-dd>'')</small> &nbsp; " before the CPDL number of an edition.


This template only tags an edition with the date it has been posted.
;Usage: {{tl|PostedDate|''<yyyy-mm-dd>''}}
}}
}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 16:42, 2 February 2015


Documentation
Usage
{{PostedDate|<yyyy-mm-dd>}}

If the date <yyyy-mm-dd> is within 90 days of the current date, this template invokes {{NewWork|<yyyy-mm-dd>}} which does some bookkeeping work and also displays the "New" icon if the date is within 30 days of the current date. Regardless of the date, this template also prints "(Posted {<yyyy-mm-dd>)   " before the CPDL number of an edition.