Module:Infobox: Difference between revisions

no edit summary
(Created page with "local p = {} function p.infobox( f ) local args = require( 'Module:ProcessArgs' ).merge( true ) local titleObject = mw.title.getCurrentTitle() local title = args.title or titleObject.baseText local subtitle = args.subtitle or '' local template = f:getParent():getTitle():lower():gsub( 'template:', '' ):gsub( 'infobox ', '' ) local headerArea = '' local json = { images = {}, invimages = {}, rows = {} } local titleArea = args.titlearea if not titleArea t...")
 
No edit summary
 
Line 243: Line 243:
local html = {
local html = {
'<div class="notaninfobox">',
'<div class="notaninfobox">',
'<div class="mcwiki-header infobox-title">' .. titleArea .. '</div>',
'<div class="bhwiki-header infobox-title">' .. titleArea .. '</div>',
headerArea,
headerArea,
'{| class="infobox-rows" cellspacing="1" cellpadding="4"',
'{| class="infobox-rows" cellspacing="1" cellpadding="4"',