Module:Citation/CS1: Difference between revisions

sync from sandbox;
No edit summary
(sync from sandbox;)
Line 4,055: Line 4,055:
elseif not utilities.is_set (v) then -- for empty parameters
elseif not utilities.is_set (v) then -- for empty parameters
if not validate (k, config.CitationClass, true) then -- is this empty parameter a valid parameter
if not validate (k, config.CitationClass, true) then -- is this empty parameter a valid parameter
k = k:gsub ('^$', '(empty string)'); -- when k is empty string (or was space(s) trimmed to empty string), replace with descriptive text
table.insert (empty_unknowns, utilities.wrap_style ('parameter', k)); -- format for error message and add to the list
table.insert (empty_unknowns, utilities.wrap_style ('parameter', k)); -- format for error message and add to the list
end
end