全站通知:

模块:Test

来自星露谷物语维基
跳到导航 跳到搜索
[ 创建 | 刷新 ]文档页面
当前模块文档缺失,需要扩充。
-- crashfever 复制的,用于性能测试

local p = {}

-- 加载 JSON 数据
local jsonPage = mw.title.new('模块:Sprites/data/Abigail.json')
if not jsonPage or not jsonPage.exists then
    return { main = function() return "" end }
end

local jsonContent = jsonPage:getContent()
local success, data = pcall(mw.text.jsonDecode, jsonContent)
if not success then
    return { main = function() return "" end }
end

function p.main(frame)
    -- do nothing
end

return p