Module:Engvar: Difference between revisions

Content deleted Content added
Created page with '-- This module implements template:Engvar. -- The defaultWord is returned, unless the engvar input hits on an existing variant (en-XX) word. local p = {} local g...'
 
No edit summary
Line 5:
local gsub = string.gsub
 
function p.echovariants(frame)
local args = getArgs(frame)
return p._echo_variants(args)
end
 
function p._echo_variants(args)
local returnWord = nil
 
Line 63:
local useLang = engvarLang(args.engvar or '')
table.insert(ret, 5, 'Engvar code: >' .. (useLang or '') .. '<.\n\n:')
return p._echo_variants(args) .. table.concat(ret)
end