Module:Cite Q: Difference between revisions

Content deleted Content added
No edit summary
accept any and all cs1|2 parameters in the template call;
Line 145:
local wdl;
 
local argspframe = frame.args; -- get arguments:getParent()
local args = pframe.args; -- first get parent frame arguments - these from the template call
 
for k, v in pairs (args) do -- copy named parameters and their values into citeq_args
if type( k ) == 'string' then -- numbered parameters ignored
citeq_args[k] = v;
end
end
args = frame.args; -- now get frame arguments (from the template wikisource)
 
for k, v in pairs (args) do -- copy args into citeq_args
Line 156 ⟶ 165:
end
end
 
if is_set (qid) then
if not is_set (citeq_args.author) and not is_set (citeq_args.author1) then -- if neither are set, try to get authors from wikidata