Module:User:Erutuon/translations

local export = {}

function export.show_fast(frame) local params = { [1] = {required = true, default = "und"}, [2] = {},		[3] = {list = true}, ["alt"] = {}, ["id"] = {}, ["sc"] = {}, ["tr"] = {}, ["lit"] = {}, }   local args = require("Module:parameters").process(frame:getParent.args, params) local scCode = args["sc"] if scCode then local validScripts = mw.loadData("Module:scripts/codes") if not validScripts[scCode] then error('The script code "' .. scCode .. '" is not valid.') end end local terminfo = { lang = require("Module:languages").getByCode(args[1]) or error("The language code \"" .. args[1] .. "\" is not valid."), sc = scCode, term = args[2] or (mw.title.getCurrentTitle.nsText == "Template" and "term") or nil, alt = args["alt"], id = args["id"], genders = args[3], tr = args["tr"], lit = args["lit"], interwiki = frame.args["interwiki"], } end

return export