My question is nearly identical to http://stackoverflow.com/questions/1227037/substitutions-inside-links-in-rest-sphinx except that I want to have text substitution within the role text. That is, I want to be able to say something like
:apilink:`/search?api_key=\ |demo_api_key|\ &query=monkeys`
Is there a way to do this?