Changes between Version 21 and Version 22 of 0.12/WikiFormatting
- Timestamp:
- Jul 16, 2012, 9:16:12 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
0.12/WikiFormatting
v21 v22 1 ** Note: this page was used to prepare the 0.12 version of wiki:/WikiFormatting, see now directly that toplevel page ** 1 ** Note: this page documents the 0.12 version of Trac, see [[0.11/WikiFormatting]] if you need the previous version ** 2 2 3 = WikiFormatting = 3 4 [[TracGuideToc]] 5 [[TranslatedPages]] 4 6 5 7 Wiki markup is a core feature in Trac, tightly integrating all the other parts of Trac into a flexible and powerful whole. … … 20 22 21 23 22 == Cheat sheet ==24 == Cheat sheet == 23 25 24 26 ||= '''Category''' =||= '''Wiki Markup''' =||= '''Display''' =|| … … 29 31 || `'''bold'''`, `''italic''`, `'''''Wikipedia style'''''` || \ 30 32 || '''bold''', ''italic'', '''''Wikipedia style''''' || 31 || {{{`monospaced and ''nowiki''`}}} || \32 || `monospaced and nowiki` ||33 || {{{`monospaced (''other markup ignored'')`}}} || \ 34 || `monospaced (''other markup ignored'')` || 33 35 || `**bold**`, `//italic//`, `**//!WikiCreole style//**` || \ 34 36 || **bold**, //italic//, **//!WikiCreole style//** || … … 42 44 }}} 43 45 {{{#!td style="padding-left: 2em" 44 == Level 2 46 == Level 2 == 45 47 === Level 3 ^([#hn note])^ 46 48 }}} … … 66 68 {{{ 67 69 * bullets list 68 on multiple paragraphs70 on multiple lines 69 71 1. nested list 70 72 a. different numbering … … 74 76 {{{#!td 75 77 * bullets list 76 on multiple paragraphs78 on multiple lines 77 79 1. nested list 78 80 a. different numbering … … 86 88 {{{ 87 89 term:: definition on 88 multiple paragraphs90 multiple lines 89 91 }}} 90 92 }}} 91 93 {{{#!td 92 94 term:: definition on 93 multiple paragraphs95 multiple lines 94 96 }}} 95 97 |----------------------------------------------------------- … … 168 170 || Ticket [[ticket:1]], [[ticket:1|ticket one]] || 169 171 |----------------------------------------------------------- 170 {{{#!th rowspan=2 171 [#EscapingLinksandWikiPageNames Escaping Markup] 172 {{{#!th rowspan=2 173 [#SettingAnchors Setting Anchors] 174 }}} 175 || `[=#point1 (1)] First...` ||\ 176 || [=#point1 (1)] First... || 177 || `see [#point1 (1)]` ||\ 178 || see [#point1 (1)] || 179 |----------------------------------------------------------- 180 {{{#!th rowspan=3 181 [#Escaping Escaping Markup] 172 182 }}} 173 183 || `!'' doubled quotes` ||\ … … 175 185 || `!wiki:WikiFormatting`, `!WikiFormatting` ||\ 176 186 || !wiki:WikiFormatting, !WikiFormatting || 187 || {{{`}}}`{{{-}}}`{{{`}}}` triple curly brackets` ||\ 188 || `{{{-}}}` triple curly brackets || 177 189 |----------------------------------------------------------- 178 190 ||= [#Images Images] =|| `[[Image(`''link''`)]]` || [[Image(htdocs:../common/trac_logo_mini.png)]] || … … 287 299 followed by a single space and the headline text. 288 300 289 [=#hn] The headline text can be followed by the same number of "=" characters, but this is no longer mandatory. 301 [=#hn] 302 The headline text can be followed by the same number of "=" characters, but this is no longer mandatory. 290 303 291 304 Finally, the heading might optionally be followed by an explicit id. If not, an implicit but nevertheless readable id will be generated. … … 304 317 {{{ 305 318 #!div 319 = Heading = 306 320 == Subheading 307 321 === About ''this'' === … … 669 683 670 684 671 == Escaping Links and WikiPageNames == 685 == Setting Anchors == 686 687 An 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, in order to uniquely identify a position in the document: 688 689 {{{ 690 [=#point1] 691 }}} 692 693 This syntax was chosen to match the format for explicitly naming the header id [#Headings documented above]. For example: 694 {{{ 695 == Long title == #title 696 }}} 697 698 It's also very close to the syntax for the corresponding link to that anchor: 699 {{{ 700 [#point1] 701 }}} 702 703 Optionally, a label can be given to the anchor: 704 {{{ 705 [[=#point1 '''Point 1''']] 706 }}} 707 708 ||= Wiki Markup =||= Display =|| 709 |---------------------------------- 710 {{{#!td 711 {{{ 712 [#point2 jump to the second point] 713 714 ... 715 716 Point2: [=#point2] Jump here 717 }}} 718 }}} 719 {{{#!td 720 [#point2 jump to the second point] 721 722 ... 723 724 Point2: [=#point2] Jump here 725 }}} 726 727 For more complex anchors (e.g. when a custom title is wanted), one can use the Span macro, e.g. `[[span(id=point2, class=wikianchor, title=Point 2, ^(2)^)]]`. 728 729 730 == Escaping Links, WikiPageNames and other Markup == #Escaping 672 731 673 732 You may avoid making hyperlinks out of TracLinks by preceding an expression with a single "!" (exclamation mark). … … 679 738 !#42 is not a link 680 739 }}} 740 {{{ 741 Various forms of escaping for list markup: 742 `-` escaped minus sign \\ 743 ``1. escaped number \\ 744 {{{*}}} escaped asterisk sign 745 }}} 681 746 }}} 682 747 {{{#!td 683 748 !NoHyperLink 684 749 !#42 is not a link 750 751 Various forms of escaping for list markup: 752 `-` escaped minus sign \\ 753 ``1. escaped number \\ 754 {{{*}}} escaped asterisk sign 685 755 }}} 686 756 … … 694 764 * `[[Image(wiki:WikiFormatting:picture.gif)]]` (referring to attachment on another page) 695 765 * `[[Image(ticket:1:picture.gif)]]` (file attached to a ticket) 696 * `[[Image(htdocs:picture.gif)]]` (referring to a file inside project htdocs)766 * `[[Image(htdocs:picture.gif)]]` (referring to a file inside the [TracEnvironment environment] `htdocs` directory) 697 767 * `[[Image(source:/trunk/trac/htdocs/trac_logo_mini.png)]]` (a file in repository) 698 768 … … 707 777 }}} 708 778 709 See WikiMacros for further documentation on the `[[Image()]]` macro .779 See WikiMacros for further documentation on the `[[Image()]]` macro, which has several useful options (`title=`, `link=`, etc.) 710 780 711 781 … … 938 1008 !WikiCreole style \\ line\\break 939 1009 }}} 1010