模块:Gltd-Archive.lua
来自「荏苒之境」
此模块的文档可以在模块:Gltd-Archive.lua/doc创建
local archive = {}
function interp(s, tab)
return s:gsub('($%b{})', function(w)
return tab[w:sub(3, -2)] or w
end)
end
archive.show = function(frame)
local id = frame.args.id
local permission = frame.args.permission
local event_group = frame.args.event_group
return interp([[
<div style="border: 5px solid rgb(189, 189, 189); padding-bottom: 0.5em; background-color: rgb(80, 119, 86); color: white;">
<h4 style="text-align: center;">${id}</h4>
<p>本档案已被「荏苒之境」理事会锁定,权限级:${permission}。</p>
</div>
]], frame.args)
end
return archive