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

Content deleted Content added
No edit summary
No edit summary
Line 75:
['contributor-link'] = true,
['contributor-mask'] = true,
-- ['credits'] = true, -- cite episode, cite serial
['date'] = true,
['degree'] = true,
Line 118:
-- ['episodelink'] = true, -- cite episode and cite serial
-- ['episode-link'] = true, -- cite episode and cite serial
['eprint'] = true, -- cite arxiv; andhere arxivbecause identifiersallowed in cite ... as identifier
['event'] = true,
['event-format'] = true,
Line 558:
['airdate'] = true,
['air-date'] = true,
['credits'] = true,
['episodelink'] = true, -- aliases of |title-link=
['episode-link'] = true,
Line 569 ⟶ 570:
['airdate'] = true,
['air-date'] = true,
['credits'] = true,
['episode'] = true, -- cite serial only TODO: make available to cite episode?
['episodelink'] = true, -- aliases of |title-link=
Line 577 ⟶ 579:
}
 
 
local function specific_templates_get ()
--[[--------------------------< 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 >------------------
local specific_templates = {};
 
for k, _ in pairs (template_specific_arguments) do
gets a list of the templates that are identified as having unique parameters from template_specific_arguments{}
table.insert (specific_templates, k)
 
]]
 
local function unique_param_template_list_get ()
local out = {}; -- a table for output
for k, _ in pairs (template_specific_arguments) do -- spin through the table and collect the keys
table.insert (out, k) -- add each key to the output table
end
return out; -- and done
return specific_templates;
end
 
 
--[[--------------------------< E X P O R T E D T A B L E S >------------------------------------------------
]]
Line 598 ⟶ 608:
ssrn_basic_arguments = ssrn_basic_arguments, -- TODO: delete this
preprint_specific_arguments = preprint_specific_arguments,
specific_templates = specific_templates_getunique_param_template_list_get (), -- TODO: this one goes away
template_specific_arguments = template_specific_arguments,
unique_param_template_list = unique_param_template_list_get(),
};