Module:Sandbox

--Hey, this is a sandbox for Lua! --Be careful :O

local f = {}

function f.main(frame) local description = frame.args["description"] or "No description provided Caregory:Files lacking description" local type = mw.ustring.lower(frame.args["type"] or "") local source = frame.args["source"] or "No source specified " local result = {} local t = { audio, song, music, sound = "Audio ", audio, audio, audio, photo, photograph, photography = "Photograph ", photo, photo, sprite, spritesheet, ['sprite sheet'] = "Sprite ", sprite, sprite, screenshot, printscreen, prtscr, ['screen shot'] = "Screenshot ", screenshot, screenshot, screenshot, map = "Map ", flag = "Flag ", art, artwork, ['art work'] = "Official artwork ", art, fanart, fanartowrk, ['fan art'] = "Fanart ", fanart, fanart, fanart, logo, logotype, logomark, wordmark = "Logotype ", logo, logo, logo, video, film, movie, short = "Video ", video, video, video, scan, magazine = "Scan ", scan, vector, svg = "Vector graphic ", vector }	 type = t[type] or "No type specified. " table.insert(result, 'DESC:'.. description .. ' / TYPE:'.. type ..' / SRC:'.. source..'') table.insert(result, ' File information  ') return table.concat(result, "") end

return f