Module:Translation

-- @author: UltimateSupreme local p = {} local yn = require( 'Module:Yesno' ) local err = require( 'Module:Error' )

-- Check if the arg exists -- If yes, append it to the text local function append(arg, text) if yn(arg) then return text .. ', ' .. arg end return '' end

function p.main(frame) local args = frame:getParent.args

if not yn(args[1]) then return err("Provide an official name") end

local text = args[1] for i = 2, 4, 1 do text = append(args[i], text) end text = append(args.eng, text) text = append(args.latin, text) text = append(args.funi, text) text = append(args.viz, text) text = append(args.engtv, text) text = append(args.ukdvd, text) text = append(args.fansub, text) text = append(args["lit meaning"], text) text = append(args["viz meaning"], text) text = append(args["engtv meaning"], text)

end return p

--