Tried my best to fit this together; might write a timeline on it
How did you edit the Wikipedia page like that?
It's a wiki infobox. There's a template for this online. I took the 2016 one and edited it to suit my needs. If you click 'view page source', you'll see the infobox for the Presidential election.
Editing the map is harder. It's an svg file. It requires a text editor to manually fix the electoral votes and state coloring. I took the 2016 map, edited which states voted red or blue, got rid of the faithless electors, and added those electors back to their respective state's total electoral votes.