wdpr
    Preparing search index...

    Module parser/rules/inline/link-triple

    Parses the Wikidot triple-bracket link syntax: [[[target | label]]].

    Triple-bracket links are Wikidot's primary page-linking mechanism. They support several target formats:

    • Page links: [[[page-name]]] or [[[page-name | Label]]]
    • Category pages: [[[category:page-name]]] (display shows text after colon)
    • Anchor links: [[[#anchor-name]]]
    • External URLs: [[[https://example.com | Label]]]
    • Interwiki links: [[[wikipedia:Article]]] (for known prefixes)

    Special syntax:

    • [[[*page]]] -- * prefix is treated as a label prefix (ignored in target)
    • [[[*|label]]] -- links to root / with the given label
    • [[[page|]]] -- empty label after pipe defaults to the page name

    Multi-line support: a single newline is allowed within the link (typically after the pipe), but a double newline (paragraph break) or a newline directly before ]]] invalidates the link.

    When the opening [[[ has no valid closing ]]], it falls through as literal text rather than failing.

    Produces a "link" AST element with an appropriate type field ("page", "anchor", "direct", or "interwiki").

    Variables

    linkTripleRule