Open enterprisey opened 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)?
Is there a [[Category:Stub templates]] that includes all stub templates so we can check?
@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!)
@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 :/
@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...
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...
Done, see test edit.
After running cleanup on this submission, the stub template remains at the top.