Suppose I have this fragment:

is shown in \in{figure}[foo] on \at{page}[foo].
\placefigure
[]
[foo]

I would like to leave the fragment “on \at{page}[foo]” out of the text if the figure ends up on the same page as the \at. Is that doable or is this a matter of manual tweaking at the end?

G