Board Thread:Support Requests - Getting Technical/@comment-34975743-20190719021035

Infobox template here, relevant articles here:
 * Y1/YK1 character
 * YK1-exclusive character
 * Y2/YK2 character
 * YK2-exclusive character

Having a similar issue as I did way back in Thread:1424301. The characters are supposed to be auto-categorized by game according to the appears_in infobox data. This doesn't cause issues for most of the games but with Yakuza and Yakuza Kiwami, characters still get categorized as Yakuza Characters or Yakuza Kiwami Characters even if they aren't in those games just because Yakuza Kiwami 2 still contains the string "Yakuza Kiwami."

It's a similar problem with Yakuza Characters - even if a character never appears in the original Yakuza, Yakuza 5 for example still contains the string "Yakuza" so they get assigned the category.

That's lead me to use a switch statement for Kiwami-exclusive characters, but that's an extremely inefficient way to go about it and makes the template itself require constant updates.

Is there a way to specify that if the input happens to contain "Yakuza Kiwami" but the character ONLY appears in Yakuza Kiwami 2, the Yakuza Kiwami Characters category shouldn't be added? And still keep the category functional for characters that are in both Yakuza Kiwami and Yakuza Kiwami 2? Same for the Yakuza Characters category. I can't seem to make the solution proposed last time work, the strings are never an exact match because other games are listed too. 