Module:Cite Q/sandbox: Difference between revisions

Content deleted Content added
typo
tidy up others
Line 220:
citeq_args.biorxiv = "10.1101/" .. citeq_args.biorxiv
end
-- best way to make a list is to use a table
oth = {}
citeq_args.othersoth[#oth+1] = (citeq_args.others or "")
..oth[#oth+1] = (citeq_args.illustrator and ("Illustrator: " .. citeq_args.illustrator or "")
..oth[#oth+1] = (citeq_args.composer and ("Composer: " .. citeq_args.composer or "")
-- any more go here
citeq_args.others = table.concat(oth, ", ")
--[[
citeq_args.others = (citeq_args.others or "")
.. (citeq_args.illustrator and "Illustrator:" .. citeq_args.illustrator or "")
.. (citeq_args.composer and "Composer:" .. citeq_args.composer or "")
--]]
if not citeq_args.others then
if citeq_args.illustrator then
Line 239 ⟶ 242:
end
end
--]]
citeq_args.isbn = getValue( {"P957", ps = 1, qid = citeq_args.qid, maxvals=0, citeq_args.isbn } ) -- try ISBN 10