Template:PostedDate: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{PostedDate|1900-01-01}}</includeonly><noinclude>
<includeonly>{{#ifeq: {{IsNew|{{{1}}}}}|yes|{{NewWork|{{{1}}}}}}}<small>(Posted {{{1}}})</small> &nbsp;</includeonly><noinclude>
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
{{DisplayBox|title=Documentation|text=
<center><big>'''Documentation'''</big></center>
;Usage: {{tl|PostedDate|''<yyyy-mm-dd>''}}


This template only tags an edition with the date it has been posted.
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.
;Usage: <tt><nowiki>{{</nowiki>PostedDate{{!}}''<yyyy-mm-dd>''<nowiki>}}</nowiki></tt>
 
</div>[[Category:Templates|{{PAGENAME}}]]</noinclude>
}}
[[Category:Templates]]</noinclude>

Revision as of 16:46, 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.