local wdl;
localfor pargsk, =v in pairs(frame:getParent().args -- first get parent frame arguments - these from the template) calldo
citeq_args[k] = v
local args = frame.args; -- now get frame arguments (from the template wikisource)
for k, v in pairs(frame.args) do
args.publisher = getValue( {'P123', ps = 1, qid = args.qid, args.publisher } ) ▼
citeq_args[k] = v
for k, v in pairs (args) do -- copy args into citeq_args
if k == 'qid' then -- don't copy qid
qid = v; -- save its value
elseif k == 'wdlinks' then -- don't copy wdlinks ▼
wdl = v; -- save its value
else
citeq_args[k] = v -- but copy everything else
end
▲ argsciteq_args.publisher = getValue( {'P123', ps = 1, qid = argsciteq_args.qid, argsciteq_args.publisher } )
for k, v in pairs (pargs) do -- copy named parameters and their values into citeq_args
if type( k ) == 'string' then -- numbered parameters ignored
for k, v in pairs(citeq_args) do
if k == 'qid' then
citeq_args[k] = ''; -- set the parameter to empty string; this may be used later to unset authors and editors
elseqid = v
citeq_args[k] = v;nil
▲ elseif k == 'wdlinks' then -- don't copy wdlinks
wdl = v
citeq_args[k] = nil
citeq_args[k] = nil
end
end
if is_set (qid) then
|