Module:SpriteFile: Difference between revisions
No edit summary |
No edit summary |
||
| Line 26: | Line 26: | ||
local id = mw.text.trim(tostring(args[1] or "")) | local id = mw.text.trim(tostring(args[1] or "")) | ||
local ext = (args.ext or default.ext):gsub("^%.", "") | local ext = (args.ext or default.ext):gsub("^%.", "") | ||
local name = | local name = default.modid | ||
local file = (id == "" and "Grid Unknown.png") or (name .. " " .. id .. "." .. ext) | local file = (id == "" and "Grid Unknown.png") or (name .. " " .. id .. "." .. ext) | ||