| Version 10 (modified by guest, 6 years ago) |
|---|
WikiFormatting
Table of Contents
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
- Item 1
- Item 1.1
- 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 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |
Note that more complex tables can be created using reStructuredText.
Links
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:
Trac Links
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:
- 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"
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:
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.
viagra buy vigrx bupropion sr carisoprodol buy online diazepam buy online buy cheap fioricet cheap levitra wellbutrin zyban bupropion side effects buy online risperdal tramadol cod online pharmacy tramadol viagra alternative cheap viagra wellbutrin bupropion buy retin a buy cheap ultram phentermine butalbital buying buy soma actos cheap buy cheap ultram buy diazepam buy online vigrx buy tramadol butalbital actos cheap butalbital buying online vigrx butalbital buying cheap soma butalbital buying effects of zoloft phentermine bupropion order cialis buy viagra viagra viagra clomid and twins bupropion cheap retin a cheap phentermine zoloft side effects cosmetics retin a viagra butalbital buy online actos online vigrx clomid side effects buy carisoprodol levitra cheap tramadol wellbutrin zyban bupropion side effects viagra zoloft zoloft side effects actonel and side effects buy cheap diazepam cheap vigrx buy vigrx effexor xr generic viagra 10mg zocor clomid success cheap tramadol cheap fioricet buy cheap diflucan effexor drug side effects buy soma buy levitra generic viagra herbal viagra acyclovir dosage buy soma online side effects of zoloft generic viagra buy phentermine generic cialis buy fioricet buy cheap celexa viagra alternative prozac online butalbital buy online buy retin a prozac side effect effexor xr side effects cheap diflucan buy phentermine generic cialis buy online diflucan clomid side effects buy retin a online cialis buy levitra online celexa discount prozac viagra alternative viagra alternative cheap vigrx buy cialis phentermine 37 5mg actonel buy online effexor buy cheap celexa cheap viagra carisoprodol buying actonel bad side effects cheap fioricet diazepam buy vigrx zoloft side effects effects of zoloft prozac online wellbutrin bupropion cheap diflucan clomid success rates herbal viagra herbal viagra phentermine 37 5mg herbal viagra buy soma online buy carisoprodol actos and weight gain butalbital online prozac soma online viagra alternative cheap cialis phentermine 37 5mg zoloft side effects effexor xr cheap cialis discount prozac buy soma actos buying buy online fioricet phentermine 37 5mg viagra buy online diazepam actonel buy viagra cheap diflucan ativan buying viagra alternative phentermine online celexa cheap tramadol butalbital buy online discount phentermine actonel bad side effects actonel and side effects cheap phentermine cheap viagra clomid side effects buy soma diazepam buy online cialis viagra alternative carisoprodol buy online actos online phentermine soma buy online fioricet buy levitra actonel bad side effects generic cialis cheap retin a no prescription vigrx buy cheap ultram actonel buy online effects of zoloft actos and weight gain viagra alternative buy soma cheap actonel cheap buy online vigrx diflucan 150mg actonel prozac buy phentermine yasmin levitra viagra viagra alternative clomid side effects clomid success rates zoloft suicide cheap viagra buy fioricet online order cialis zoloft withdrawal cheap diflucan discount phentermine viagra buy online ultram bupropion side effects buy celexa actonel buy online buy viagra phentermine online prozac side effects buy celexa generic viagra celexa & discontinuation symptoms buy cialis buy ultram cialis effexor discount phentermine effexor xr side effects online vigrx buy online diflucan celexa buy soma bupropion online vigrx phentermine online viagra buy online ultram viagra herbal viagra buy viagra order cialis phentermine butalbital prescription cialis online buy viagra cheap tramadol cheap diazepam prozac nation effexor drug side effects effexor drug side effects buy cheap diazepam cheap phentermine phentermine 37 5mg drug fioricet effexor xr side effects celexa phentermine online buy viagra buy viagra buy online fioricet cheap retin a viagra cheap cialis buy vigrx actonel buying discount phentermine phentermine bupropion
