Module:AutoUploadedFileDescription

local p = {}

-- Display the standard "information about image" for images that were automatically uploaded -- by the bot (such as ). -- Usage:. -- This module doesn't need any parameters (it guesses everything from title of the page). function p.Main local title = mw.title.getCurrentTitle if title ~= 6 then -- Not in the File: namespace. return '' end

local filename = title.text local iconItemId = string.match( filename, 'Item_icon_(.*).png' ) if iconItemId then -- Inventory icon. return '' end

-- TODO: here we can later add icons of research nodes, etc.

return '' end

return p