7.2 Text markup: fonts and links
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog Source Documentation Version 2
        • Wiki notation
          • Text markup: fonts and links
            • Emphasizing text
            • Inline code
            • Links

7.2.3 Links

Table 2 shows the constructs for creating links.

name/arityCreate a link to a predicate
`name/arity` Create a link to a predicate
``name/arity`` Predicate indicator that does not create a link
name//arityCreate a link to a DCG rule
`name//arity` Create a link to a DCG rule
``name//arity`` DCG indicator that does not create a link
flag `name` Create a link to the Prolog flag name if this flag exists.
name.extIf <name>.<ext> is the name of an existing file and <ext> is one of .pl, .txt, .md, .png, .gif, .jpeg, .jpg or .svg, create a link to the file.
prot://urlIf <prot> is one of http, https or ftp, create a link.
<url> Create a hyperlink to URL. This construct supports the expand_url_path/2 using the construct <alias>:<local>. <local> can be empty.
[[label][link]] Create a link using the given <label>. Label can be text or a reference to an image file. Additional arguments can be supplied as ;<name>="<value>". More arguments are separated by commas. <link> must be a filename as above or a url.
[label](link) The markdown version of the above.
[@cite] Include LaTeX citation. Multiple citations can be saparated using ;. No white space is allowed.
Table 2 : Wiki constructs that create links