On 12/6/2010 1:12 PM, Daniel James wrote:
On 6 December 2010 08:39, Martin Moene
<m.j.moene@eld.physics.leidenuniv.nl> wrote:
I tried (several variations of) a macro like:
  [template issue[key]
     [@https://host.domain/issues/view.php?id=[key] #[key]]
  ]

Using:
  * \[[issue 121]\] Text...
There's no support for templates or macros inside urls. So the only
way to implement this is to write a template that uses escaped
boostbook. See the attached file for an example. You need to be
careful when using the template as it will interpret the argument as
quickbook, should be fine if you're just using numbers.

Hi Daniel,

This is what I was looking for.

One thing I tried was to split the [@url text] using quotes etc, much like your solution. However I didn't know that there's no support for templates or macros inside urls (Although now I know, I couldn't find it mentioned in the Quickbook documentation or on the Web though).

By the way, you might notice that I implemented the template as a
single line, this is because quickbook interprets a template body that
starts with a newline as a block.

(I made the template multi-line just to fit it on the line(s), entirely forgetting that I'm writing for a Phrase Level Element.)

Thanks very much for your help.

Cheers,
Martin