The only logical way I can see this war occuring, is if from the 1890s or earlier Germany makes a massive business, political, & military investment in the Spanish empire. Then perhaps the Spanish American war includes Germany. Main difference here is Germany has the potential for naval bases in & near the Western hemisphere.