Template:PostedDate: Difference between revisions
Jump to navigation
Jump to search
Documentation
No edit summary |
mNo edit summary |
||
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{#ifeq: {{IsNew|{{{1}}}}}|yes|{{NewWork|{{{1}}}}}}}<small>(Posted {{{1}}})</small> </includeonly><noinclude> | ||
{{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> " before the CPDL number of an edition. | |||
}} | |||
[[Category:Templates]]</noinclude> |
Revision as of 16:46, 2 February 2015
- 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.