User:Ohconfucius/script/MOSNUM dates: Difference between revisions

Content deleted Content added
indeed, the parameter is "cs1-dates"
 
(One intermediate revision by the same user not shown)
Line 1:
{{Editnotice
| id = userpageedn
| header = New Features as of 26 June 2025
| headerstyle = font-size: 150%;
| text = Hello! the user script [[User:Ohconfucius/script/MOSNUM_dates.js]] has been updated to add new features in further support of [[WP:MOSNUM]] in articles. Two new functions have been added: <code>DMY_cs1=ly</code> and <code>MDY_cs1=ly</code> where dates in the body of the text (and publication dates within citation templates, plus all "loose dates" inside references) are converted to DMY or MDY; access dates and archive dates align to ymd (1978-07-14); adds template parameter {{para|cs1-namedates}} with a matching value "ly".
 
Users are reminded to respect the [[WP:RETAIN|existing format in place]] and abide by [[WP:CONSENSUS]] when using this script.
Line 36:
# '''DATES to dmy''' &ndash; dates in the body of the text as well as in the reference sections are converted to "14 July 1978" or similar.
# '''DATES to mdy''' &ndash; as above. dates are converted to "July 14, 1978" or similar.
# '''DMY_cs1=ly''' &ndash; dates in the body of the text are converted to dmy ("14 July 1978" or similar); access dates and archive dates to ymd (1978-07-14); adds template parameter {{para|cs1-namedates}} with a matching value "ly".
# '''MDY_cs1=ly''' &ndash; as above. prose and publication dates are aligned to mdy ("July 14, 1978" or similar); access dates and archive dates to ymd (1978-07-14); adds template parameter {{para|cs1-namedates}} with a matching value "ly".
In addition, there are the following modes to convert slash or contracted dates into the desired format:
<!--