跳转到内容

模組:Unblock-zh backlog statistics

维基百科,自由的百科全书
local p = {}

local JSONObject = require('Module:JSONObject')

function p.linksList(frame)
	local page = mw.title.new( 'Template:Unblock-zh backlog statistics/data.json' )
	local content = page:getContent()
	local object = mw.text.jsonDecode( content )
	local result = ''
	for k, v in pairs(object['links']) do
		result = result .. '* ' .. v['date'] .. ' ' .. v['link'] .. '\n'
	end
	return result
end

return p