Thread:User talk:CodeCat/adding "Category:LANGUAGE entries which need SCRIPT script" in Module:links/reply

That, but it was also adding pages to categories even for Latin script. The "correct" code to use is in, so whatever we make should work the same way, I just didn't feel like doing it yet so I just disabled it until someone could get around to doing it.

Here it is, in template format:

--><!-- So the categories are added when neither term nor alt is provided. I think it should also check whether tr= is provided, because a link without term, alt or tr is kind of pointless, so that should be an error. So it would work like this: This check should (of course) be done along with processing of automatic transliterations, because those require term or alt to be present, so they are part of the same condition "tree".
 * If term or alt is provided, show that, as normal.
 * If neither of them is provided, check if tr is provided.
 * If so, add a request category. If not, script error.