Project

General

Profile

Patch #2174 » wiki_syntax_detailed.html.patch

Jan Topiński, 2008-11-13 10:44

View differences:

public/help/wiki_syntax_detailed.html (kopia robocza)
<h2><a name="12" class="wiki-page"></a>Macros</h2>
<p>Redmine has the following builtin macros:</p>
<p>Redmine has the following builtin macros:</p>
<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>
<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>
<pre><code>{{child_pages(Foo)}}</code></pre><p>results in:</p>
<ul>
<li><a href="/wiki/testproj/Foo" class="wiki-page new">Foo</a>
<ul>
<li><a href="/wiki/testproj/Bar_1" class="wiki-page new">bar 1</a></li>
<li><a href="/wiki/testproj/Bar_2" class="wiki-page new">bar 2</a></li>
</ul></li>
</ul>
<p>while:</p>
<pre><code>{{child_pages}}</code></pre>
<p>will result on page <a href="/wiki/testproj/Foo" class="wiki-page new">Foo</a> with:</p>
<ul>
<li><a href="/wiki/testproj/Bar_1" class="wiki-page new">bar 1</a></li>
<li><a href="/wiki/testproj/Bar_2" class="wiki-page new">bar 2</a></li>
</ul></dd>
<dt><code>include</code></dt><dd><p>Include a wiki page. Example:</p>
<pre><code>{{include(Foo)}}</code></pre>
<p>or to include a page of a specific project wiki:</p>
<pre><code>{{include(projectname: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>
<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>
<dt><code>hello_world</code></dt><dd><p>Sample macro.</p></dd></dl>
<h2><a name="13" class="wiki-page"></a>Code highlighting</h2>
<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>
(1-1/2)