wiki:UnderscoreWikiPlugin

Version 5 (modified by HumanInternals, 14 years ago) (diff)

--

Underscore_Wiki_Page automatic linking

Description

Makes Trac transform the MediaWiki styled Underscore_Wiki_Page to a link automatically, as it does with CamelCaseWikiPage.

Bugs/Feature Requests

Existing bugs and feature requests for UnderscoreWikiPlugin are here.

If you have any issues, create a new ticket or email to nadav
at
humaninternals <dot> com.

Download

Download the zipped source from [download:underscorewikiplugin here].

Source

You can check out UnderscoreWikiPlugin from here using Subversion, or browse the source with Trac.

Installation

This is just a one-file plugin. You can simply put the UnderscoreWiki.py file directly in your plugins directory.

Configuration

This plugin has two configuration options that can be set under the [underscore-wiki] section of TracIni.

  • ignore_missing_pages - Enable/disable highlighting Underscore_Wiki_Page links to missing pages. Defaults to false (not ignoring them, they'll be shown in grey with a question mark).
  • uppercase_in_words - Enable/disable using upper case letters in places other than first character of every word. Only Foo_Bar is supported by default, setting this to true adds support for Foo_BAR, Foo_BaR, FOO_Bar, etc. Defaults to false.
[underscore-wiki]
ignore_missing_pages = true
uppercase_in_words = false

Example

Transforms every Foo_Bar (at least two words, each word must start with an upper case letter) into a link to a wiki page.

Recent Changes

8441 by shesek on 2010-08-24 20:15:43
Uploading the initial version of UnderscoreWikiPlugin
8440 by shesek on 2010-08-24 20:01:28
New hack UnderscoreWikiPlugin, created by shesek
(more)

Author/Contributors

Author: shesek
Maintainer: shesek
Contributors: