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

Content deleted Content added
Overview: disabling body dates
Line 58:
*It removes year linking templates (such as {{tl|scy}}, {{tl|by}}), and links to 'year-in X' where piped from years (such as <nowiki>[[1984 in literature|1984]]</nowiki>)
*It converts other often used (but not MOSNUM-compliant) date formats within the references section, such as dd-mm-yyyy or dd-mmm-yyyy to the chosen prevailing format used in the rest of the article.
*<s>It also allows users to choose to convert dates within only the body of the article, as is permitted for reference sections (where yyyy-mm-dd dates are common) to have different dates, or throughout the article.</s> Now disabled. CS1 now manages the date rendering by [[Help:Citation_Style_1#Auto-formatting_citation_template_dates|auto-formatting citation template dates]] using parameters within the {{tl|use dmy dates}} and {{tl|use mdy dates}} templates, so this can be used to fine-tune the rendering.
<!-- *ISO-style dates (yyyy-mm-dd) which are outside <nowiki><ref></ref></nowiki> tags are not acted upon by the script
-->
 
The script adds or updates a non-displaying template {{tl|use mdy dates}} or {{tl|use dmy dates}} depending on the conversion used. This tagging allows for WM software engine to render date formats automatically in conformity with tagged format). It also facilitates future maintenance by bot by script [[WP:AWB|AWB]].