Module:TileRename

local p = {}

function p.rename( f ) local args = f.args or f   if f == mw.getCurrentFrame and args[1] == nil then args = f:getParent.args else f = mw.getCurrentFrame end args = require( Module:ProcessArgs ).norm( args ) local renamed = require( Module:Grid/Renames )[args[1]]; if renamed then return renamed else return args[1] end end

function p.getCategory( f ) local args = f.args or f   if f == mw.getCurrentFrame and args[1] == nil then args = f:getParent.args else f = mw.getCurrentFrame end args = require( Module:ProcessArgs ).norm( args ) local renamed = require( Module:Grid/Renames )[args[1]]; if renamed then return [=[]=] else return '' end end

return p