Trac is being migrated to new services! Issues can be found in our new
YouTrack instance and WIKI pages can be found on our
website.
- Timestamp:
-
Aug 10, 2008, 8:15:55 PM (15 years ago)
- Author:
-
trac
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
|
v2
|
|
84 | 84 | }}} |
85 | 85 | |
86 | | === WikiMacros in reStructuredText === |
| 86 | === Wiki Macros in reStructuredText === |
87 | 87 | |
88 | | For doing WikiMacros in ReST you use the same directive as for syntax highlightning i.e |
| 88 | For doing [WikiMacros Wiki Macros] in ReST you use the same directive as for syntax highlighting i.e |
89 | 89 | code-block. To work you must use a version of trac that has #801 applied. |
90 | 90 | |
91 | | === WikiMacro Example === |
| 91 | === Wiki Macro Example === |
92 | 92 | |
93 | 93 | {{{ |
… |
… |
|
95 | 95 | #!rst |
96 | 96 | |
97 | | .. code-block:: HelloWorld |
98 | | |
99 | | Something I wanted to say |
| 97 | .. code-block:: RecentChanges |
100 | 98 | |
| 99 | Trac,3 |
101 | 100 | |
102 | 101 | }}} |
103 | 102 | }}} |
104 | 103 | |
105 | | Will result in the below. |
| 104 | Will result in the below: |
106 | 105 | |
107 | | [[HelloWorld(Something I wanted to say)]] |
| 106 | [[RecentChanges(Trac,3)]] |
108 | 107 | |
| 108 | Or a more concise Wiki Macro like syntax is also available: |
| 109 | |
| 110 | {{{ |
| 111 | {{{ |
| 112 | #!rst |
| 113 | |
| 114 | :code-block:`RecentChanges:Trac,3` |
| 115 | }}} |
| 116 | }}} |
109 | 117 | |
110 | 118 | === Bigger ReST Example === |
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!