You can create the template at Template:Battle on your wiki, and select "infobox" when it asks for the type. Or if you have a wiki that you want to use the template from, you can export the template and import it into your wiki.
Okay, I think I've figured it out. But, for some reason, it only limits me to two factions. Whenever I enter something into the third or fourth factions, it doesn't end up listing it. Do you know why that might be.