Thread:Undoniel/@comment-10473115-20150418104047/@comment-10473115-20150419082757

I don't remember working with Templates except Nationality Category which is separate issue explainened in this thread.

Lua works with module pages and Module:CharacterInfoboxCitizenship contains rules for auto-categorizing. However, fixing sorting keys and printing different text than actual category to infobox required editing Module:CharacterInfobox which caused script errors throughout the database in my first tries. So I copied Character Template to User:Mrkermit/sandbox/CharTemp and made it call Module:Sandbox instead of Module:CharacterInfobox. I have of course copied contents of that module to sandbox. That way I was able to edit sandbox module without interfering with actual Character Template. And when I got everything working I added fixes to actual Module:CharacterInfobox yesterday and so far everything seems to work. Of course better to have eyes open with Character pages and auto-categorization because there's always possibility of some unexpected changes.