Category talk:Pages with reference errors

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

To remove all references and footnotes[edit]

Advanced toolbar

Uncyclopedia doesn't require the references present in Wikipedia articles. It's tedious to remove many manually, as when they're causing errors.

To remove all references and footnotes (along with typical reference sections) in one go, the MediaWiki search-and-replace tool MediaWiki search-and-replace tool icon accepts either of the following regular expressions (my composition):

Lite version
\{\{ *[Rr]ef *\|[^\}]*\}\}|<ref[^>]*>[^<]*</ref>|<ref[^/]*/>|\s+==+ *([Rr]eferences|[Ff]ootnotes|[Nn]otes) *==+\s+
Aggressive version
[\s\*]*\{\{ *([Rr]ef|[Vv]cite|[Cc]ite)[^\}]*\}\}|[\s\*]*<ref[^>]*>(<nowiki>[^<]*</nowiki>|<font>[^<]*</font>|<span>[^<]*</span>|<div>[^<]*</div>|<s>[^<]*</s>|<em>[^<]*</em>|<ins>[^<]*</ins>|<del>[^<]*</del>|<u>[^<]*</u>|<hr ?/?>|<br ?/?>|<!--[^>]+-->|[^<])*</ref>|[\s\*]*<ref[^/]*/>|[\s\*]*<cite[^>]*>[^<]*</cite>|[\s\*]*<cite[^/]*/>|\s+==+ *([Rr]eferences|[Ff]ootnotes|[Nn]otes) *==+\s+

This only works if "Treat search string as a regular expression" is ticked and the replacement field is left blank.

Caveats: unclosed references will not be discovered and removed; use the preview diff before saving lest something of value be "eaten". Dark Web, White Hat (talk) 07:08, 30 April 2022 (UTC)