wiki:CamelCase

CamelCase

New wiki links are automatically created when concatenating capitalized words, such that for example the words 'Camel' and 'Case' concatenated form a link to this Camel Case page.

CamelCase is the original wiki convention for creating hyperlinks, with the additional requirement that the capital letters are followed by a lower-case letter; hence "AlabamA" and "ABc" will not be links.

Customizing the Wiki behavior

While Trac remains faithful to the original Wiki style, it also provides a number of ways to accommodate users with different preferences:

  • To prevent the creation of a link for the Camel Case word, prefix the word with an exclamation mark (!): !CamelCase.
  • By default a Camel Case word with no corresponding Wiki page will be rendered as a gray link followed by a question mark. This is useful for example when the Camel Case style is used to name code artefacts like class names, and a Wiki page is expected to exist to document each class. The behavior can be configured through the [wiki] ignore_missing_pages option in Trac Ini.
  • To automatically insert space characters between the words of a Camel Case link when rendering the link, enable [wiki] split_page_names of Trac Ini.
  • Creation of explicit Wiki links is also easy, see Wiki Page Names for details.
  • Wiki formatting can be disabled completely in some places, for example when rendering commit log messages. See the [wiki] wiki_format_messages option in Trac Ini.

See Trac Ini for more information on the available options.

More information on CamelCase


See also: Wiki Page Names, Wiki New Page, Wiki Formatting, Trac Wiki

Last modified 4 years ago Last modified on Oct 25, 2020, 10:52:22 PM