Changes between Version 1 and Version 2 of ScrollingWithText


Ignore:
Timestamp:
Dec 7, 2019, 10:19:04 AM (4 years ago)
Author:
Andreas Beisemann
Comment:

For testing purposes only, not ready yet

Legend:

Unmodified
Added
Removed
Modified
  • ScrollingWithText

    v1 v2  
    1 Sandbox
     1Einleitung:
     2Dies ist der Versuch, eine Navigation in grosse Wikiseiten einzubauen und den LINK Englisch Styleguide zu erweitern. Hier wird das Aussehen der Seiten demonstriert und Beispiele gegeben.
     3
     4Der Autor dieser Seite ist der Meinung, daß man das Wiki nicht durch zu viele formalistische Seiten (pro Sprache)aufblähen muss. Besser, diese Information nach Kontinent zu ordnen. Das gibt weniger Seiten und   
     5
     6Die Navigation erfolgt mittels Klick auf Text, zur Verwendung kommen Anker. Zur Diskussion steht die Frage, wie hervorgehoben diese Anker gestaltet werden.  Man muss auch diskutieren, ob man Templates zur Verfügung stellt, wo diese Funktionalität eingearbeitet ist.
     7
     8Fangen wir mal an:
     9
     10Erklärung: Ich habe hier eine einzeilige Tabelle mit drei Spalten angelegt, um die ganze Seite abzudecken. Der Text ist dem jeweiligen Rand zugeordnet
     11
     12----
     13|
     14{{{#!th "align:left color:blue" hier Text}}}
     15{{{#!th align: center; color: red" hier auch }}}
     16{{{#!th align: right; color: blue" und hier ebenfalls }}}
     17|
     18----
     19
     20= WikiFormatting
     21
     22[[TracGuideToc]]
     23
     24Wiki markup is a core feature in Trac, tightly integrating all the other parts of Trac into a flexible and unified whole.
     25
     26Trac has a powerful wiki rendering engine that implements a subset of the commands from other popular Wikis, such as [http://moinmo.in/ MoinMoin] and [trac:WikiCreole].
     27
     28The sections below provide an overview for the most common syntax, each link in the ''Category'' column leads you to the more detailed explanation later in this page.
     29
     30The following wiki pages present the advanced features of the Trac wiki markup in more depth:
     31 - TracLinks covers all the possible ways to refer to any Trac resource or parts thereof.
     32 - WikiPageNames covers the various names a wiki page can take, whether in CamelCase or not.
     33 - WikiMacros lists the macros available for generating dynamic content.
     34 - WikiProcessors and WikiHtml details how parts of the wiki text can be processed in special ways.
     35 - [trac:wiki:TracDev/Proposals/AdvancedWikiOperations AdvancedWikiOperations] provides some operations in uncommon or administrative scenarios.
     36
     37== Common wiki markup
     38
     39||= '''Category''' =||= '''Wiki Markup''' =||= '''Display''' =||
     40|-----------------------------------------------------------
     41{{{#!th rowspan=3
     42[#FontStyles Font Styles]
     43}}}
     44|| `'''bold'''`, `''italic''`, `'''''Wikipedia style'''''` || \
     45|| '''bold''', ''italic'', '''''Wikipedia style''''' ||
     46|| `**bold**`, `//italic//`, `**//!WikiCreole style//**` || \
     47|| **bold**, //italic//, **//!WikiCreole style//** ||
     48|| {{{`monospaced (''other markup ignored'')`}}} || \
     49|| `monospaced (''other markup ignored'')` ||
     50|-----------------------------------------------------------
     51||= [#Headings Headings] =||\
     52{{{#!td
     53 {{{
     54 == Level 2
     55 === Level 3 ^([#hn note])^
     56 }}}
     57}}}
     58{{{#!td style="padding-left: 2em"
     59== Level 2
     60=== Level 3 ^([#hn note])^
     61}}}
     62|-----------------------------------------------------------
     63||= [#Paragraphs Paragraphs]  =||\
     64{{{#!td
     65 {{{
     66 First paragraph
     67 on multiple lines.
     68
     69 Second paragraph.
     70 }}}
     71}}}
     72{{{#!td
     73First paragraph
     74on multiple lines.
     75
     76Second paragraph.
     77}}}
     78|-----------------------------------------------------------
     79||= [#Lists Lists] =||\
     80{{{#!td
     81 {{{
     82 * bullet list
     83   on multiple lines
     84   1. nested list
     85     a. different numbering
     86        styles
     87 }}}
     88}}}
     89{{{#!td
     90* bullet list
     91  on multiple lines
     92  1. nested list
     93    a. different numbering
     94       styles
     95}}}
     96|-----------------------------------------------------------
     97{{{#!th
     98[#DefinitionLists Definition Lists]
     99}}}
     100{{{#!td
     101 {{{
     102  term:: definition on
     103         multiple lines
     104 }}}
     105}}}
     106{{{#!td
     107 term:: definition on
     108        multiple lines
     109}}}
     110|-----------------------------------------------------------
     111||= [#PreformattedText Preformatted Text] =||\
     112{{{#!td
     113 {{{
     114 {{{
     115 multiple lines, ''no wiki'',
     116       white space respected
     117 }}}
     118 }}}
     119}}}
     120{{{#!td
     121 {{{
     122 multiple lines, ''no wiki'',
     123       white space respected
     124 }}}
     125}}}
     126|-----------------------------------------------------------
     127||= [#Blockquotes Blockquotes] =||\
     128{{{#!td
     129 {{{
     130   if there's some leading
     131   space the text is quoted
     132 }}}
     133}}}
     134{{{#!td
     135 if there's some leading
     136 space the text is quoted
     137}}}
     138|-----------------------------------------------------------
     139||= [#DiscussionCitations Discussion Citations] =||\
     140{{{#!td
     141 {{{
     142 >> ... (I said)
     143 > (he replied)
     144 }}}
     145}}}
     146{{{#!td
     147>>... (I said)
     148> (he replied)
     149}}}
     150|-----------------------------------------------------------
     151||= [#Tables Tables] =||\
     152{{{#!td
     153 {{{
     154 ||= Table Header =|| Cell ||
     155 ||||  (details below)  ||
     156 }}}
     157}}}
     158{{{#!td
     159||= Table Header =|| Cell ||
     160||||  (details below)  ||
     161}}}
     162|-----------------------------------------------------------
     163{{{#!th rowspan=2
     164[#Links Links]
     165}}}
     166|| `http://trac.edgewall.org` ||\
     167|| http://trac.edgewall.org ||
     168|| `WikiFormatting (CamelCase)` ||\
     169|| WikiFormatting (CamelCase) ||
     170|-----------------------------------------------------------
     171{{{#!th rowspan=5
     172[#TracLinks TracLinks]
     173}}}
     174|| `wiki:WikiFormatting`, `wiki:"WikiFormatting"` ||\
     175|| wiki:WikiFormatting, wiki:"WikiFormatting" ||
     176|| `#1 (ticket)`, `[1] (changeset)`, `{1} (report)` ||\
     177|| #1 (ticket), [1] (changeset), {1} (report) ||
     178|| `ticket:1, ticket:1#comment:1, comment:1:ticket:1` ||\
     179|| ticket:1, ticket:1#comment:1, comment:1:ticket:1 ||
     180|| `Ticket [ticket:1]`, `[ticket:1 ticket one]` ||\
     181|| Ticket [ticket:1], [ticket:1 ticket one] ||
     182|| `Ticket [[ticket:1]]`, `[[ticket:1|ticket one]]` ||\
     183|| Ticket [[ticket:1]], [[ticket:1|ticket one]] ||
     184|-----------------------------------------------------------
     185{{{#!th rowspan=2
     186[#SettingAnchors Setting Anchors]
     187}}}
     188|| `[=#point1 (1)] First...` ||\
     189|| [=#point1 (1)] First... ||
     190|| `see [#point1 (1)]` ||\
     191|| see [#point1 (1)] ||
     192|-----------------------------------------------------------
     193{{{#!th rowspan=3
     194[#Escaping Escaping Markup]
     195}}}
     196|| `!'' doubled quotes` ||\
     197|| !'' doubled quotes ||
     198|| `!wiki:WikiFormatting`, `!WikiFormatting` ||\
     199|| !wiki:WikiFormatting, !WikiFormatting ||
     200|| [[html(<code>`{{{-}}}` triple curly brackets</code>)]] ||\
     201|| `{{{-}}}` triple curly brackets ||
     202|-----------------------------------------------------------
     203||= [#Images Images] =|| `[[Image(`''link''`)]]` || [[Image(htdocs:../common/trac_logo_mini.png)]] ||
     204|-----------------------------------------------------------
     205{{{#!th rowspan=2
     206[#Macros Macros]
     207}}}
     208|| `[[MacroList(*)]]` ||  ''(short list of all available macros)''  ||
     209|| `[[Image?]]` ||  ''(help for the Image macro)''  ||
     210|-----------------------------------------------------------
     211||= [#Processors Processors] =||\
     212{{{#!td
     213 {{{
     214 {{{#!div style="font-size: 80%"
     215 Code highlighting:
     216   {{{#!python
     217   hello = lambda: "world"
     218   }}}
     219 }}}
     220 }}}
     221}}}
     222{{{#!td style="padding-left: 2em"
     223 {{{#!div style="font-size: 80%"
     224 Code highlighting:
     225   {{{#!python
     226   hello = lambda: "world"
     227   }}}
     228 }}}
     229}}}
     230|-----------------------------------------------------------
     231||= [#Comments Comments] =||\
     232{{{#!td
     233 {{{
     234 {{{#!comment
     235 Note to Editors: ...
     236 }}}
     237 }}}
     238}}}
     239||  ''(comment is shown in edit mode only)''  ||
     240|-----------------------------------------------------------
     241||= [#Miscellaneous Miscellaneous] =||\
     242{{{#!td
     243 {{{
     244 Line [[br]] break
     245 Line \\ break
     246 ----
     247 }}}
     248}}}
     249{{{#!td style="padding-left: 2em"
     250Line [[br]] break
     251Line \\ break
     252----
     253}}}
     254
     255== Font Styles
     256
     257The Trac wiki supports the following font styles:
     258||= Wiki Markup =||= Display =||
     259{{{#!td
     260  {{{
     261   * '''bold''',
     262     ''' triple quotes !'''
     263     can be bold too if prefixed by ! ''',
     264   * ''italic''
     265   * '''''bold italic''''' or ''italic and
     266     ''' italic bold ''' ''
     267   * __underline__
     268   * {{{monospace}}} or `monospace`
     269     (hence `{{{` or {{{`}}} quoting)
     270   * ~~strike-through~~
     271   * ^superscript^
     272   * ,,subscript,,
     273   * **also bold**, //italic as well//,
     274     and **'' bold italic **'' //(since 0.12)//
     275   * [[span(style=color: #FF0000, a red text )]]
     276  }}}
     277}}}
     278{{{#!td
     279 * '''bold''',
     280   ''' triple quotes !'''
     281   can be bold too if prefixed by ! ''',
     282 * ''italic''
     283 * '''''bold italic''''' or ''italic and
     284   ''' italic bold ''' ''
     285 * __underline__
     286 * {{{monospace}}} or `monospace`
     287   (hence `{{{` or {{{`}}} quoting)
     288 * ~~strike-through~~
     289 * ^superscript^
     290 * ,,subscript,,
     291 * **also bold**, //italic as well//,
     292   and **'' bold italic **'' //(since 0.12)//
     293 * [[span(style=color: #FF0000, a red text )]]
     294}}}
     295
     296Notes:
     297 * `{{{...}}}` 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.
     298 * {{{ ! }}} tells wiki parser to not take the following characters as wiki format, so pay attention to put a space after `!`, e.g. when ending bold.
     299 * all the font styles marks have to be used in opening/closing pairs,
     300   and they must nest properly; in particular, an `''` italic can't be paired
     301   with a `//` one, and `'''` can't be paired with `**`.
     302
     303== Headings
     304
     305You can create a heading by starting a line with one up to six ''equal'' characters (`=`) followed by a single space and the headline text.
     306
     307[=#hn]
     308The headline text can be followed by the same number of `=` characters, but this is not mandatory. That is, `=== Section3 ===` is identical to `=== Section3`.
     309
     310Finally, the heading might optionally be followed by an explicit id. If not, an implicit but nevertheless readable id will be generated.
     311
     312||= Wiki Markup =||= Display =||
     313{{{#!td
     314  {{{
     315  = Heading =
     316  == Subheading
     317  === About ''this'' ===
     318  === Explicit id === #using-explicit-id-in-heading
     319  == Subheading #sub2
     320}}}
     321}}}
     322{{{#!td style="padding: 1em;"
     323  {{{
     324  #!div
     325  = Heading =
     326  == Subheading
     327  === About ''this'' ===
     328  === Explicit id === #using-explicit-id-in-heading
     329  == Subheading #sub2
     330  }}}
     331}}}
     332
     333== Paragraphs
     334
     335A new text paragraph is created whenever two blocks of text are separated by one or more empty lines.
     336
     337A forced line break can also be inserted, using:
     338||= Wiki Markup =||= Display =||
     339{{{#!td
     340  {{{
     341  Line 1[[BR]]Line 2
     342  }}}
     343  {{{
     344  Paragraph
     345  one
     346
     347  Paragraph
     348  two
     349  }}}
     350}}}
     351{{{#!td
     352  Line 1[[BR]]Line 2
     353
     354  Paragraph
     355  one
     356
     357  Paragraph
     358  two
     359}}}
     360
     361== Lists
     362
     363The wiki supports both ordered/numbered and unordered lists.
     364
     365||= Wiki Markup =||= Display =||
     366{{{#!td
     367  {{{
     368   * Item 1
     369     * Item 1.1
     370        * Item 1.1.1   
     371        * Item 1.1.2
     372        * Item 1.1.3
     373     * Item 1.2
     374   * Item 2
     375  - items can start at the beginning of a line
     376    and they can span multiple lines
     377    - be careful though to continue the line
     378    with the appropriate indentation, otherwise
     379  that will start a new paragraph...
     380 
     381   1. Item 1
     382     a. Item 1.a
     383     a. Item 1.b
     384        i. Item 1.b.i
     385        i. Item 1.b.ii
     386   1. Item 2
     387  And numbered lists can also be restarted
     388  with an explicit number:
     389   3. Item 3
     390  }}}
     391}}}
     392{{{#!td
     393 * Item 1
     394   * Item 1.1
     395      * Item 1.1.1   
     396      * Item 1.1.2
     397      * Item 1.1.3
     398   * Item 1.2
     399 * Item 2
     400- items can start at the beginning of a line
     401  and they can span multiple lines
     402  - be careful though to continue the line
     403  with the appropriate indentation, otherwise
     404that will start a new paragraph...
     405
     406 1. Item 1
     407   a. Item 1.a
     408   a. Item 1.b
     409      i. Item 1.b.i
     410      i. Item 1.b.ii
     411 1. Item 2
     412And numbered lists can also be restarted with an explicit number:
     413 3. Item 3
     414}}}
     415
     416== Definition Lists
     417
     418The wiki also supports definition lists.
     419
     420||= Wiki Markup =||= Display =||
     421{{{#!td
     422  {{{
     423   llama::
     424     some kind of mammal, with hair
     425   ppython::
     426     some kind of reptile, without hair
     427     (can you spot the typo?)
     428  }}}
     429}}}
     430{{{#!td
     431 llama::
     432   some kind of mammal, with hair
     433 ppython::
     434   some kind of reptile, without hair
     435   (can you spot the typo?)
     436}}}
     437
     438Note that you need a space in front of the defined term.
     439
     440== Preformatted Text
     441
     442Block 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.
     443 
     444||= Wiki Markup =||= Display =||
     445{{{#!td
     446  {{{
     447  {{{
     448  def HelloWorld():
     449      print '''Hello World'''
     450  }}}
     451  }}}
     452}}}
     453{{{#!td
     454  {{{
     455  def HelloWorld():
     456      print '''Hello World'''
     457  }}}
     458}}}
     459
     460Note that this kind of block is also used for selecting lines that should be processed through WikiProcessors.
     461
     462== Blockquotes
     463
     464In order to mark a paragraph as blockquote, indent that paragraph with two spaces.
     465
     466||= Wiki Markup =||= Display =||
     467{{{#!td
     468{{{
     469Paragraph
     470  This text is a quote from someone else.
     471}}}
     472}}}
     473{{{#!td
     474Paragraph
     475  This text is a quote from someone else.
     476}}}
     477
     478== Discussion Citations
     479
     480To delineate a citation in an ongoing discussion thread, such as the ticket comment area, email-like citation marks (`>`, `>>`, etc.) may be used. 
     481
     482||= Wiki Markup =||= Display =||
     483{{{#!td
     484  {{{
     485  >> Someone's original text
     486  > Someone else's reply text
     487  >  - which can be any kind of Wiki markup
     488  My reply text
     489  }}}
     490}}}
     491{{{#!td
     492>> Someone's original text
     493> Someone else's reply text
     494>  - which can be any kind of Wiki markup
     495My reply text
     496}}}
     497
     498== Tables
     499=== Simple Tables
     500
     501Simple tables can be created:
     502||= Wiki Markup =||= Display =||
     503{{{#!td
     504  {{{
     505  ||Cell 1||Cell 2||Cell 3||
     506  ||Cell 4||Cell 5||Cell 6||
     507  }}}
     508}}}
     509{{{#!td style="padding: 2em;"
     510||Cell 1||Cell 2||Cell 3||
     511||Cell 4||Cell 5||Cell 6||
     512}}}
     513
     514Cell headings can be specified by wrapping the content in a pair of `=` characters.
     515Note that the `=` characters have to stick to the cell separators:
     516||= Wiki Markup =||= Display =||
     517{{{#!td
     518  {{{
     519  ||        ||= stable =||= latest =||
     520  ||= 0.10 =||  0.10.5  || 0.10.6dev||
     521  ||= 0.11 =||  0.11.6  || 0.11.7dev||
     522  }}}
     523}}}
     524{{{#!td style="padding: 2em;"
     525||        ||= stable =||= latest =||
     526||= 0.10 =||  0.10.5  || 0.10.6dev||
     527||= 0.11 =||  0.11.6  || 0.11.7dev||
     528}}}
     529
     530Finally, specifying an empty cell means that the next non empty cell will span the empty cells:
     531||= Wiki Markup =||= Display =||
     532{{{#!td
     533  {{{
     534  || 1 || 2 || 3 ||
     535  |||| 1-2 || 3 ||
     536  || 1 |||| 2-3 ||
     537  |||||| 1-2-3 ||
     538  }}}
     539}}}
     540{{{#!td style="padding: 2em;"
     541|| 1 || 2 || 3 ||
     542|||| 1-2 || 3 ||
     543|| 1 |||| 2-3 ||
     544|||||| 1-2-3 ||
     545}}}
     546
     547Note that if the content of a cell sticks to one side of the cell and only one, then the text will be aligned on that side:
     548||= Wiki Markup =||= Display =||
     549{{{#!td
     550  {{{
     551  ||=Text =||= Numbers =||
     552  ||left align    ||        1.0||
     553  ||  center      ||        4.5||
     554  ||      right align||     4.5||
     555  || default alignment ||   2.5||
     556  ||default||         2.5||
     557  ||  default ||      2.5||
     558  || default ||       2.5||
     559  }}}
     560}}}
     561{{{#!td style="padding: 2em;"
     562||=Text =||= Numbers =||
     563||left align    ||        1.0||
     564||  center      ||        4.5||
     565||      right align||     4.5||
     566|| default alignment ||   2.5||
     567||default||         2.5||
     568||  default ||      2.5||
     569|| default ||       2.5||
     570}}}
     571
     572If contrary to the example above, the cells in your table contain more text, it might be convenient to spread a table row over multiple lines of markup. The `\` character placed at the end of a line after a cell separator tells Trac to not start a new row for the cells on the next line:
     573
     574||= Wiki Markup =||
     575{{{#!td
     576  {{{
     577  || this is column 1 [http://trac.edgewall.org/newticket new ticket] || \
     578  || this is column 2 [http://trac.edgewall.org/roadmap the road ahead] || \
     579  || that's column 3 and last one ||
     580  }}}
     581}}}
     582|-------------
     583||= Display =||
     584{{{#!td style="padding: 2em;"
     585|| this is column 1 [http://trac.edgewall.org/newticket new ticket] || \
     586|| this is column 2 [http://trac.edgewall.org/roadmap the road ahead] || \
     587|| that's column 3 and last one ||
     588}}}
     589
     590=== Complex Tables
     591
     592If the possibilities offered by the simple pipe-based markup (`||`) for tables described above are not enough for your needs, you can create more elaborate tables by using [#Processors-example-tables WikiProcessor based tables].
     593
     594== Links
     595
     596Hyperlinks are automatically created for WikiPageNames and URLs. !WikiPageLinks can be disabled by prepending an exclamation mark (`!`), such as `!WikiPageLink`.
     597
     598||= Wiki Markup =||= Display =||
     599{{{#!td
     600  {{{
     601  TitleIndex, http://www.edgewall.com/, !NotAlink
     602  }}}
     603}}}
     604{{{#!td
     605TitleIndex, http://www.edgewall.com/, !NotAlink
     606}}}
     607
     608Links can be given a more descriptive title by writing the link followed by a space and a title and all this inside square brackets.
     609If the descriptive title is omitted, then the explicit prefix is discarded, unless the link is an external link. This can be useful for wiki pages not adhering to the WikiPageNames convention.
     610
     611||= Wiki Markup =||= Display =||
     612{{{#!td
     613  {{{
     614   * [http://www.edgewall.com Edgewall Software]
     615   * [wiki:TitleIndex Title Index]
     616   * [wiki:TitleIndex]
     617   * [wiki:ISO9000]
     618  }}}
     619}}}
     620{{{#!td
     621   * [http://www.edgewall.com Edgewall Software]
     622   * [wiki:TitleIndex Title Index]
     623   * [wiki:TitleIndex]
     624   * [wiki:ISO9000]
     625}}}
     626
     627Following the [trac:WikiCreole] trend, the descriptive title can also be specified by writing the link followed by a pipe (`|`) and a title and all this inside //double// square brackets.
     628
     629{{{#!td
     630  {{{
     631   * [[http://www.edgewall.com|Edgewall Software]]
     632   * [[wiki:TitleIndex|Title Index]]
     633     or even [[TitleIndex|Title Index]]
     634   * [[wiki:TitleIndex]]
     635     ''' but not ![[TitleIndex]]! '''
     636   * [[ISO9000]]
     637  }}}
     638}}}
     639{{{#!td
     640   * [[http://www.edgewall.com|Edgewall Software]]
     641   * [[wiki:TitleIndex|Title Index]]
     642     or even [[TitleIndex|Title Index]]
     643   * [[wiki:TitleIndex]]
     644     ''' but not ![[TitleIndex]]! '''
     645   * [[ISO9000]]
     646}}}
     647
     648'''Note''': the [trac:WikiCreole] style for links is quick to type and certainly looks familiar as it is the one used on Wikipedia and in many other wikis. Unfortunately it conflicts with the syntax for [#Macros macros].
     649So in the rare case when you need to refer to a page which is named after a macro (typical examples being TitleIndex, InterTrac and InterWiki), by writing `[[TitleIndex]]` you will actually call the macro instead of linking to the page.
     650
     651== Trac Links
     652
     653Wiki 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:
     654
     655||= Wiki Markup =||= Display =||
     656{{{#!td
     657  {{{
     658   * Tickets: #1 or ticket:1
     659   * Reports: {1} or report:1
     660   * Changesets: r1, [1] or changeset:1
     661   * ...
     662   * targeting other Trac instances,
     663     so called InterTrac links:
     664     - Tickets: #Trac1 or Trac:ticket:1
     665     - Changesets: [Trac1] or Trac:changeset:1
     666  }}}
     667}}}
     668{{{#!td
     669 * Tickets: #1 or ticket:1
     670 * Reports: {1} or report:1
     671 * Changesets: r1, [1] or changeset:1
     672 * ...
     673 * targeting other Trac instances,
     674   so called InterTrac links:
     675   - Tickets: #Trac1 or Trac:ticket:1
     676   - Changesets: [Trac1] or Trac:changeset:1
     677}}}
     678
     679There are many more flavors of Trac links, see TracLinks for more in-depth information and a reference for all the default link resolvers.
     680
     681== Setting Anchors
     682
     683An anchor, or more correctly speaking, an [http://www.w3.org/TR/REC-html40/struct/links.html#h-12.2.1 anchor name] can be added explicitly at any place in the Wiki page, to uniquely identify a position in the document:
     684
     685{{{
     686[=#point1]
     687}}}
     688
     689This syntax was chosen to match the format for explicitly naming the header id [#Headings documented above]:
     690{{{
     691== Long title == #title
     692}}}
     693
     694It is also very close to the syntax for the corresponding link to that anchor:
     695{{{
     696[#point1]
     697}}}
     698
     699Optionally, a label can be given to the anchor:
     700{{{
     701[=#point1 '''Point 1''']
     702}}}
     703
     704||= Wiki Markup =||= Display =||
     705|----------------------------------
     706{{{#!td
     707  {{{
     708  [#point2 jump to the second point]
     709
     710  ...
     711
     712  Point2:  [=#point2] Jump here
     713  }}}
     714}}}
     715{{{#!td
     716  [#point2 jump to the second point]
     717
     718  ...
     719
     720  Point2:  [=#point2] Jump here
     721}}}
     722
     723For more complex anchors (eg when a custom title is wanted), you can use the Span macro: `[[span(id=point2, class=wikianchor, title=Point 2, ^(2)^)]]`.
     724
     725== Escaping Links, WikiPageNames and other Markup == #Escaping
     726
     727You may avoid making hyperlinks out of TracLinks by preceding an expression with a single exclamation mark (`!`).
     728
     729||= Wiki Markup =||= Display =||
     730{{{#!td
     731  {{{
     732   !NoHyperLink
     733   !#42 is not a link
     734  }}}
     735  {{{
     736Various forms of escaping for list markup:
     737 ^^- escaped minus sign \\
     738 ^^1. escaped number  \\
     739 ^^* escaped asterisk sign
     740  }}}
     741}}}
     742{{{#!td
     743 !NoHyperLink
     744 !#42 is not a link
     745
     746Various forms of escaping for list markup:
     747 ^^- escaped minus sign \\
     748 ^^1. escaped number  \\
     749 ^^* escaped asterisk sign
     750}}}
     751
     752== Images
     753
     754Urls ending with `.png`, `.gif` or `.jpg` are no longer automatically interpreted as image links, and converted to `<img>` tags.
     755
     756You now have to use the ![[Image]] macro. The simplest way to include an image is to upload it as attachment to the current page, and put the filename in a macro call like `[[Image(picture.gif)]]`.
     757
     758In addition to the current page, it is possible to refer to other resources:
     759 * `[[Image(wiki:WikiFormatting:picture.gif)]]` (referring to attachment on another page)
     760 * `[[Image(ticket:1:picture.gif)]]` (file attached to a ticket)
     761 * `[[Image(htdocs:picture.gif)]]` (referring to a file inside the [TracEnvironment environment] `htdocs` directory)
     762 * `[[Image(source:/trunk/trac/htdocs/trac_logo_mini.png)]]` (a file in repository)
     763
     764||= Wiki Markup =||= Display =||
     765{{{#!td
     766  {{{
     767  [[Image(htdocs:../common/trac_logo_mini.png)]]
     768  }}}
     769}}}
     770{{{#!td
     771[[Image(htdocs:../common/trac_logo_mini.png)]]
     772}}}
     773
     774See WikiMacros for further documentation on the `[[Image()]]` macro, which has several useful options (`title=`, `link=`, etc.)
     775
     776== Macros
     777
     778Macros are ''custom functions'' that insert dynamic content in a page.
     779
     780||= Wiki Markup =||= Display =||
     781{{{#!td
     782  {{{
     783  [[RecentChanges(Trac,3)]]
     784  }}}
     785}}}
     786{{{#!td style="padding-left: 2em"
     787[[RecentChanges(Trac,3)]]
     788}}}
     789
     790See WikiMacros for more information, and a list of installed macros.
     791
     792The detailed help for a specific macro can also be obtained more directly by appending a `?` to the macro name.
     793
     794||= Wiki Markup =||= Display =||
     795{{{#!td
     796  {{{
     797  [[MacroList?]]
     798  }}}
     799}}}
     800{{{#!td style="padding-left: 2em"
     801[[MacroList?]]
     802}}}
     803
     804== Processors
     805
     806Trac supports alternative markup formats using WikiProcessors. For example, processors are used to write pages in
     807[wiki:WikiRestructuredText reStructuredText] or [wiki:WikiHtml HTML].
     808
     809||= Wiki Markup =||= Display =||
     810|--------------------------------------------------------
     811{{{#!td align="center" colspan=2 style="border: 0px; font-size: 90%"
     812
     813   [=#Processors-example-html Example 1:] HTML
     814
     815}}}
     816|--------------------------------------------------------
     817{{{#!td style="border: 0px"
     818  {{{
     819  {{{#!html
     820  <h1 style="text-align: right; color: blue">
     821   HTML Test
     822  </h1>
     823  }}}
     824  }}}
     825}}}
     826{{{#!td valign="top"  style="border: 0px"
     827
     828{{{#!html
     829<h1 style="text-align: right; color: blue">HTML Test</h1>
     830}}}
     831
     832}}}
     833|--------------------------------------------------------
     834{{{#!td align="center" colspan=2 style="border: 0px; font-size: 90%"
     835
     836   [=#Processors-example-highlight Example 2:] Code Highlighting
     837
     838}}}
     839|--------------------------------------------------------
     840{{{#!td style="border: 0px"
     841  {{{
     842  {{{#!python
     843  class Test:
     844 
     845      def __init__(self):
     846          print "Hello World"
     847  if __name__ == '__main__':
     848     Test()
     849  }}}
     850  }}}
     851}}}
     852{{{#!td valign="top"  style="border: 0px"
     853
     854{{{#!python
     855class Test:
     856    def __init__(self):
     857        print "Hello World"
     858if __name__ == '__main__':
     859   Test()
     860}}}
     861
     862}}}
     863|--------------------------------------------------------
     864{{{#!td align="center" colspan=2 style="border: 0px; font-size: 90%"
     865
     866       [=#Processors-example-tables Example 3:] Complex Tables
     867
     868}}}
     869|--------------------------------------------------------
     870{{{#!td style="border: 0px"
     871  {{{
     872  {{{#!th rowspan=4 align=justify
     873  With the `#td` and `#th` processors,
     874  table cells can contain any content:
     875  }}}
     876  |----------------
     877  {{{#!td
     878    - lists
     879    - embedded tables
     880    - simple multiline content
     881  }}}
     882  |----------------
     883  {{{#!td
     884  As processors can be easily nested,
     885  so can be tables:
     886    {{{#!th
     887    Example:
     888    }}}
     889    {{{#!td style="background: #eef"
     890    || must be at the third level now... ||
     891    }}}
     892  }}}
     893  |----------------
     894  {{{#!td
     895  Even when you don't have complex markup,
     896  this form of table cells can be convenient
     897  to write content on multiple lines.
     898  }}}
     899  }}}
     900}}}
     901{{{#!td  valign="top"  style="border: 0px"
     902
     903  {{{#!th rowspan=4 align=justify
     904  With the `#td` and `#th` processors,
     905  table cells can contain any content:
     906  }}}
     907  |----------------
     908  {{{#!td
     909    - lists
     910    - embedded tables
     911    - simple multiline content
     912  }}}
     913  |----------------
     914  {{{#!td
     915  As processors can be easily nested,
     916  so can be tables:
     917    {{{#!th
     918    Example:
     919    }}}
     920    {{{#!td style="background: #eef"
     921    || must be at the third level now... ||
     922    }}}
     923  }}}
     924  |----------------
     925  {{{#!td
     926  Even when you don't have complex markup,
     927  this form of table cells can be convenient
     928  to write content on multiple lines.
     929  }}}
     930
     931}}}
     932
     933See WikiProcessors for more information.
     934
     935== Comments
     936
     937Comments can be added to the plain text. These will not be rendered and will not display in any other format than plain text.
     938
     939||= Wiki Markup =||= Display =||
     940{{{#!td
     941  {{{
     942  Nothing to
     943  {{{#!comment
     944  Your comment for editors here
     945  }}}
     946  see.
     947  }}}
     948}}}
     949{{{#!td
     950  Nothing to
     951  {{{#!comment
     952  Your comment for editors here
     953  }}}
     954  see.
     955}}}
     956
     957== Miscellaneous
     958
     959||= Wiki Markup =||= Display =||
     960{{{#!td
     961  Horizontal line:
     962  {{{
     963  Four or more dashes will be replaced
     964  by a horizontal line (<HR>)
     965  ----
     966  See?
     967  }}}
     968}}}
     969{{{#!td
     970Four or more dashes will be replaced
     971by a horizontal line (<HR>)
     972----
     973See?
     974}}}
     975|----------------------------------
     976{{{#!td
     977  Two examples of line breaks:
     978  {{{
     979  "macro" style [[BR]] line break
     980  }}}
     981  or:
     982  {{{
     983  !WikiCreole style \\ line\\break
     984  }}}
     985}}}
     986{{{#!td
     987"macro" style [[BR]] line break
     988
     989!WikiCreole style \\ line\\break
     990}}}
     991|----------------------------------