Changes between Initial Version and Version 1 of WikiFormatting-en


Ignore:
Timestamp:
Jun 25, 2005, 8:16:48 PM (21 years ago)
Author:
Калоян Доганов <kaloian@…>
Comment:

WikiFormatting-en вече съдържа оригиналното английско съдържание на WikiFormatting.

Legend:

Unmodified
Added
Removed
Modified
  • WikiFormatting-en

    v1 v1  
     1= WikiFormatting =
     2
     3''Тази страница е [wiki:WikiFormatting преведена на български].''
     4
     5Wiki markup is a core feature in Trac, tightly integrating all the other parts of Trac into flexible and powerful whole.
     6
     7Trac 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 [http://moin.sf.net/ MoinWiki].
     8
     9This page demonstrates the formatting syntax available anywhere WikiFormatting is allowed.
     10
     11== Font styles ==
     12
     13The Trac wiki support the following font styles: '''bold''', ''italic'',
     14__underline__ and ~~strike-through~~.
     15
     16{{{
     17The Trac wiki support the following font styles: '''bold''', ''italic'',
     18__underline__ and ~~strike-through~~.
     19}}}
     20
     21
     22== Heading ==
     23
     24You can create heading by starting a line with one up to five ''equal\\ '=' characters
     25followed by a single space and the headline text. The line should end with a space
     26followed by the same number of ''equal'' characters.
     27
     28''Note: As of writing, headings cannot contain TracLinks.''
     29
     30=== Example: ===
     31{{{
     32= Heading =
     33== Subheading ==
     34}}}
     35
     36
     37== Paragraphs ==
     38
     39A new text paragraph is created whenever two blocks of text are separated
     40by one or more empty lines.
     41
     42A forced line break can also be inserted, using:
     43{{{
     44Line 1[[BR]]Line 2
     45}}}
     46Display:
     47
     48Line 1[[BR]]Line 2
     49
     50  Text paragraphs can be indented by starting the lines with two or more spaces.
     51
     52== Lists ==
     53The wiki supports both ordered/numbered and unordered lists.
     54
     55Example:
     56{{{
     57 * Item 1
     58   * Item 1.1
     59 * Item 2
     60
     61 1. Item 1
     62   1. Item 1.1
     63 1. Item 2
     64}}}
     65Display:
     66 * Item 1
     67   * Item 1.1
     68 * Item 2
     69
     70 1. Item 1
     71   1. Item 1.1
     72 1. Item 2
     73
     74== Preformatted text ==
     75Block quotes, preformatted text, are suitable for source code snippets, notes and examples. Use three ''curly braces'' wrapped around the text to define a block quote:
     76 
     77Example:
     78{{{
     79 {{{
     80  def HelloWorld()
     81      print "Hello World"
     82 }}}
     83}}}
     84
     85Display:
     86{{{
     87 def HelloWorld()
     88     print "Hello World"
     89}}}
     90
     91== Tables ==
     92
     93Simple tables can be created like this:
     94{{{
     95||Cell 1||Cell 2||Cell 3||
     96||Cell 4||Cell 5||Cell 6||
     97}}}
     98Display:
     99||Cell 1||Cell 2||Cell 3||
     100||Cell 4||Cell 5||Cell 6||
     101
     102== Links ==
     103
     104!Hyperlinks are automatically created for WikiPageNames and urls. !WikiPageLinks can be disabled by
     105prepending an exclamation mark (!) character, such as {{{!WikiPageLink}}}.
     106
     107Examples:
     108
     109 TitleIndex, http://www.edgewall.com/.
     110
     111Links can be given a more descriptive title by writing the link followed by
     112a space and a title and all this inside two square brackets. Like this:
     113{{{
     114 * [http://www.edgewall.com/ Edgewall Software]
     115 * [wiki:TitleIndex Title Index]
     116}}}
     117Display:
     118
     119 * [http://www.edgewall.com/ Edgewall Software]
     120 * [wiki:TitleIndex Title Index]
     121
     122=== Trac Links ===
     123
     124Wiki pages can link directly to other parts of the Trac system.
     125Pages can refer to tickets, reports, changesets, milestones, source files and
     126other Wiki pages using the following notation:
     127 * Tickets: '''!#1''' or '''!ticket:1'''
     128 * Reports: '''!{1}''' or '''!report:1'''
     129 * Changesets: '''![1]''' or '''!changeset:1'''
     130 * Wiki pages: '''CamelCase''' or '''!wiki:CamelCase'''
     131 * Milestones: '''!milestone:1.0'''
     132 * Files: '''!source:trunk/COPYING'''
     133 * A specific file revision: '''!source:/trunk/COPYING#200'''
     134Display:
     135 * Tickets: #1 or ticket:1
     136 * Reports: {1} or report:1
     137 * Changesets: [1] or changeset:1
     138 * Wiki pages: CamelCase or wiki:CamelCase
     139 * Milestones: milestone:1.0
     140 * Files: source:trunk/COPYING
     141 * A specific file revision: source:/trunk/COPYING#200
     142
     143See TracLinks for more in-depth information.
     144
     145== Escaping Links and WikiNames ==
     146You may avoid making hyperlinks out of TracLinks by preceding an expression with a single '!' (exclamation mark).
     147
     148{{{
     149 !NoHyperLink
     150 !#42 is not a link
     151}}}
     152
     153Display:
     154 !NoHyperLink
     155 !#42 is not a link
     156
     157== Images ==
     158
     159Urls ending with .png, .gif or .jpg are automatically interpreted as image links, and converted to IMG tags.
     160
     161Example:
     162{{{
     163http://www.edgewall.com/gfx/trac_example_image.png
     164}}}
     165Display:
     166
     167http://www.edgewall.com/gfx/trac_example_image.png
     168
     169== Macros ==
     170Macros are ''custom functions'' to insert dynamic content in a page. See WikiMacros for usage.
     171
     172Example:
     173{{{
     174 [[Timestamp]]
     175}}}
     176Display:
     177 [[Timestamp]]
     178
     179== Processors ==
     180Trac supports alternative markup formats using WikiProcessors. For example, processors are used to write pages in [wiki:WikiRestructuredText reStructuredText] or [wiki:WikiHtml HTML].
     181
     182See WikiProcessors for more information.
     183
     184'''Example 1:'''
     185{{{
     186#!html
     187<pre class="wiki">{{{
     188#!html
     189&lt;h1 style="text-align: right; color: blue"&gt;HTML Test&lt;/h1&gt;
     190}}}</pre>
     191}}}
     192Display:
     193{{{
     194#!html
     195<h1 style="text-align: right; color: blue">HTML Test</h1>
     196}}}
     197
     198'''Example 2:'''
     199{{{
     200#!html
     201<pre class="wiki">{{{
     202#!python
     203class Test:
     204    def __init__(self):
     205        print "Hello World"
     206if __name__ == '__main__':
     207   Test()
     208}}}</pre>
     209}}}
     210Display:
     211{{{
     212#!python
     213class Test:
     214    def __init__(self):
     215        print "Hello World"
     216if __name__ == '__main__':
     217   Test()
     218}}}
     219
     220== Miscellaneous ==
     221
     222Four or more dashes will be replaced by a horizontal line (<HR>)
     223
     224{{{
     225 ----
     226}}}
     227
     228Display:
     229----
     230
     231
     232----
     233See also: TracLinks, TracGuide, WikiHtml, WikiMacros, WikiProcessors, TracSyntaxColoring.
     234