Fixes link for wikipedia link and refactor code templates