模块:Infobox:修订间差异
外观
创建页面,内容为“local p = {} function p.main(frame) local args = frame:getParent().args local html = mw.html.create('table'):addClass('infobox') -- 顶部标题(可选:title + image) if args.title then local topRow = html:tag('tr'):tag('th'):attr('colspan', '2'):addClass('infobox-title') if args.image then topRow:tag('img') :attr('src', args.image) :attr('alt', args.title) :css(…” |
页面内容被替换为“local p = {} function p.main(frame) return "Hello World" end return p” 标签:替换 已被回退 |
||
| 第1行: | 第1行: | ||
local p = {} | local p = {} | ||
function p.main(frame) | function p.main(frame) | ||
return "Hello World" | |||
return | |||
end | end | ||
return p | return p | ||
2025年9月16日 (二) 00:56的版本
此模块的文档可以在模块:Infobox/doc创建