మాడ్యూల్:Citation/CS1: కూర్పుల మధ్య తేడాలు
Content deleted Content added
దిద్దుబాటు సారాంశం లేదు |
చి deprecated enumerated parameter error message fix; |
||
పంక్తి 3,836:
local function validate (name, cite_class, empty)
local name = tostring (name);
local enum_name; -- for enumerated parameters, is name with enumerator replaced with '#'
local state;
local function state_test (state, name) -- local function to do testing of state values
Line 3,859 ⟶ 3,860:
-- limited enumerated parameters list
state = whitelist.limited_numbered_arguments[
if true == state_test (state, name) then return true; end
Line 3,875 ⟶ 3,876:
-- all enumerated parameters allowed
state = whitelist.numbered_arguments[
if true == state_test (state, name) then return true; end
Line 4,055 ⟶ 4,056:
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
k = ('' == k) and
table.insert (empty_unknowns, utilities.wrap_style ('parameter', k)); -- format for error message and add to the list
end
|