模块:Gltd-Archive.lua

来自「荏苒之境」
Sicusa留言 | 贡献2025年7月30日 (三) 11:57的版本 (创建页面,内容为“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>本…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

此模块的文档可以在模块: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}。
</div>
]], frame.args)
end

return archive