మాడ్యూల్:Cs1 documentation support: కూర్పుల మధ్య తేడాలు

Content deleted Content added
దిద్దుబాటు సారాంశం లేదు
దిద్దుబాటు సారాంశం లేదు
పంక్తి 2:
 
local cfg = mw.loadData ('Module:Citation/CS1/Configuration'); -- load the configuration module
 
local exclusion_lists = {
['cite book'] = {
['agency'] = true,
['air-date'] = true,
['arxiv'] = true,
['biorxiv'] = true,
['citeseerx'] = true,
['class'] = true,
['conference'] = true,
['conference-format'] = true,
['conference-url'] = true,
['degree'] = true,
['department'] = true,
['display-interviewers'] = true,
['docket'] = true,
['episode'] = true,
['interviewer#'] = true,
['interviewer-first#'] = true,
['interviewer-link#'] = true,
['interviewer-mask#'] = true,
['ismn'] = true,
['issn'] = true,
['issue'] = true,
['jfm'] = true,
['journal'] = true,
['jstor'] = true,
['mailinglist'] = true,
['message-id'] = true,
['minutes'] = true,
['MR'] = true,
['network'] = true,
['number'] = true,
['RFC'] = true,
['script-journal'] = true,
['season'] = true,
['section'] = true,
['sections'] = true,
['series-link'] = true,
['series-number'] = true,
['series-separator'] = true,
['sheet'] = true,
['sheets'] = true,
['SSRN'] = true,
['station'] = true,
['time'] = true,
['time-caption'] = true,
['trans-article'] = true,
['trans-journal'] = true,
['transcript'] = true,
['transcript-format'] = true,
['transcript-url'] = true,
['ZBL'] = true,
}
}
 
--[[-------------------------< A D D _ T O _ L I S T >---------------------------------------------------------
Line 194 ⟶ 249:
]]
 
local function canonical_param_lister (frame)
local template = frame.args[1];
if '' == template then
template = nil;
end
 
if template then
template = mw.text.trim (template:lower());
end
 
local alias_src = cfg.aliases; -- get master list of aliases
local id_src = cfg.id_handlers; -- get master list of identifiers
Line 202 ⟶ 266:
for _, aliases in pairs (alias_src) do -- loop through the master list of aliases
local name;
if 'table' == type (aliases) then -- table only when there are aliases
name = aliases[1];
-- table.insert (list, aliases[1]); -- first member of an aliases table is declared canonical
else
name = aliases;
-- table.insert (list, aliases); -- for those parameters that do not have any aliases, the parameter is declared canonical
end
if not template or (template and not exclusion_lists[template][name]) then
table.insert (list, name);
end
end
for k, ids in pairs (id_src) do
table.insertlocal name (list,= id_src[k].parameters[1]);
if not template or (template and not exclusion_lists[template][name]) then
table.insert (list, name);
end
end
"https://te.wikipedia.org/wiki/మాడ్యూల్:Cs1_documentation_support" నుండి వెలికితీశారు