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

Content deleted Content added
leaving yyyy-mm-dd dates within archive|access parameters
Tag: Reverted
add for nested date template
Tag: Reverted
Line 319:
ohc_regex(/\{\{date\|@YYYY\/@MM\/@DD\}\}/gi, "@YYYY-@MM-@DD"); //remove {{date}} template while rectifying slash dates within the template
ohc_regex(/\{\{date\|(@DD[\-\s]@Mon|@Mon[\-\s]@DD)\}\}/gi, "@Day @Month");
regex(/\{\{date\|([^}\|]+|\{\{date\}\})(?:\|l?(?:[dmy]{3}|iso|none|link))?\}\}/gi, '$1'); //add for nested date template
ohc_regex(/[ ]*\{\{accessdate\|@YYYY-@MM-@DD[ ]*\}\}/gi, " Retrieved @YYYY-@MM-@DD");
ohc_regex(/[ ]*\{\{retrieved[ ]*\|[ ]accessdate=([\-\w, ]*)\}\}/gi, " Retrieved $1");