210 |
210 |
|
211 |
211 |
<h2><a name="12" class="wiki-page"></a>Macros</h2>
|
212 |
212 |
|
213 |
|
<p>Redmine has the following builtin macros:</p>
|
|
213 |
<p>Redmine has the following builtin macros:</p>
|
214 |
214 |
|
215 |
|
<p><dl><dt><code>hello_world</code></dt><dd><p>Sample macro.</p></dd><dt><code>include</code></dt><dd><p>Include a wiki page. Example:</p>
|
|
215 |
<dl><dt><code>child_pages</code></dt><dd><p>Displays page name and list of child pages. When no parameter is given only current page child pages are displayed. Example:</p>
|
|
216 |
<pre><code>{{child_pages(Foo)}}</code></pre><p>results in:</p>
|
|
217 |
<ul>
|
|
218 |
<li><a href="/wiki/testproj/Foo" class="wiki-page new">Foo</a>
|
|
219 |
<ul>
|
|
220 |
<li><a href="/wiki/testproj/Bar_1" class="wiki-page new">bar 1</a></li>
|
|
221 |
<li><a href="/wiki/testproj/Bar_2" class="wiki-page new">bar 2</a></li>
|
|
222 |
</ul></li>
|
|
223 |
</ul>
|
|
224 |
<p>while:</p>
|
|
225 |
<pre><code>{{child_pages}}</code></pre>
|
|
226 |
<p>will result on page <a href="/wiki/testproj/Foo" class="wiki-page new">Foo</a> with:</p>
|
|
227 |
<ul>
|
|
228 |
<li><a href="/wiki/testproj/Bar_1" class="wiki-page new">bar 1</a></li>
|
|
229 |
<li><a href="/wiki/testproj/Bar_2" class="wiki-page new">bar 2</a></li>
|
|
230 |
</ul></dd>
|
|
231 |
|
|
232 |
<dt><code>include</code></dt><dd><p>Include a wiki page. Example:</p>
|
|
233 |
<pre><code>{{include(Foo)}}</code></pre>
|
|
234 |
<p>or to include a page of a specific project wiki:</p>
|
|
235 |
<pre><code>{{include(projectname:Foo)}}</code></pre></dd>
|
|
236 |
|
|
237 |
<dt><code>macro_list</code></dt><dd><p>Displays a list of all available macros, including description if available.</p></dd>
|
216 |
238 |
|
217 |
|
<pre><code>{{include(Foo)}}</code></pre></dd><dt><code>macro_list</code></dt><dd><p>Displays a list of all available macros, including description if available.</p></dd></dl></p>
|
218 |
|
|
219 |
|
|
|
239 |
<dt><code>hello_world</code></dt><dd><p>Sample macro.</p></dd></dl>
|
|
240 |
|
220 |
241 |
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2>
|
221 |
242 |
|
222 |
243 |
<p>Code highlightment relies on <a href="http://coderay.rubychan.de/" class="external">CodeRay</a>, a fast syntax highlighting library written completely in Ruby. It currently supports c, html, javascript, rhtml, ruby, scheme, xml languages.</p>
|