Module:AWBVersions: Difference between revisions
Appearance
Content deleted Content added
dev |
\n |
||
Line 11: | Line 11: | ||
output = output .. ' (svn)' |
output = output .. ' (svn)' |
||
end |
end |
||
output = output .. ' |
output = output .. '\n' |
||
end |
end |
||
Revision as of 02:51, 17 September 2018
- 6.4.0.1 (svn)
- 6.4.0.0
- 6.3.1.1
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