ಮಾಡ್ಯೂಲ್:Citation/CS1/Date validation/sandbox: ಪರಿಷ್ಕರಣೆಗಳ ನಡುವಿನ ವ್ಯತ್ಯಾಸ

Content deleted Content added
No edit summary
No edit summary
 
೫೬೫ ನೇ ಸಾಲು:
for k, v in pairs(date_parameters_list) do -- for each date-holding parameter in the list
if is_set(v) then -- if the parameter has a value
v = mw.ustring.gsub (v, '[೦-೯]%d', cfg.date_names.local_digits);
if v:match("^c%. [1-9]%d%d%d?%a?$") then -- special case for c. year or with or without CITEREF disambiguator - only |date= and |year=
local year = v:match("c%. ([1-9]%d%d%d?)%a?"); -- get the year portion so it can be tested