How did jingoism contribute to the outbreak of the Spanish American War?

Jingoism is defined as extreme patriotism, especially in the form of warlike foreign policy. This jingoism, affected by anti-Spanish propaganda, instigated agitation against the Spanish people by the Americans, eventually leading into the war in 1898.