Module:Infobox: Difference between revisions

287 bytes added ,  5 years ago
add per https://en.wikipedia.org/w/index.php?title=Template_talk:Infobox_musical_artist&oldid=849054481 see "two plain list" testcase
(infobox class not needed for subbox since the parent box will set the class (and causes problems on mobile))
(add per https://en.wikipedia.org/w/index.php?title=Template_talk:Infobox_musical_artist&oldid=849054481 see "two plain list" testcase)
Line 49:
end
end
-- the next two lines add a newline at the end of * lists for the PHP parser
-- https://en.wikipedia.org/w/index.php?title=Template_talk:Infobox_musical_artist&oldid=849054481
s = mw.ustring.gsub(s, '([\r\n]%*[^\r\n]*)$', '%1\n')
s = mw.ustring.gsub(s, '^(%*[^\r\n]*)$', '%1\n')
return s
else
Anonymous user