Operator: Anypodetos ( talk · contribs)
Automatic or Manually assisted: Automatic, unsupervised
Programming language(s): Python, PyWikipedia
Source code available: Yes
Function overview: Stub sorting of Category:Pharmacology stubs and its subcategories.
Links to relevant discussions (where appropriate): About the creation of subtypes of {{ pharma-stub}}: Wikipedia talk:WikiProject Stub sorting#Can I create stub templates that were approved way back?
Edit period(s): One-time run; additional runs if necessary
Estimated number of pages affected: Less than 3000
Exclusion compliant (Y/N): Yes
Already has a bot flag (Y/N): Yes
Function details: Iterates through Category:Pharmacology stubs and its subcategories: Tries to find the appropriate stub type, which is determined by the drug's ATC code – at first looks in the {{ Drugbox}} or {{ Chembox}}, if unsuccessful, tries to find an ATC-specific navbox. If nothing is found, or if ATC codes from several groups are found, the stub is sorted to {{ pharma-stub}}.
The bot also moves the stub template down (just above the language links) if necessary.
The function mysave.findATCs seems to be missing from the linked code. Also, it seems that if an ATC code not in stubtypes
is found, it will move the article to
Category:Pharmacology stubs even if it is already categorized into a subcat; is that intentional? Same if an article happens to have multiple ATC codes with different letters, it will put it in
Category:Pharmacology stubs rather than putting it in both subtype categories.
Anomie
⚔
17:28, 25 July 2010 (UTC)
reply
-- ἀνυπόδητος ( talk) 18:29, 25 July 2010 (UTC) reply
blah blah.{{a}}{{b}}{{c}}
" and you try to remove {{a}} then the saved offsets are all wrong for trying to remove {{b}} next? Would it allow you to support multiple stubtempls if you removed them as you find them (at around line 102) instead of saving them all up until the end? Or if you don't want to mess with it, that's fine too.
Anomie
⚔
02:22, 27 July 2010 (UTC)
replyApproved for trial (30 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Let's give it a trial. Anomie ⚔ 02:22, 27 July 2010 (UTC) reply
s/\n\n+{{DEFAULTSORT[:|]([^}]*)}}$/\n{{DEFAULTSORT:$1}}/
fix that? Otherwise, looks good.
Anomie
⚔
01:46, 28 July 2010 (UTC)
reply
Approved. Looks good. Anomie ⚔ 15:00, 28 July 2010 (UTC) reply
Operator: Anypodetos ( talk · contribs)
Automatic or Manually assisted: Automatic, unsupervised
Programming language(s): Python, PyWikipedia
Source code available: Yes
Function overview: Stub sorting of Category:Pharmacology stubs and its subcategories.
Links to relevant discussions (where appropriate): About the creation of subtypes of {{ pharma-stub}}: Wikipedia talk:WikiProject Stub sorting#Can I create stub templates that were approved way back?
Edit period(s): One-time run; additional runs if necessary
Estimated number of pages affected: Less than 3000
Exclusion compliant (Y/N): Yes
Already has a bot flag (Y/N): Yes
Function details: Iterates through Category:Pharmacology stubs and its subcategories: Tries to find the appropriate stub type, which is determined by the drug's ATC code – at first looks in the {{ Drugbox}} or {{ Chembox}}, if unsuccessful, tries to find an ATC-specific navbox. If nothing is found, or if ATC codes from several groups are found, the stub is sorted to {{ pharma-stub}}.
The bot also moves the stub template down (just above the language links) if necessary.
The function mysave.findATCs seems to be missing from the linked code. Also, it seems that if an ATC code not in stubtypes
is found, it will move the article to
Category:Pharmacology stubs even if it is already categorized into a subcat; is that intentional? Same if an article happens to have multiple ATC codes with different letters, it will put it in
Category:Pharmacology stubs rather than putting it in both subtype categories.
Anomie
⚔
17:28, 25 July 2010 (UTC)
reply
-- ἀνυπόδητος ( talk) 18:29, 25 July 2010 (UTC) reply
blah blah.{{a}}{{b}}{{c}}
" and you try to remove {{a}} then the saved offsets are all wrong for trying to remove {{b}} next? Would it allow you to support multiple stubtempls if you removed them as you find them (at around line 102) instead of saving them all up until the end? Or if you don't want to mess with it, that's fine too.
Anomie
⚔
02:22, 27 July 2010 (UTC)
replyApproved for trial (30 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Let's give it a trial. Anomie ⚔ 02:22, 27 July 2010 (UTC) reply
s/\n\n+{{DEFAULTSORT[:|]([^}]*)}}$/\n{{DEFAULTSORT:$1}}/
fix that? Otherwise, looks good.
Anomie
⚔
01:46, 28 July 2010 (UTC)
reply
Approved. Looks good. Anomie ⚔ 15:00, 28 July 2010 (UTC) reply