Jump to content

User talk:Zodon/ATC to category

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Dermatological preparations

Automatic categorization

I have been toying with ideas about linking the ATC code (e.g. in {{ATC Category}} or in drugbox) to the categorization.

With a template that converts ATC codes to category names {{ATC to category}}, the ATC Category message box could also include what ATC supercategory the item beloned to. (If ATC Category took two arguments - one for the including category, and one for what category this is, then [[Category:{{ATC to category|{{{1|}}} }}]] would make it a subcategory of the appropriate ATC category.

Could also check that the right category entered {{#ifeq:{{PAGENAME}}|{{ATC to category|{{{1|}}}{{{2|}}} }}|ATC is correct|ATC is wrong}}

Ideally drugbox could categorize page in given ATC category. (but that would be harder to do since mediawiki doesn't have much that will disassemble a string, even one as simple as an ATC code).

Start a discussion about improving the User:Zodon/ATC to category page

Start a discussion