模块:Gltd-Archive.lua:修订间差异
来自「荏苒之境」
创建页面,内容为“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>本…” |
无编辑摘要 |
||
第15行: | 第15行: | ||
<div style="border: 5px solid rgb(189, 189, 189); padding-bottom: 0.5em; background-color: rgb(80, 119, 86); color: white;"> | <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> | <h4 style="text-align: center;">${id}</h4> | ||
<p>本档案已被「荏苒之境」理事会锁定,权限级:${permission}。 | <p>本档案已被「荏苒之境」理事会锁定,权限级:${permission}。</p> | ||
</div> | </div> | ||
]], frame.args) | ]], frame.args) |
2025年7月30日 (三) 12:02的版本
此模块的文档可以在模块: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