A “Nazi” from Cannock was among three men who believed a race war was imminent were planning terrorist attacks on mosques and synagogues, a jury has been told.