Content deleted Content added
translator doesn't go in others |
Adamant.pwn (talk | contribs) making others into loop |
||
Line 32:
pages = {id="P304", maxvals=1},
translator = {id="P655", maxvals=0}, -- does **not** go to "others" section!
illustrator = {id="P110", maxvals=0, others=1}, -- goes to "others" section
composer = {id="P86", maxvals=0, others=1}, -- goes to "others" section
animator = {id="P6942", maxvals=0, others=1}, -- goes to "others" section
director = {id="P57", maxvals=0, others=1}, -- goes to "others" section
screenwriter = {id="P58", maxvals=0, others=1}, -- goes to "others" section
}
Line 213:
end
for name, data in pairs(simple_properties) do
citeq_args[name] = getValue( {data.id, ps = 1, qid = citeq_args.qid, maxvals=data.maxvals, linked=data.linked, citeq_args[name] } )
oth[#oth+1] = citeq_args
end
citeq_args.journal = citeq_args.journal and citeq_args.journal:gsub("^''", ""):gsub("''$", "")
citeq_args.ol = (getValue( {"P648", ps = 1, qid = citeq_args.qid, maxvals=1, citeq_args.ol } ) or ''):gsub("^OL(.+)$", "%1")
▲ end
▲ if not citeq_args.others then
▲ local oth = {}
▲ oth[#oth+1] = citeq_args.composer and ("Composer: " .. citeq_args.composer)
▲ citeq_args.others = table.concat(oth, ". ")
▲ citeq_args.composer = nil
citeq_args.isbn = getValue( {"P957", ps = 1, qid = citeq_args.qid, maxvals=0, citeq_args.isbn } ) -- try ISBN 10
|