wiki:WikiFormatting

Version 11 (modified by badya, 8 years ago) (diff)

--

WikiFormatting

Wiki markup is a core feature in Trac, tightly integrating all the other parts of Trac into a flexible and powerful whole.

Trac has a built in small and powerful wiki rendering engine. This wiki engine implements an ever growing subset of the commands from other popular Wikis, especially  MoinMoin.

This page demonstrates the formatting syntax available anywhere WikiFormatting is allowed.

Font Styles

The Trac wiki supports the following font styles:

 * '''bold'''
 * ''italic''
 * '''''bold italic'''''
 * __underline__
 * {{{monospace}}} or `monospace`
 * ~~strike-through~~
 * ^superscript^ 
 * ,,subscript,,

Display:

  • bold
  • italic
  • bold italic
  • underline
  • monospace or monospace
  • strike-through
  • superscript
  • subscript

Note that the {{{...}}} and `...` commands not only select a monospace font, but also treat their content as verbatim text, meaning that no further wiki processing is done on this text.

Headings

You can create heading by starting a line with one up to five equal characters ("=") followed by a single space and the headline text. The line should end with a space followed by the same number of = characters.

Example:

= Heading =
== Subheading ==
=== About ''this'' ===

Display:

Heading

Subheading

About this

Paragraphs

A new text paragraph is created whenever two blocks of text are separated by one or more empty lines.

A forced line break can also be inserted, using:

Line 1[[BR]]Line 2

Display:

Line 1
Line 2

Lists

The wiki supports both ordered/numbered and unordered lists.

Example:

 * Item 1
   * Item 1.1
 * Item 2

 1. Item 1
   1. Item 1.1
 1. Item 2

Display:

  • Item 1
    • Item 1.1
  • Item 2
  1. Item 1
    1. Item 1.1
  2. Item 2

Note that there must be one or more spaces preceding the list item markers, otherwise the list will be treated as a normal paragraph.

Definition Lists

The wiki also supports definition lists.

Example:

 llama::
   some kind of mammal, with hair
 ppython::
   some kind of reptile, without hair
   (can you spot the typo?)

Display:

llama
some kind of mammal, with hair
ppython
some kind of reptile, without hair (can you spot the typo?)

Note that you need a space in front of the defined term.

Preformatted Text

Block containing preformatted text are suitable for source code snippets, notes and examples. Use three curly braces wrapped around the text to define a block quote. The curly braces need to be on a separate line. Example:

 {{{
  def HelloWorld():
      print "Hello World"
 }}}

Display:

 def HelloWorld():
     print "Hello World"

Blockquotes

In order to mark a paragraph as blockquote, indent that paragraph with two spaces.

Example:

  This text is a quote from someone else.

Display:

This text is a quote from someone else.

Tables

Simple tables can be created like this:

||Cell 1||Cell 2||Cell 3||
||Cell 4||Cell 5||Cell 6||

Display:

Cell 1Cell 2Cell 3
Cell 4Cell 5Cell 6

Note that more complex tables can be created using reStructuredText.

Hyperlinks are automatically created for WikiPageNames and URLs. WikiPageLinks can be disabled by prepending an exclamation mark "!" character, such as !WikiPageLink.

Example:

 TitleIndex, http://www.edgewall.com/, !NotAlink

Display:

TitleIndex,  http://www.edgewall.com/, NotAlink

Links can be given a more descriptive title by writing the link followed by a space and a title and all this inside square brackets. If the descriptive title is omitted, then the explicit prefix is disguarded, unless the link is an external link. This can be useful for wiki pages not adhering to the WikiPageNames convention.

