WPAFC / afch

Yet another Articles for creation helper script -- ACTIVE DEVELOPMENT NO LONGER HAPPENS IN THIS REPOSITORY AND HAS MOVED TO
https://github.com/WPAFC/afch-rewrite
9 stars 3 forks source link

Additional cleanup task: move stubs to bottom #135

Open enterprisey opened 11 years ago

enterprisey commented 11 years ago

After running cleanup on this submission, the stub template remains at the top.

theopolisme commented 11 years ago

@wikipedia-mabdul i'm slightly hesitant to implement this purely based on false positives. But perhaps a regex like

{{.+?-stub}}

Is that limiting enough, in your opinion (to match stub templates)?

Technical-13 commented 11 years ago

Is there a [[Category:Stub templates]] that includes all stub templates so we can check?

wikipedia-mabdul commented 11 years ago

@theopolisme the cleanup code of detecting and moving the stub template should be already in HotCat as they do such kind of tasks. We should start to look after their "libraries" to implement them. (we do want to add it to AFC/R!)

theopolisme commented 11 years ago

@wikipedia-mabdul erm...hotcat doesn't handle stubs. a search for "stub" on https://commons.wikimedia.org/wiki/MediaWiki:Gadget-HotCat.js returned nothing useful, sadly :/

theopolisme commented 11 years ago

@Technical-13 [[Category:Stub message boxes]]

IMHO, just matching -stub}} and moving to the bottom seems like it would handle most cases just fine. @wikipedia-mabdul would you be okay with this? I've been looking around and couldn't find any templates that end with "-stub" that weren't stub templates...

wikipedia-mabdul commented 11 years ago

Actually I'm using the same code for detecting stub templates when accepting...

OK, per [[Wikipedia:FOOTERS]] it is rather easy: stub templates go to the very bottom. interetsing. I thought they should get above the categories...

theopolisme commented 11 years ago

Done, see test edit.