On our wiki we have characters from Dragon Ball that all belong to various categories (in the game, not categories on the wiki itself). These categories have advantages (increased attack, defense, etc) for various events.
We add the event image on each characters page if he/she has an advantage in the event. So for each category that gets added we need to edit alot of pages.
In our main character template we show the categories like this:
|Category = [[Category 1]] - [[Category 2]] - [[Category 3]] - [[Category 4]] - [[Category 5]]
And the event images are seperate under |Events = [[file:image|100px|link=...]]
Now my question is if there is a way to make this automatic in our main characters template? Is it possible to make something like:
If {{{Category}}} contains Category 3 then show Category 3 image
I'm not sure if "if" can work like that since I've only used it for the complete variable.