打开/关闭搜索
搜索
打开/关闭菜单
通知
打开/关闭个人菜单
查看“帮助:Sandbox”的源代码
来自Cookie☆Wiki
查看
阅读
查看源代码
查看历史
associated-pages
帮助
讨论
更多操作
←
帮助:Sandbox
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
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">\ 不支持<nowiki><gallery></nowiki>语法</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 '' end for image_line in arg:gmatch('[^\r\n]+') do -- table.insert(lines, line) local sep = image_line:find(':') table.insert(images, { file = string.sub(image_line, 1, sep-1), title = string.sub(image_line, sep+1, -1) }) end return mw.dumpObject(images) --< debug end return p
本页使用的模板:
模板:Ambox
(
查看源代码
)
模板:Info
(
查看源代码
)
模板:Infobox/frame
(
查看源代码
)
模板:Infobox/group
(
查看源代码
)
模板:Infobox/item/data
(
查看源代码
)
模板:Infobox/item/image
(
查看源代码
)
模板:Infobox/item/multidata
(
查看源代码
)
模板:Infobox/item/single image
(
查看源代码
)
模板:信息
(
查看源代码
)
模板:字
(
查看源代码
)
模块:Infobox/item/image
(
查看源代码
)
模块:Infobox/item/multidata
(
查看源代码
)
返回
帮助:Sandbox
。