Module:Excerpt: Difference between revisions

Content deleted Content added
Do not try to append paragraphs whose numbers which exceed the number actually present
Get rid of more ref and footnote templates
Line 27:
end
 
textfor =_, mw.ustring.gsub(textt in pairs {"[Ee]fn", "{{%s*[Ee]fn%s*|.-}}la", "[Ee]l[mn]"), "[Rr]", "[Ss]fn[bp]", "[Ss]fb"} do -- remove {{efn|footnote}}refs and footnotes
text = mw.ustring.gsub(text, "{{%s*[Ee]fn-la" .. t .. "%s*|.-}}", "") -- {{efn-la}} alias for {{efn}}
end
text = mw.ustring.gsub(text, "{{%s*[Ee]l[mn]%s*|.-}}", "") -- {{elm}} and {{eln}} alias for {{efn}}
text = mw.ustring.gsub(text, "<%s*ref[^>]-/%s*>", "") -- remove refs cited elsewhere
text = mw.ustring.gsub(text, "<%s*ref.->.-<%s*/%s*ref%s*>", "") -- remove refs