Jump to content

Module:AWBVersions

From Wikipedia, the free encyclopedia

local p = {}

function p.main( frame )
    local decoded = mw.loadJsonData( 'Wikipedia:AutoWikiBrowser/CheckPage/VersionJSON' )
    local output = ''
    for i, v in ipairs(decoded.enabledversions) do
    	output = output .. '* ' .. v.version
    	if v.dev then
    		output = output .. ' (svn)'
    	end
    	output = output .. '\n'
    end
    
    return output
end

return p