@telumire Thanks.
I think the macro helped. Even so it wasn’t exactly what I was looking for.
But seems I haven’t been clear enough.
I have a tiddler with the _canonical_uri
. If I link to it in WikiText normally, then it opens a tiddler with the pdf file embedded.
I was looking for a possibility to set the page this tiddler opens the pdf. Like the attributes in the image tags.
The nearest I got there was using a separate tiddler, which has two fields:
pdf
and page
and the following content:
\define pdfpage() $(pdf)$#page=$(page)$
<$set name="pdf" filter="[get[pdf]get[_canonical_uri]]">
<$set name="page" value={{!!page}}>
<embed src=<<pdfpage>> class="w-100" style="height: 600px;"/>
</$set>
</$set>
And a button on other toddlers to set the page and open the tiddler.
But I still need an additional tiddler, that was something I would like to avoid. On the other hand it is something I could life with.