Module:languages: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 396: Line 396:
end
end
return require((mw.ustring.match(m, "$w:") and "w:" or "") .. "Module:"
return require((mw.ustring.match(m, "$wikt:") and "wikt:" or "") .. "Module:"
.. (module_override or (mw.ustring.match(m, "$w:") and mw.ustring.sub(m, 3) or m))).tr(text, self:getCode(), sc and sc:getCode() or nil)
.. (module_override or (mw.ustring.match(m, "$wikt:") and mw.ustring.sub(m, 6) or m))).tr(text, self:getCode(), sc and sc:getCode() or nil)
end
end