Module:Cite Q/sandbox: Difference between revisions

Content deleted Content added
populate language from journal
Ederporto (talk | contribs)
Adding a bit of code for editors
Line 326:
if author_count > 8 then -- convention in astronomy journals
citeq_args['display-authors'] = citeq_args['display-authors'] or 3
end
local editor_count = 0
for k, v in pairs(citeq_args) do
if k:find("^editor%d+$") then
editor_count = editor_count + 1
end
end
if editor_count > 8 then -- convention in astronomy journals
citeq_args['display-editors'] = citeq_args['display-editors'] or 3
end