Example:

 * [http://www.edgewall.com/ Edgewall Software]
 * [wiki:TitleIndex Title Index]
 * [wiki:ISO9000]

Display:

Wiki pages can link directly to other parts of the Trac system. Pages can refer to tickets, reports, changesets, milestones, source files and other Wiki pages using the following notations:

 * Tickets: #1 or ticket:1
 * Reports: {1} or report:1
 * Changesets: r1, [1] or changeset:1
 * Revision Logs: r1:3, [1:3] or log:branches/0.8-stable#1:3
 * Wiki pages: CamelCase or wiki:CamelCase
 * Milestones: milestone:1.0 or milestone:"End-of-days Release"
 * Files: source:trunk/COPYING
 * Attachments: attachment:"file name.doc"
 * A specific file revision: source:/trunk/COPYING#200
 * A filename with embedded space: source:"/trunk/README FIRST"

Display:

See TracLinks for more in-depth information.

Escaping Links and WikiPageNames

You may avoid making hyperlinks out of TracLinks by preceding an expression with a single "!" (exclamation mark).

Example:

 !NoHyperLink
 !#42 is not a link

Display:

NoHyperLink #42 is not a link

Images

Urls ending with .png, .gif or .jpg are automatically interpreted as image links, and converted to <img> tags.

Example:

http://www.edgewall.com/gfx/trac_example_image.png

Display:

 http://www.edgewall.com/gfx/trac_example_image.png

However, this doesn't give much control over the display mode. This way of inserting images is deprecated in favor of the more powerful Image macro (see WikiMacros).

Macros

Macros are custom functions to insert dynamic content in a page.

Example:

 [[Timestamp]]

Display:

Timestamp?

See WikiMacros for more information, and a list of installed macros.

Processors

Trac supports alternative markup formats using WikiProcessors. For example, processors are used to write pages in reStructuredText or HTML.

Example 1:

{{{
#!html
<h1 style="text-align: right; color: blue">HTML Test</h1>
}}}

Display:

HTML Test

Example:

{{{
#!python
class Test:
    def __init__(self):
        print "Hello World"
if __name__ == '__main__':
   Test()
}}}

Display:

class Test:
    def __init__(self):
        print "Hello World"
if __name__ == '__main__':
   Test()

Perl:

my ($test) = 0;
if ($test > 0) {
echo "hello";
}

See WikiProcessors for more information.

Miscellaneous

Four or more dashes will be replaced by a horizontal line (<HR>)

Example:

 ----

Display:



See also: TracLinks, TracGuide, WikiHtml, WikiMacros, WikiProcessors, TracSyntaxColoring. ;

blind hilton blind hilton paris star blind hilton paris star blind hilton paris star blind hilton lyric paris star blind hilton lyric paris star blind hilton lyric paris star blind drapery store american blind and wallpaper american blind and wallpaper blind by hilton lyric paris star blind by hilton lyric paris star blind design evidence evolution reveals universe watchmaker why without blind date uncensored blind date uncensored blind melon no rain blind melon no rain lifehouse blind lyric blind hilton paris star video blind hilton paris star video blind hilton paris star video blind hilton paris star dog shampoo dog shampoo dog shampoo shampoo night club shampoo night club nioxin shampoo nioxin shampoo carpet shampoo carpet shampoo dandruff shampoo dandruff shampoo dry shampoo dry shampoo natural shampoo natural shampoo nizoral shampoo nizoral shampoo herbal essence shampoo herbal essence shampoo kerastase shampoo kerastase shampoo dog shampoo hair shampoo hair shampoo hair shampoo hair shampoo hair shampoo hair shampoo hair shampoo hair shampoo sunsilk shampoo sunsilk shampoo sunsilk shampoo sunsilk shampoo hair loss shampoo hair loss shampoo hair loss shampoo hair loss shampoo free shampoo sample free shampoo sample free shampoo sample free shampoo sample free shampoo sample hair shampoo soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby soap box derby sail boat for sale sail boat for sale used sail boat for sale sunfish sail boat for sale laser sail boat for sale catamaran sail boat for sale pilothouse sail boat for sale wooden sail boat for sale hunter sail boat for sale sail boat for sale by owner sail boat for sale florida catalina sail boat for sale macgregor sail boat for sale sail boat for sale sail boat for sale sail boat for sale sail boat for sale sail boat for sale sail boat for sale sail boat for sale sail boat for sale sail boat for sale buy furniture buy furniture buy direct furniture buy direct furniture nc buy furniture online buy furniture used best buy furniture buy furniture rite buy direct furniture store buy furniture office buy direct furniture buy direct furniture buy direct furniture buy furniture buy furniture buy furniture buy furniture buy furniture buy furniture buy furniture buy furniture buy furniture parquet parquet flooring parquet floor parquet hardwood flooring parquet wood flooring parquet wood floor parquet flottant bruce parquet flooring posa parquet cyprus parquet furniture online online furniture store online furniture shopping buy furniture online office furniture online discount furniture online shop furniture online ashley furniture online cheap furniture online bedroom furniture online used sail boat for sale sunfish sail boat for sale laser sail boat for sale catamaran sail boat for sale pilothouse sail boat for sale wooden sail boat for sale hunter sail boat for sale sail boat for sale by owner sail boat for sale florida car donation ca moped moped scooter honda moped moped for sale used moped cheap moped electric moped gas moped tomos moped moped scooter mini bike buy classic car classic car values classic car classifieds classic car show classic car sales classic car restoration classic muscle car for sale classic car rental classic car prices car rental italy one way car rental car seat covers las vegas car rental exotic car rental car rental france car top carriers car extended warranties car rental agencies car rental ireland ireland car rentals classic car insurance car transportation used car dealerships race car bed car rental spain infant car seats donate used car honda car parts car rental italy one way car rental car seat covers Viagra Woman Pill Viagra Prescription Viagra Buy Lvivhostcom Online Viagra Viagra Free Sample Viagra Cialis Levitra Viagra Buy Com Lvivhost Online Viagra Buy Generic Viagra Generic Sales Viagra Cialis Compare Levitra Viagra Cheap Generic Viagra Levitra Viagra Levitra Viagra Vs Cialis Levitra Viagra Vs Vs Viagra Online Pharmacy Canada Viagra Viagra Womens Soft Tab Viagra Online Sale Viagra Prescription Viagra Without Does Viagra Work buy classic car classic car values classic car classifieds classic car show classic car sales classic car restoration classic muscle car for sale classic car rental classic car prices classic car dealer cheap classic car for sale classic car auction classic car wash old classic car view_topic20 classic car value classic car blue book classic project car for sale american classic car country classic car classic car photo buy classic car airfare airline priceline ticket airline airline southwest southwest ticket airline cheap flight flight online online online ticket airline cheap flight robot ticket airline cheap really robot ticket airline cheap robot ticket airline cost low robot ticket airline flight ticket airline ticket cheap flight airline ticket chicago airline ticket sales airline ticket to hawaii airline ticket to italy airline ticket to miami bargain airline ticket buy airline ticket cheap airline ticket to europe cheap airline ticket to florida cheap airline ticket to london cheap discount airline ticket cheap first class airline ticket cheap one way airline ticket continental airline ticket free airline ticket hotwire airline ticket index las vegas airline ticket lowest airline ticket lowest fare airline ticket military discount airline ticket northwest airline ticket one way airline ticket online airline ticket philippine airline ticket really really really cheap airline ticket southwestern airline ticket spirit airline ticket travel velocity airline ticket united airline ticket very cheap airline ticket very cheap airline ticket airline cheap dirt robot ticket airline cheap discounte robot ticket airline cheap discounte ticket airline fare lowest robot ticket airline ticket dallas airline ticket deal airline ticket for under 100 airline ticket los angeles airline ticket minneapolis airline ticket philadelphia airline ticket pittsburgh airline ticket sale airline ticket special airline ticket st louis airline ticket to india airline ticket to london airline ticket to mexico airline ticket washington dc best price airline ticket bid on airline ticket cheap airline ticket online cheap airline ticket to las vegas cheap discount airline travel ticket cheap southwest airline ticket cheap student airline ticket discount first class airline ticket expedia airline ticket index jet blue airline ticket price low fare airline ticket low price airline ticket low priced airline ticket mas airline ticket booking name your price airline ticket student airline ticket student discount airline ticket travel airline ticket travel airline ticket chrysler concorde 1999 chrysler concorde 2000 chrysler concorde 1994 chrysler concorde 1995 chrysler concorde 1998 chrysler concorde 1996 chrysler concorde chrysler concorde part chrysler concorde chrysler concorde chrysler concorde chrysler concorde chrysler concorde chrysler concorde chrysler concorde chrysler concorde chrysler concorde chrysler concorde chrysler concorde chrysler concorde chrysler concorde chrysler concorde chrysler concorde xanax xanax valium buy xanax buy xanax online xanax side effects picture of xanax xanax drug test alprazolam xanax xanax information xanax xr xanax medication buy xanax on line xanax addiction xanax prescription xanax withdrawal symptom xanax online pharmacy xanax overdose xanax dosage xanax and pregnancy order xanax online equipment exercise xanax xanax and grapefruit xanax bar picture 2007 nissan altima 2007 nissan altima 2006 nissan altima nissan altima recall 2005 nissan altima 2002 nissan altima 2007 altima nissan 2003 nissan altima nissan altima part nissan altima body nissan altima accessory 2000 nissan altima used nissan altima 2004 nissan altima 2001 nissan altima photo of 2007 nissan altima nissan altima se r 2006 altima nissan recall 1997 nissan altima 1995 nissan altima 1998 nissan altima 1999 nissan altima 1994 nissan altima 1993 nissan altima 2003 nissan altima recall nissan altima review 2005 nissan altima recall newport cigarette newport cigarette newport cigarette coupon newport cigarette catalog cheap newport cigarette newport cigarette official web site newport cigarette web site newport cigarette free coupon wholesale newport cigarette newport cigarette home page cheap cigarette kool menthol newport newport cigarette printable coupon carton cigarette newport discount newport cigarette newport pleasure cigarette newport cigarette goods catalog newport cigarette catalog for prize newport cigarette company cigarette newport sale carton cigarette coupon newport newport light cigarette newport cigarette online free newport cigarette newport cigarette official site newport cigarette pleasure goods catalog newport cigarette ads newport cigarette reward newport cigarette magazine 2006 catalog cigarette newport buy newport cigarette newport cigarette buy newport cigarette online newport cigarette t shirt discount birkenstock birkenstock discount discount birkenstock sandal birkenstock discount shoes discount birkenstock clog birkenstock child discount index lightning sail boat sail boat ebay sail boat sail boat clip art sail boat design sail boat supply zuma sail boat how to build a sail boat cruising sail boat mcgregor sail boat sail boat review sail boat trader laser sail boat for sale type of sail boat sail boat painting sail boat mast sail boat charter caribbean columbia sail boat tartan sail boat sail boat accessory irwin sail boat chrysler sail boat ericson sail boat sail boat name force 5 sail boat trimaran sail boat precision sail boat hobie sail boat sail boat building catamaran sail boat for sale ranger sail boat buccaneer sail boat boat community sail type sail boat race sail boat photo sail boat hardware inflatable sail boat radio controlled sail boat new sail boat sail boat insurance coronado sail boat cal sail boat hunter sail boat for sale cape dory sail boat radio control sail boat sail boat pic sail boat clipart used sail boat part thistle sail boat liveaboard sail boat sail boat wallpaper butterfly sail boat sail boat dealer islander sail boat free sail boat plan compac sail boat macgregor sail boat for sale