Usage:
{{MapRoute|2||A|orange|C|red|F|red|I|red|J|blue|K|magenta|L|orange|M|orange|Q|red}}
Result: 2 A C F I J K L M Q