afch-rewrite icon indicating copy to clipboard operation
afch-rewrite copied to clipboard

Don't add colons to wikilinks that contain the word "draft"

Open NovemLinguae opened this issue 1 year ago • 2 comments

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 the above is converted to [[:Category:abc]]

This ticket is to code an exception for categories whose name contains the word "draft". According to InfiniteNexus, these are usually false positives.

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

image

NovemLinguae avatar Feb 03 '23 22:02 NovemLinguae

Such adhoc exceptions can have false positives and aren't maintainable. The supported way to categorise drafts is via templates, so they don't get coloned, eg. via {{AfC topic}}, {{Draft article|subject=}}, etc.

siddharthvp avatar Feb 09 '23 19:02 siddharthvp

That makes sense, but I think checking for Category:Draft articles subcategories would cover everything. And in fact PR #154 addresses precisely this (which leads us to #131, which this might be a dupe of, really) - we worked on it a bit ages ago and I'm sure the idea could be adapted into merge-ability.

enterprisey avatar Feb 12 '23 05:02 enterprisey