Module:Good Articles: Difference between revisions

Content deleted Content added
Fix invalid self-closed HTML tag or other HTML tag error
Line 74:
until false
return output
end
 
function p.subsection(frame)
if not mw.ustring.find( (frame.args[1] or frame:getParent().args[1] or '') ,'[[',1,true) then
return '<small>(0&nbsp;articles)</small>'
else
local linkList, count = mw.ustring.gsub(mw.text.trim(frame.args[1] or frame:getParent().args[1]), '\n', '&nbsp;–\n')
return linkList .. '<small>&nbsp;&nbsp;(' .. (count + 1) .. '&nbsp;article' .. ( (count ~= 0) and 's' or '') .. ')</small>'
end
end