::::::Awesome! Works now, thanks. :) --[[User:Damixon|Damixon]] ([[User talk:Damixon|talk]]) 16:57, 18 June 2018 (UTC)
:::::::Any chance this template can be improved/adjusted? With current state, two pages using this template were added to [[:Category:Pages with too many expensive parser function calls]]. These pages are [[Reputation traits]] and [[Personal traits/Race-specific Personal traits]]. I fixed this by using lighter version - [[Template:Traiticon2]]. Also, every non-starship trait using this template was added to [[Special:WantedPages]] with this format <nowiki>[[File:Mastery trait NAME.png]]</nowiki>. --[[User:Damixon|Damixon]] ([[User talk:Damixon|talk]]) 14:38, 1 July 2018 (UTC)
::::::::Other than reverting it to the way it was, there's no real way to have it do what it does with the double checking file names.
However, it did just occur to me that there might be a simpler way to do this, and we might be able to kill any extra trait templates at the same time.--[[User:Lord_Trekie|LordTrekie]] <small>([[User_talk:Lord_Trekie|talk]])</small> 15: 12, 1 July 2018 (UTC)