Jump to content

Module:AWBVersions

ຈາກ ວິກິພີເດຍ
Revision as of 06:23, 30 ຕຸລາ 2022 by Ekminarin(ສົນທະນາ | ເລື່ອງທີ່ຂຽນ) (ໜ້າໃໝ່: 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)
(ສ່ວນຕ່າງ) ← ລຸ້ນເກົ່າກວ່າ | ສະບັບປະຈຸບັນ (ສ່ວນຕ່າງ) | ສະບັບກ່ອນ → (ສ່ວນຕ່າງ)

Documentation for this module may be created at Module:AWBVersions/doc

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