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>[[Category:Posted in {{#time:F Y|{{{1|}}}}}]]{{#ifexpr:{{#time:Ymd|now-90 days}}>{{#time:Ymd|{{{1|}}}}}|[[Category:More than 90 days old]]}}{{#ifexpr:{{#time:Ymd|now-31 days}}<{{#time:Ymd|{{{1|}}}}}|{{filepath:NewScore.gif}} [[Category:Posted in {{#time:F|{{{1|}}}}}]]<span style="display:none">[[Posted on {{{1|an unknown date}}}]]</span>|[[Category:More than 30 days old]]}}<small>(Posted {{{1}}})</small> </includeonly><noinclude> | ||
{{DisplayBox|title=Documentation|text= | {{DisplayBox|title=Documentation|text= | ||
;Usage: {{tl|PostedDate|''<yyyy-mm-dd>''}} | ;Usage: {{tl|PostedDate|''<yyyy-mm-dd>''}} | ||
This template is automatically added to any new | This template is automatically added to any new edition, if the AddWork form is used. | ||
If the date in the first parameter is more than 90 days old, the page is added to the category "More than 90 days old". | If the date in the first parameter is more than 90 days old, the page is added to the category "More than 90 days old". | ||
Line 9: | Line 9: | ||
If the date in the first parameter is within 30 days of the current date, this template displays the "New" icon and adds the page to the category ''Posted in <month>’’. | If the date in the first parameter is within 30 days of the current date, this template displays the "New" icon and adds the page to the category ''Posted in <month>’’. | ||
Regardless of the date, this template | Regardless of the date, this template prints "(Posted ''<yyyy-mm-dd>'') " before the CPDL number of an edition and categorizes the page in ''Posted in <month> <yyyy>’’. | ||
<!--Revised May 2020 to make Templates ‘’IsNew’’ and ‘’NewWork’’ and Category ‘’New works’’ obsolete.--> | <!--Revised May 2020 to make Templates ‘’IsNew’’ and ‘’NewWork’’ and Category ‘’New works’’ obsolete.--> |
Latest revision as of 17:48, 8 December 2020
- Usage
- {{PostedDate|<yyyy-mm-dd>}}
This template is automatically added to any new edition, if the AddWork form is used.
If the date in the first parameter is more than 90 days old, the page is added to the category "More than 90 days old".
If the date in the first parameter is within 30 days of the current date, this template displays the "New" icon and adds the page to the category Posted in <month>’’.
Regardless of the date, this template prints "(Posted <yyyy-mm-dd>) " before the CPDL number of an edition and categorizes the page in Posted in <month> <yyyy>’’.