Module:TranslateForInfoboxes

local p = {} function p.data( f ) local args	= {} local alias	= f:getParent.args[1] local qArgs = 0 for key, val in pairs(f:getParent.args) do		qArgs = qArgs + 1 end qArgs = qArgs - 1 for i = 1, qArgs do		args[i] = f:getParent.args[i+1] end return p.link(alias, args, qArgs) end

function p.link( tn, args, qArgs ) if tn == nil then return '' end

local aliases = mw.loadData('Module:TranslateForInfoboxes/aliases') if aliases[tn] == nil then return 'alias not found' end local alias = aliases[tn] for i = 1, qArgs do		alias = mw.ustring.gsub(alias, "$"..i, args[i]) end

return alias end return p