更多操作
因为以下原因,您没有权限编辑该页面:
您可以查看和复制此页面的源代码。
local p = {}
function p.make()
local frame = mw.getCurrentFrame()
local parent = frame:getParent()
local arg = parent.args['image']
if arg ~= nil then --< 单张图片
if string.byte(arg, 1) == 127 then
return '<span style="font-size: 24px; color: red">\
不支持<gallery>语法</span>\
[[Category: 含有在信息框中使用了旧的画廊语法的页面]]'
end
return frame:expandTemplate{ title = 'Infobox/item/single image', args = {
image = arg, caption = parent.args['caption']
} }
end
arg = parent.args['gallery']
if arg == nil then --< 根本没有图片
return ''
000
1:0
该页面使用的模板: