Module:Sprite: Difference between revisions

Maybe this isn't possible?
No edit summary
Line 88: Line 88:
local pos = ids[id] or ids[id:lower():gsub( '%s', '-' )]
local pos = ids[id] or ids[id:lower():gsub( '%s', '-' )]
if not pos then
if not pos then
category = f:preprocess( '<noinclude>[[Category:Pages with missing sprites]]</noinclude>' )
category = mw.getCurrentFrame():preprocess( '<noinclude>[[Category:Pages with missing sprites]]</noinclude>' )
end
end
args.pos = pos
args.pos = pos