Content deleted Content added
Fix invalid self-closed HTML tag or other HTML tag error |
Move from Module:Good Article subsection |
||
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 articles)</small>'
else
local linkList, count = mw.ustring.gsub(mw.text.trim(frame.args[1] or frame:getParent().args[1]), '\n', ' –\n')
return linkList .. '<small> (' .. (count + 1) .. ' article' .. ( (count ~= 0) and 's' or '') .. ')</small>'
end
end
|