That is not as easy to generalise - there is a reason why there a lawyers specialising in trademark law...
1) A trademark needs to be registered, it is not automatic - and trademark registering costs, so it's usually only done with main names and logos.
So for any name you are interested in using, you first have to go to the sites of the trademark office/search engine and check if it is registered.
2) Trademarks are registered either for specific areas or in general. If they's registered in general you can't use them, if they're registered for specific areas you can use them in different areas.
3) Some companies are using trademarks aggressively, others not. You should not try to skip the boundaries with trademarks from a company like Disney as that will get you sued fast, while other companies even encourage fangames.
4) Consider for yourself: Why do you want to use that trademark?
If you want it for a parody or similiar reasons, there is a chance that this is protected by fair use
If you want to do that in order to link to that popularity - that will increase the chance of you getting sued because it will be clear that you intended a violation of the trade laws - trademarks are created to prevent exactly that.
And don't think that using such names out of context will only get you positives. If you try to use other names because you have problems coming up with your own, that will be seen by players, and will get you bad remarks for not being original.