Module:Infobox: Difference between revisions

Add 0th section edit link
Remove 0th edit section. Despite the edit links already all over the page, this one in particular seems to be an idiot magnet. It also didn't work for the few infoboxes that weren't in the 0th section.
Line 109: Line 109:
local html = {
local html = {
'<div class="notaninfobox">',
'<div class="notaninfobox">',
'<div class="infobox-title mcwiki-header"><span class="editsection">[[' ..
'<div class="mcwiki-header infobox-title">' .. title .. '</div>',
tostring( mw.uri.fullUrl( titleObject.fullText, { action = 'edit', section = 0 } ) ) .. ' edit' ..
']]</span>' .. title .. '</div>',
imageArea,
imageArea,
'{| class="infobox-rows" cellspacing="1" cellpadding="4"',
'{| class="infobox-rows" cellspacing="1" cellpadding="4"',