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

Content deleted Content added
దిద్దుబాటు సారాంశం లేదు
దిద్దుబాటు సారాంశం లేదు
పంక్తి 344:
for k, ids in pairs (id_src) do
local name = id_src[k].parameters[1];
local access = id_src[k].custom_access;
if not template then -- no template name, add this parameter
table.insert (list, name);
if access then
table.insert (list, access);
end
elseif not exclusion_lists[template] then -- template name but no exclusion list
table.insert (list, name);
if access then
table.insert (list, access);
end
elseif not exclusion_lists[template][name] then -- template name and exclusion list but name not in list
table.insert (list, name);
if access then
table.insert (list, access);
end
end
end
Line 385 ⟶ 395:
local name;
local meta = frame.args[1]
 
local access; -- for id-access parameters
if meta:match ('^(%u+)access') then -- the metaparameter (which is not used in ~/Configuration) is id_handlers key concatenated with access: BIBCODEaccess
meta, access = meta:gsub ('^(%u+)access', '%1'); -- strip 'access' text from meta and use returned count value as a flag
end
 
if alias_src[meta] then
Line 392 ⟶ 407:
end
 
elseif id_src[meta] then -- if there is an id handler
if access then -- and if this is a request for the handler's custom access parameter
name = id_src[meta].parameters[1];
if id_src[meta].custom_access then -- if there is a custom access parameter
name = id_src[meta].custom_access; -- use it
else
return ''; -- nope, return empty string
end
else
name = id_src[meta].parameters[1]; -- get canonical id handler parameter
end
else
return '';
"https://te.wikipedia.org/wiki/మాడ్యూల్:Cs1_documentation_support" నుండి వెలికితీశారు