Module:headword: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 885: Line 885:
local auto_scs = data.lang:getScripts()
local auto_scs = data.lang:getScripts()
for _, auto_sc in ipairs(auto_scs) do
if #auto_scs > 1 then
if auto_sc:getCode() == find_best_script_without_lang(head.term):getCode() then
for _, sc in ipairs(auto_scs) do
break
if sc == find_best_script_without_lang(head.term):getCode() then
local auto_sc = require("Module:scripts").getByCode(sc)
break
end
end
end
else
local auto_sc = require("Module:scripts").getByCode(auto_scs[1])
end
end

Navigation menu