Content deleted Content added
Matthiaspaul (talk | contribs) added tracking message/cat for abbreviated year ranges in |date=, |publication-date= and |year= parameters |
Matthiaspaul (talk | contribs) CE |
||
Line 71:
returns true and date value if that value has proper dmy, mdy, ymd format.
returns false and 9999 (embargoed forever) when date value is not proper format; assumes that when |pmc-embargo-date= is
set, the editor intended to embargo a pmc but |pmc-embargo-date= does not hold a single date.
]]
Line 481:
Inputs:
date_string - date string from date-holding parameters (date, year,
Returns:
Line 735:
good_date, anchor_year, COinS_date = true, v.val:match("((%d+)%a?)");
end
elseif 'pmc-embargo-date'==k then -- if the parameter is |pmc-embargo-date=
good_date = check_date (v.val, k); -- go test the date
if true == good_date then -- if the date is a valid date
good_date, embargo_date = is_valid_embargo_date (v.val); -- is |pmc-embargo-date= date a single dmy, mdy, or ymd formatted date? yes:returns embargo; no: returns 9999
end
else -- any other date-holding parameter
|