wikidb.parse_link

wikidb

parse_link(target) -> collection, key

Split a wiki link target into collection and key

: cannot occur in an entry key, so a qualified target is unambiguous. An unqualified target answers a nil collection: it resolves in the collection it was written in. A target that is not a string answers two nils.