更多操作
因为以下原因,您没有权限编辑该页面:
您可以查看和复制此页面的源代码。
local p = {}
function p.make()
local frame = mw.getCurrentFrame()
local parent = frame:getParent()
local arg = parent.args['image']
if string.byte(arg, 1) == 127 then --< 参数可能是 <gallery>…</gallery>
return arg
-- arg = string.sub(arg, 2, -1)
-- pattern = '^%s*<gallery>.*</gallery>%s*$'
-- old_arg = arg
-- arg = string.match(arg, pattern)
-- if arg == nil then
-- error('The image argument of this template (module) must be a file name in plain text or a <gallery> element. Test:' .. mw.text.unstrip(parent.args['image']))
-- end
-- images = {}
-- for image_line in arg:gmatch('[^\r\n]+') do
-- -- table.insert(lines, line)
-- local sep = image_line:find('|')
-- table.insert(images, {
000
1:0
该页面使用的模板: