Module:AWBVersions

MyWikiBiz, Author Your Legacy — Friday November 22, 2024
Revision as of 18:13, 8 July 2021 by Zoran (talk | contribs) (Moved page from wikipedia:en:Module:AWBVersions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Lua error in mw.title.lua at line 322: bad argument #1 to 'makeTitle' (unrecognized namespace name 'Wikipedia').

Pulls data from Wikipedia:AutoWikiBrowser/CheckPage/VersionJSON


local p = {}

function p.main( frame )
    local version = mw.title.makeTitle( 'Wikipedia', 'AutoWikiBrowser/CheckPage/VersionJSON' )
    
    local decoded = mw.text.jsonDecode( version:getContent() )
    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