Module:Cite Q/sandbox: Difference between revisions

Content deleted Content added
as per Template talk:Cite Q, prefer author name string over Wikidata label auf author entity, if we have both (e.g., maiden name on a paper, when author changed name later)
implement suppression of editor field
Line 160:
{{citation}} for rendering.
 
Set suppress=editor to suppress fetching editor from Wikidata
]]
 
Line 193 ⟶ 194:
end
 
if not is_set (citeq_args.editor)
and not is_set (citeq_args.editor1)
and (citeq_args.suppress or ""):lower() ~= then"editor" -- if neither are set, try to get editors from wikidata
then
get_name_list ('editor', citeq_args, qid, wdl); -- modify citeq_args table with editors from wikidata
end
end
citeq_args.suppress = nil -- don't pass to Template:Citation
 
return frame:expandTemplate{title = 'citation', args = citeq_args}; -- render the citation