The #DISTANT
tag displays either "oui" (yes) or "non" (no) depending on whether the document is remote (referenced with a URL) or not.
Example (of displaying an additional small image to indicate that the document is hosted on an external site):
[(#DISTANT|=={oui}|oui) <img src="ext.png" alt="">]