Module:Excerpt: Difference between revisions

Content deleted Content added
Get rid of more ref and footnote templates
Remove files and images. Remove initial white space rather than seeking bold text.
Line 32:
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
text = mw.ustring.gsub(text, "%[%[%s*[Ff]ile%s*:%C*%]%]", "") -- remove files
text = mw.ustring.gsub(text, "%[%[%s*[Ii]mage%s*:%C*%]%]", "") -- remove images
 
text = mw.ustring.matchgsub(text, "^%C*'''.s*", "") or text -- startremove at the first line with bold text,initial ifwhite anyspace
return text
end