Module:Infobox: Difference between revisions
no edit summary
JarlPenguin (talk | contribs) (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...") |
FloofyPlasma (talk | contribs) No edit summary |
||
Line 243: | Line 243: | ||
local html = { | local html = { | ||
'<div class="notaninfobox">', | '<div class="notaninfobox">', | ||
'<div class=" | '<div class="bhwiki-header infobox-title">' .. titleArea .. '</div>', | ||
headerArea, | headerArea, | ||
'{| class="infobox-rows" cellspacing="1" cellpadding="4"', | '{| class="infobox-rows" cellspacing="1" cellpadding="4"', |