打开/关闭搜索
搜索
打开/关闭菜单
3
12
3
265
卡特霍普
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
上传文件
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
登录
查看“︁模块:Infobox”︁的源代码
来自卡特霍普
查看
阅读
查看源代码
查看历史
associated-pages
模块
讨论
更多操作
←
模块:Infobox
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local capiunto = require 'capiunto' local p = {} function p.main(frame) local args = frame:getParent().args local retval = capiunto.create( { title = args.title, top = args.top, bottom = args.bottom, } ) if args.subtitle and args.subtitle ~= '' then retval:addSubHeader( args.subtitle ) end if args.image1 and args.image1 ~= '' then retval:addImage( args.image1, args.caption1 ) end if args.image2 and args.image2 ~= '' then retval:addImage( args.image2, args.caption2 ) end if args.header1 and args.header1 ~= '' then retval:addHeader( args.header1 ) end if args.data1 and args.data1 ~= '' then retval:addRow( args.label1, args.data1 ) end if args.header2 and args.header2 ~= '' then retval:addHeader( args.header2 ) end if args.data2 and args.data2 ~= '' then retval:addRow( args.label2, args.data2 ) end if args.header3 and args.header3 ~= '' then retval:addHeader( args.header3 ) end if args.data3 and args.data3 ~= '' then retval:addRow( args.label3, args.data3 ) end if args.header4 and args.header4 ~= '' then retval:addHeader( args.header4 ) end if args.data4 and args.data4 ~= '' then retval:addRow( args.label4, args.data4 ) end if args.header5 and args.header5 ~= '' then retval:addHeader( args.header5 ) end if args.data5 and args.data5 ~= '' then retval:addRow( args.label5, args.data5 ) end if args.header6 and args.header6 ~= '' then retval:addHeader( args.header6 ) end if args.data6 and args.data6 ~= '' then retval:addRow( args.label6, args.data6 ) end if args.header7 and args.header7 ~= '' then retval:addHeader( args.header7 ) end if args.data7 and args.data7 ~= '' then retval:addRow( args.label7, args.data7 ) end if args.header8 and args.header8 ~= '' then retval:addHeader( args.header8 ) end if args.data8 and args.data8 ~= '' then retval:addRow( args.label8, args.data8 ) end if args.header9 and args.header9 ~= '' then retval:addHeader( args.header9 ) end if args.data9 and args.data9 ~= '' then retval:addRow( args.label9, args.data9 ) end if args.header10 and args.header10 ~= '' then retval:addHeader( args.header10 ) end if args.data10 and args.data10 ~= '' then retval:addRow( args.label10, args.data10 ) end return retval end return p
该页面使用的模板:
模块:Infobox/doc
(
查看源代码
)
返回
模块:Infobox
。