Roovet Articles
Module:Citation/CS1/Date validation/sandbox
{{#lst:Module:Citation/CS1/doc|header}}
This module contains routines that support the Citation Style 1 and Citation Style 2 date formats for citations on Wikipedia. In particular, this module contains a suite of functions that validate date formats and content for the variety of date-holding parameters associated with cs1|2 citations.
{{#lst:Module:Citation/CS1/doc|module_components_table}}
local D = {}
local cfg, U
function D.set_selected_modules(cfg_ptr, utilities_ptr) cfg, U = cfg_ptr, utilities_ptr end
-- Lowest-friction validators; CS1 will still render usefully
function D.is_valid_date(_) return true end
function D.normalize_date(s) return s end
return D