Ahhhh...if you use Galaxy Forge to make your templates it doesn't always format them correctly. Unfortunately, I just lost (literally, five minutes ago) the folder with my old maps in it and I don't have a working militia one at hand. I'm a bit rusty on map creating and don't want to mislead you. Give me a bit and I'll create one if someone doesn't beat me to it. Harpo is a genius at them.
It isn't that hard but unfortunately there are game-included worlds with broken templates, bad or out of date examples of ones on the forums and then GF itself doesn't get them fully right. Once you have a working one, save it and use it as a reference. I went through the same thing starting and it wasn't till someone gave me a "right" one that I could start doing them with no problem.
Another help is in the program folder is the developers .exe and it will debug non working maps when you run them. You can download Notepad++ for a free editor with line refernces too which helps greatly to find the bugged lines.
Notepad++:
http://notepad-plus-plus.org/
Here's my first post asking just what you are--there may be help in there if you read through it:
https://forums.sinsofasolarempire.com/374572
I do action script editing and validated layered css websites and this was more frustrating than any new stuff there because of the scant reference material to work with.