Template:Aid

This template, when given an alliance's name, returns its ID. This is parsed from the alliance statistics download; contact User:Bobogoobo to update it. (I don't know if this only includes currently existing alliances or all alliances.)