author count, compare numbers to numbers

This commit is contained in:
Trappist the monk 2026-10-19 13:27:57 +13:00 • committed by Jonathan Harker
parent 0f2ae4f34d
commit 746e3a3947

View file

@ -826,7 +826,7 @@ local function _cite_q (citeq_args)
local missing_names = {} local missing_names = {}
for i, author in pairs(names.authors or {}) do for i, author in pairs(names.authors or {}) do
-- mw.logObject(author) -- mw.logObject(author)
if not author.last and i <= (citeq_args['display-authors'] or author_count) then if not author.last and i <= (tonumber (citeq_args['display-authors']) or tonumber (author_count)) then
if author.qid then if author.qid then
-- ignore anonymous -- ignore anonymous
if author.qid ~= 'Q4233718' then if author.qid ~= 'Q4233718' then