Template:DisplayRoute

Makes a permanent link to a relation in OSM (by default a relation with type=route here, but this could be a type=route_master), based on tag filters (ref=, with optional network= and operator=), using a custom Overpass API request.