打开/关闭搜索
搜索
打开/关闭菜单
1.4K
10.8K
87
31.3K
Cookie☆Wiki
导航
首页
alt-z
最近更改
alt-r
随机页面
alt-x
帮助
沙盒
特殊页面
alt-q
上传文件
alt-u
常用
曲奇简介
用语列表
人物一览
曲奇团体
曲奇年表
本篇列表
榜单列表
专辑列表
创作
音MAD
曲奇静画
曲奇实况
曲奇素材
BB剧场
漫画
同人游戏
曲奇实况
与曲奇有交集的内容
淫梦
东方Project
漫画日本昔话
biim兄贵致敬
QVC福岛
哲♂学
创价
YouTuber
恒心教
VOCALOID
运营批判
友情链接
Cookie☆贴吧
真夏夜的银梦贴吧
中文音MAD维基
潮学维基
银饼视频搜索站
中文曲奇维基Fandom站[已弃用]
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
alt-o
查看“︁模块:Infobox/item/image”︁的源代码
来自Cookie☆Wiki
查看
阅读
查看源代码
查看历史
associated-pages
模块
讨论
更多操作
←
模块:Infobox/item/image
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
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> arg = string.sub(arg, 2, -1) pattern = '^<gallery>.*</gallery>$' 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') end images = {} 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 else --< 参数是图片名 return frame:expandTemplate{ title = 'Infobox/item/single image', args = { image = arg, caption = parent.args['caption'] } } end end return p
该页面使用的模板:
模块:Infobox/item/image/doc
(
查看源代码
)
返回
模块:Infobox/item/image
。