打开/关闭搜索
搜索
打开/关闭菜单
17
79
35
2.1K
INFWiki
导航
百科首页
最近更改
随机页面
特殊页面
上传文件
人气页面
入服指南
回响地标
百科创作
介绍
语法
打开/关闭外观设置菜单
notifications
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
登录
查看“︁模块:InfoboxNeue/example”︁的源代码
来自INFWiki
查看
阅读
查看源代码
查看历史
associated-pages
模块
讨论
更多操作
←
InfoboxNeue/example
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
local p = {} local infobox = require( 'Module:InfoboxNeue' ):new() function p.makeComponentsExample() local sectionTable = {} infobox:renderImage( 'Pico at New Babbage 1 1.jpg' ) infobox:renderIndicator( { data = 'Indicator', desc = 'Indicator message', } ) infobox:renderHeader( { title = 'Title', subtitle = 'Subtitle' } ) sectionTable = { infobox:renderItem( { label = 'Item label', data = 'Item data' } ), infobox:renderItem( { label = 'Item label', data = 'Item data' } ), infobox:renderItem( { label = 'Item label', data = 'Item data' } ) } infobox:renderSection( { content = table.concat( sectionTable ), col = 2 } ) infobox:renderSection( { title = 'Section title', content = table.concat( sectionTable ), col = 3 } ) return infobox:renderInfobox() end function p.makeRowSection() local sectionTable = {} sectionTable = { infobox:renderItem( { label = 'Bacon', data = 'Good', row = true, spacebetween = true } ), infobox:renderItem( { label = 'Pancetta', data = 'Great', row = true, spacebetween = true } ), infobox:renderItem( { label = 'Prosciutto', data = 'Wonderful', row = true, spacebetween = true } ) } infobox:renderSection( { title = 'Row layout', subtitle = 'This is an example of the row layout.', content = table.concat( sectionTable ) } ) return infobox:renderInfobox() end function p.makeListSection() local sectionTable = {} sectionTable = { infobox:renderItem( { data = 'Bacon is good', desc = 'Bacon ipsum dolor amet burgdoggen boudin spare ribs pork pork chop drumstick beef. Jowl turkey pork, kevin shankle shank shoulder. ', } ), infobox:renderItem( { data = 'Pancetta is great', desc = 'Kevin pig fatback, alcatra pancetta sirloin venison tri-tip shankle kielbasa meatloaf spare ribs beef. Corned beef salami kielbasa tenderloin swine spare ribs andouille.', } ), infobox:renderItem( { data = 'Prosciutto is wonderful', desc = 'Venison chicken meatloaf, ground round swine short ribs shankle short loin tenderloin jerky capicola. Prosciutto venison sirloin beef brisket pancetta.', } ) } infobox:renderSection( { title = 'List layout', subtitle = 'This is an example of the list layout.', content = table.concat( sectionTable ) } ) return infobox:renderInfobox() end function p.makeGridSection() local sectionTable = {} sectionTable = { infobox:renderItem( { label = 'Bacon', data = 'Good' } ), infobox:renderItem( { label = 'Pancetta', data = 'Great' } ), infobox:renderItem( { label = 'Prosciutto', data = 'Wonderful' } ), infobox:renderItem( { label = 'Capicola', data = 'Delightful' } ) } infobox:renderSection( { title = '2 col grid layout', subtitle = 'This is an example of the two column grid layout.', content = table.concat( sectionTable ), col = 2 } ) infobox:renderSection( { title = '3 col grid layout', subtitle = 'This is an example of the three column grid layout.', content = table.concat( sectionTable ), col = 3 } ) infobox:renderSection( { title = '4 col grid layout', subtitle = 'This is an example of the four column grid layout.', content = table.concat( sectionTable ), col = 4 } ) return infobox:renderInfobox() end return p
该页面使用的模板:
InfoboxNeue/example/doc
(
查看源代码
)
返回
InfoboxNeue/example
。
查看“︁模块:InfoboxNeue/example”︁的源代码
来自INFWiki