Module:headword: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 883: Line 883:
------    otherwise fall back to the overall script if given. If neither given, autodetect the script.
------    otherwise fall back to the overall script if given. If neither given, autodetect the script.


local auto_sc = data.lang:findBestScript(head.term)
local auto_scs = data.lang:getScripts()
for _, auto_sc in ipairs(auto_scs) do
if auto_sc:getCode() == find_best_script_without_lang(head.term):getCode() then
break
end
end
if (
if (
auto_sc:getCode() == "None" and
auto_sc:getCode() == "None" and

Navigation menu