Module:History

local p = {}

function p.main(frame) local args = require("Dev:Arguments").getArgs(frame) local result = {} local update local s, e, text if args['collapsed'] and (args['collapsed'] == 'yes') then table.insert(result, '{| class="mw-collapsible mw-collapsed" style="width:100%;" data-expandtext="Show History" data-collapsetext="Hide list" \n|+ \n|' ) end table.insert(result, '') for i,v in ipairs(args) do		update = string.match(v, '[0-9%.]+') s, e = string.find(v, update, 1, plain) update =  .. update ..  text = string.sub(v, 1, s-1) .. update .. string.sub(v, e+1) table.insert(result, '' .. text .. '') end table.insert(result, '') if args['collapsed'] and (args['collapsed'] == 'yes') then table.insert(result, '|}') end return table.concat(result, '\n') end

return p