Module:sish-headword: Difference between revisions

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 125: Line 125:


local sc = lang:findBestScript(pagename)
local sc = lang:findBestScript(pagename)
data.sc = sc == "None" and "sish-Armn" or sc
local other_sc
local other_sc
if sc:getCode() == "Latn" then
if sc:getCode() == "Latn" then
other_sc = "Armn"
other_sc = "sish-Armn"
elseif sc:getCode() == "Armn" then
elseif sc:getCode() == "sish-Armn" then
other_sc = "Latn"
other_sc = "Latn"
end
end