NovemLinguae / UserScripts

Novem Linguae's Wikipedia user scripts
https://en.wikipedia.org/wiki/User:Novem_Linguae/Templates/Scripts
3 stars 1 forks source link

nested templates mess up {{GA nominee|status= detection #209

Open NovemLinguae opened 7 months ago

NovemLinguae commented 7 months ago

Reported by Mike Christie at https://en.wikipedia.org/wiki/User_talk:Novem_Linguae/Scripts/GANReviewTool#Possible_bug_in_the_GANReviewTool

Diff showing error. Notice that status is added for a 2nd time, instead of updating the existing status: https://en.wikipedia.org/w/index.php?title=Talk:Frank_J._Wood_Bridge&diff=prev&oldid=1212095306

image
NovemLinguae commented 7 months ago

This is a nested template bug. The proper fix would involve switching from my custom regexes to the Parsoid API so I can parse wikicode properly without reinventing the wheel.

Related #138 Use Parsoid for template parameter modification?