Perhaps a singular advanced rule would work? Here's an example of a template for fanfiction categories:
Code:
program:
f = $#fanficcat;
strcat(
if "^Fallout$" inlist f then 'fallout.png:' fi,
if "^Half-Life$" inlist f then 'halflife.png:' fi,
if "^(Mass Effect Trilogy|Mass Effect: Andromeda)$" inlist f then 'masseffect.png:' fi,
if "^The Elder Scrolls$" inlist f then 'theelderscrolls.png:' fi,
if "^Pokémon$" inlist f then 'pokemon.png:' fi,
if "^Portal$" inlist f then 'portal.png:' fi,
)