wikimedia-gadgets / afc-helper

A tool for reviewing Articles for Creation submissions on the English Wikipedia
https://en.wikipedia.org/wiki/Wikipedia:AFCH
GNU General Public License v3.0
36 stars 80 forks source link

Don't add colons to wikilinks inside of {{Draft categories}} #256

Open NovemLinguae opened 1 year ago

NovemLinguae commented 1 year ago

Requested by InfiniteNexus at https://en.wikipedia.org/wiki/Wikipedia_talk:WikiProject_Articles_for_creation#Category_links

AFCH automatically adds colons to [[Category:abc]] type wikilinks so that drafts stay out of categories. So [[Category:abc]] is converted to [[:Category:abc]]

This ticket is to code an exception for categories inside of the template {{Draft categories}}. Apparently these colons are not needed in there.

Diff of incorrect AFCH behavior: https://en.wikipedia.org/w/index.php?diff=1137264750&diffmode=source

image

NovemLinguae commented 4 months ago

Requested by Robert McClenon at https://en.wikipedia.org/wiki/Wikipedia_talk:WikiProject_Articles_for_creation#AFCH_Helper_Script_and_Categories