FANDOM


p = {}
 
function _convert(n) -- credit http://richard.warburton.it
	local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$')
	return left..(num:reverse():gsub('(%d%d%d%d)',' '):reverse())..right
end
 
function p.convert(frame)
    local args
    if frame == mw.getCurrentFrame() then
        args = frame.args
    else
        args = frame
    end
 
    local n = args.n
 
    return _convert(n)
 
end
 
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.