Module:Citation/CS1/Whitelist/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 412:
]]
 
local preprint_specific_argumentspreprint_arguments = {
arxiv = {
['arxiv'] = true, -- cite arxiv and arxiv identifiers
Line 581:
 
 
--[[--------------------------< U N I Q U E _ P A R A M _ T E M P L A T E _ L I S T _ G E T >--------------------------------------------
 
gets a list of the templates thatfrom are identified as having unique parameters fromtable unique_arguments{}t
 
]]
 
local function unique_param_template_list_gettemplate_list_get (t)
local out = {}; -- a table for output
for k, _ in pairs (unique_argumentst) do -- spin through the table and collect the keys
table.insert (out, k) -- add each key to the output table
end
Line 608:
citeseerx_basic_arguments = citeseerx_basic_arguments, -- TODO: delete this
ssrn_basic_arguments = ssrn_basic_arguments, -- TODO: delete this
 
preprint_specific_arguments = preprint_specific_arguments,
preprint_arguments = preprint_arguments,
preprint_template_list = template_list_get (preprint_arguments), -- make a template list from preprint_arguments{} table
unique_arguments = unique_arguments,
unique_param_template_list = unique_param_template_list_gettemplate_list_get (unique_arguments), -- make a template list from unique_arguments{} table
};