Page MenuHomePhabricator

[AOI][Citation Bot] Fix text.php
Closed, ResolvedPublic

Description

Citation Bot's text.php is activated from the edit page "Citations" button added by https://en.wikipedia.org/wiki/MediaWiki:Gadget-citations.js gadget. Right now, it does not work (https://tools.wmflabs.org/citations/text.php returns 500:Internal Server Error). It should expand citations as expected.

Acceptance criteria:

  • Gadget + bot combination function as well as they did before shut-off: pages are not blanked, text is loaded for manual checking and form submission

Event Timeline

Fhocutt raised the priority of this task from to High.
Fhocutt updated the task description. (Show Details)
Fhocutt added a project: Community-Tech.
Fhocutt added subscribers: Niharika, Harej, harej-NIOSH and 5 others.

This is ready for testing on testwiki, as described here: https://github.com/fhocutt/citation-bot

Note that the bot+gadget combination is a clickjacker and will be blocked by extensions like NoScript.

Fhocutt moved this task from Ready to Needs Review/Feedback on the Community-Tech board.
Fhocutt set Security to None.

Deprecated {{cite pmid}}, {{cite doi}}, etc. templates (see discussion). The bot should no longer create templates containing citation data that are transcluded, rather these templates should be substituted. Please note that User:Dexbot has been systematically substituting the existing transcluded templates.

Support for new "|vauthors=" parameter (see discussion). Instead of adding redundant "|lastn=" to citations that already contain Vancouver style formatted authors stored in a single "|author=" parameter, the bot should replace "|author=" parameter name with "|vauthors=", support for which has been recently added to all Citation Style 1 templates.

I left some comments related to the vauthors issue at https://en.wikipedia.org/wiki/User_talk:Citation_bot#Citation_bot_progress. Basically, my suggestion is to fix the redundant lastn bug, but avoid changing existing author parameters otherwise.

This should be running as before, using this script for the gadget on testwiki: https://test.wikipedia.org/wiki/User:Fhocutt_%28WMF%29/common.js .

Seems to be working as expected now.