Content deleted Content added
local getValue |
tidy |
||
Line 164:
function citeq.cite_q (frame)
local citeq_args = {};
local qid;
local wdl;
local
local args =
args.publisher = getValue( {'P123', ps = 1, qid = args.qid, args.publisher } )▼
for k, v in pairs (args) do -- copy named parameters and their values into citeq_args▼
if type( k ) == 'string' then -- numbered parameters ignored▼
if 'unset' == v then▼
citeq_args[k] = ''; -- set the parameter to empty string; this may be used later to unset authors and editors▼
else▼
citeq_args[k] = v;▼
end▼
end▼
end▼
▲ args.publisher = getValue( {'P123', ps = 1, qid = args.qid } )
for k, v in pairs (args) do -- copy args into citeq_args
if
qid = v; -- save its value
elseif
wdl = v; -- save its value
else
Line 194 ⟶ 182:
end
end
▲ if type( k ) == 'string' then -- numbered parameters ignored
▲ citeq_args[k] = ''; -- set the parameter to empty string; this may be used later to unset authors and editors
▲ else
▲ citeq_args[k] = v;
▲ end
▲ end
▲ end
if is_set (qid) then
|