Modül:Kaynak/KB1/Araçlar
local u = {}
local z = { error_categories = {}; -- for categorizing citations that contain errors error_ids = {}; message_tail = {}; maintenance_cats = {}; -- for categorizing citations that aren't erroneous per se, but could use a little work properties_cats = {}; -- for categorizing citations based on certain properties, language of source for instance
};
------------------------------------------------------------------
local cfg; -- table of tables imported from selected Module:Citation/CS1/Configuration
----------------------------------------------------------------------------------------------
Returns true if argument is set; false otherwise. Argument is 'set' when it exists (not nil) or when it is not an empty string. local function is_set( var ) return not (var );
end
------------------------------------------------------------------------------------------
Whether needle is in haystack
local function in_array( needle, haystack ) if needle == nil then return false; end for n,v in ipairs( haystack ) do if v == needle then return n; end end return false;
end
--------------------------------------------------------------------------------------
Populates numbered arguments in a message string using an argument table.