2005-07-14
exile
I would like to request that Autolinking features be added to DokuWiki.
There are two possible types:
1. A conf/ file contains a list of terms and Wiki links to replace them with.
This would be similar to the acronym, entity, or smileys parser.
As the Wiki engine renders to page, if it sees a term that matches an autolink term in the body of the page, it automatically substitutes the specified Wiki link.
A sample autolink.conf file could look like
# TermToMatch WikiLinkToSubstitute
AWord [[TheWordsWikiLink]]
"A phrase" [[The Link For That Phrase]]
google.com [[http://google.com|Google]]
Any word or phrase should be autolinkable to any valid wiki link within the engine, including the ability to specify interwiki autolinks.
2. The second form of autolink could be context-automatic.
As the renderer loads the page to send out, it could build a list of the other wiki pages in the same namespace, and automatically match and substitute those terms in the outgoing page. So, if I had the term PlayStation as plain text in a page, but a playstation.txt file existed in the same namespace directory, then the renderer could automatically convert the outgoing word to a link to the same page in that namespace.
Note, since both forms are computationally expensive in different ways, both forms could be enabled via a local.php option, and I would like to be able to use both forms together, with the specific links I have designed using the 1st form overriding any automatic links created using the second form.