Content deleted Content added
Replace {{audio}} by its text parameter |
Dreamy Jazz (talk | contribs) remove math, chem and chem math |
||
Line 467:
text = mw.ustring.gsub(text, "<%s*[Rr][Ee][Ff].->.-<%s*/%s*[Rr][Ee][Ff]%s*>", "") -- remove refs
text = mw.ustring.gsub(text, "<%s*[Ss][Cc][Oo][Rr][Ee].->.-<%s*/%s*[Ss][Cc][Oo][Rr][Ee]%s*>", "") -- remove musical scores
text = mw.ustring.gsub(text, "<%s*(?:[Mm][Aa][Tt][Hh].->.-<%s*/%s*[Mm][Aa][Tt][Hh]%s*>", "") -- remove math
text = mw.ustring.gsub(text, "<%s*(?:[Cc][Hh][Ee][Mm].->.-<%s*/%s*[Cc][Hh][Ee][Mm]%s*>", "") -- remove chem
text = mw.ustring.gsub(text, "<%s*(?:[Cc][Hh][Ee][Mm][ ]*[Mm][Aa][Tt][Hh].->.-<%s*/%s*[Cc][Hh][Ee][Mm][ ]*[Mm][Aa][Tt][Hh]%s*>", "") -- remove chem math
text = mw.ustring.gsub(text, "<%s*[Ii][Mm][Aa][Gg][Ee][Mm][Aa][Pp].->.-<%s*/%s*[Ii][Mm][Aa][Gg][Ee][Mm][Aa][Pp]%s*>", convertImagemap) -- convert imagemaps into standard images
text = mw.ustring.gsub(text, "%b{}", striptemplate) -- remove unwanted templates such as references
|