Module:WikidataIB/sandbox1: Difference between revisions

Content deleted Content added
need to look for non-breaking spaces as well for date separator
implement assembleoutput using 2 new parameters: qsorted and qsep
Line 509:
["unitabbr"] = tostring(uabbr),
["maxvals"] = 0,
["sorted"] = tostring(args.qsorted or "false"),
["noicon"] = "true",
["list"] = "",
["sep"] = tostring(args.qsep or "")
}
if qualID == "DATES" then qargs.maxvals = 1 end
Line 538 ⟶ 542:
-- *** internationalise date separators later ***
if t:find("%s") or t:find(" ") then dsep = " – " else dsep = "–" end
-- *** implement assembleoutput later ***
if #qlist > 0 then
local qstr = assembleoutput(out, qargs)
out[#out] = out[#out] .. " (" .. table.concat(qlist, ", ") .. ")"
elseif t > "" then