|Version 12 (modified by 5 years ago) (diff),|
Automatically creates links for all known Wiki pages
Automatically create links for all known Wiki pages, even those that are not in CamelCase.
For example, with this plugin enabled, the bare word
plugin would be linked thus plugin. Autolinking a word can be disabled by prefixing the word with
!, as is done for disabling autolinking of CamelCase wiki pages.
To install the plugin, you will need to add the following entry to the
components section of your
[components] tracautowikify.* = enabled ...
| ||Override the default minimum of 3 character long page names recognised.|
| ||Specify a list of names to explicitly wikify.|
| ||A list of names to exclude from autowikification.|
If you want to use the configuration options mentioned above, add the following section to
[autowikify] minimum_length=<number> explicitly_wikify=<comma-separated list of words> exclude=<comma-separated list of words>
If you have any issues, create a new ticket.
Regex based wildcards in explicitly_wikify
If, like me, (SvenDowideit) you want to link to an external wiki (TWiki) and need a large set of non-CamelCase words (in this case our bug tracking system (of the style of Bugs.Item1234) the you can modify autowikify.py to remove the escaping of regex strings -
pattern = r'\b(?P<autowiki>' + '|'.join([re.escape(page) for page in pages]) + r')\b'
pattern = r'\b(?P<autowiki>' + '|'.join([page for page in pages]) + r')\b'
Download the zipped source from [download:autowikifyplugin here].