Content deleted Content added
Fix: ensure multiple templates are removed from start. |
Remove footnotes {{efn|not valid in Tennessee}} etc. |
||
Line 14:
text=mw.ustring.gsub(text,"^%A-%b{}%s*","") -- remove infoboxes, hatnotes, tags, etc. from the front
until text==oldtext
text=mw.ustring.gsub(text,"{{%s*[Ee]fn%s*|.-}}","") -- remove {{efn|footnote}}
text=mw.ustring.gsub(text,"{{%s*[Ee]fn-la%s*|.-}}","") -- {{efn-la}} alias for {{efn}}
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
|