「Module:PageTemplate」與「File:Zuozheshengmingyuanwen.png」:頁面間的差異

(頁面間的差異)
跳至導覽 跳至搜尋
移除 620 位元組 、​ 2022年11月20日 (星期日)
Maintenance script上传File:Zuozheshengmingyuanwen.png
imported>一个人的孤独
(创建页面,内容为“local module = {} local getArgs = require('Module:Arguments').getArgs function module._main(args, frame) if args['define'] ~= nil then return end local tl = args…”)
 
(Maintenance script上传File:Zuozheshengmingyuanwen.png
標籤服務器端上傳
 
行 1: 行 1:
local module = {}


local getArgs = require('Module:Arguments').getArgs
function module._main(args, frame)
if args['define'] ~= nil then return end
local tl = args['tl'] or ''
if tl == '' then
error('未定义“'..(args['use'] or '')..'”模板!')
return
end
tl = mw.text.unstripNoWiki(tl)
tl = mw.text.decode(tl)
local params = args
params['tl'] = nil
params['use'] = nil
local frame_child = frame:newChild({args = params})
return frame_child:preprocess(tl)
end
function module.main(frame)
local args = getArgs(frame, { removeBlanks = false })
return module._main(args, frame)
end
return module
94

次編輯

導覽選單