Module:Excerpt slideshow/sandbox: Difference between revisions

Content deleted Content added
Undid revision 1135536890 by Aidan9382 (talk) - Gonna implement this within Module:Excerpt/portals instead
sync to live
Line 110:
return frame:preprocess(t)
end
-- else replace pipes and remove internal linebreaks
return mw.ustring.gsub(t, '\n*', '')
end
Line 117:
-- strip galleries
excerpt = mw.ustring.gsub(excerpt, "<%s*[Gg]allery.->.-<%s*/%s*[Gg]allery%s*>", "")
-- strip tables and block templates; strip newlines and replace pipes within inline templates
excerpt = mw.ustring.gsub(excerpt..'\n', '\n?%b{}\n?', processBraces)
-- replace wikitext bulleted lists with html bulleted lists