User:Ohconfucius/test/MOSNUM dates code.js: Difference between revisions

Content deleted Content added
tweaks to 'abbreviate' and 'expand'
tweak expand/abbreviate
Line 450:
ohc_regex(/(\|[ ]*(?:date|archivedate|accessdate)[ ]*=[ ]*)@Day @Month @YYYY(?=[ ]*[\|\}])/gi, "$1@Day @FullMonth @YYYY");
ohc_regex(/(<ref[^>]*>[^<]+?[\s\(])@Day @Month @YYYY(?=[^\w\/\-%,<]*?<\/ref>)/gi, "$1@Day @FullMonth @YYYY");
ohc_regex(/([ ]\()@Day @Month @YYYY(?=\)[ ]\W)/gi, "$1@Day @FullMonth @YYYY");
ohc_regex(/(\|[ ]*(?:date|archivedate|accessdate)[ ]*=[ ]*)@Month @Day, @YYYY(?=[ ]*[\|\}])/gi, "$1@FullMonth @Day, @YYYY");
ohc_regex(/(<ref[^>]*>[^<]+?[\s\(])@Month @Day, @YYYY(?=[^\w\/\-%,<]*?<\/ref>)/gi, "$1@FullMonth @Day, @YYYY");
ohc_regex(/([ ]\()@Month @Day,? @YYYY(?=\)[ ]\W)/gi, "$1@FullMonth @Day, @YYYY");
}
Line 467:
ohc_regex(/(\|[ ]*(?:date|archivedate|accessdate)[ ]*=[ ]*)@Day @Month @YYYY(?=[ ]*[\|\}])/gi, "$1@Day @Mon @YYYY");
ohc_regex(/(<ref[^>]*>[^<]+?[\s\(])@Day @Month @YYYY([^\w\/\-%,<]*?<\/ref>)/gi, "$1@Day @Mon @YYYY$2");
ohc_regex(/([ ]\()@Day @Month @YYYY(?=\)[ ^\w\/-])/gi, "$1@Day @Mon @YYYY$2");
ohc_regex(/(\|[ ]*(?:date|archivedate|accessdate)[ ]*=[ ]*)@Month @Day, @YYYY(?=[ ]*[\|\}])/gi, "$1@Mon @Day, @YYYY");