Module:Good Articles: Difference between revisions

Content deleted Content added
m For some idiotic reason I can't seem to access args[1] etc. Trying this out of ... frustration.
bad, ahem, logic
Line 49:
local title = args['title' .. tostring(section)]
if (not title) then
if (text == '') then break end -- no more sections
end break
else
local wrap = false
output = output .. text -- sections without headers go in unwrapped
end
else
local wrap = false
output = output .. text
end
if wrap then
local image = args['image' .. tostring(section)]
local text = mw.ustring.gsub(text, "(==.-)\n%f[=]", replace)
Line 69 ⟶ 70:
==­ ==
]===] .. text .. sectionfooter
else end
output = output .. text -- sections without headers go in unwrapped
end
until false
return output