RedmineはWiki記法が使える箇所のどこからでも、チケット・チェンジセット・Wikiページなどリソース間へリンクを行うことができます。
Wikiへのリンク:
別のプロジェクトのwikiへのリンクも可能です:
存在しないwikiページへのリンクは赤で表示されます。 例: Nonexistent page.
そのほかのリソースへのリンク:
エスケープ:
HTTP URLとメールアドレスは自動的にリンクになります:
http://www.redmine.org, someone@foo.bar
上記の記述は次のように表示されます: http://www.redmine.org, someone@foo.bar
URLのかわりに別のテキストを表示させたい場合は、標準的なtextile記法が利用できます:
"Redmine web site":http://www.redmine.org
上記の記述は次のように表示されます: Redmine web site
見出し、太字、テーブル、リスト等は、RedmineはTextile記法での記述に対応しています。Textile記法の詳細は http://en.wikipedia.org/wiki/Textile_(markup_language) を参照してください。Textileの一例を以下に示しますが、実際にはここで取り上げた以外の記法にも対応しています。
* *太字* * _斜体_ * _*太字で斜体*_ * +下線+ * -取り消し線-
表示例:
h1. Heading h2. Subheading h3. Subsubheading
Redmineは見出しにアンカーを設定するので、"#Heading", "#Subheading"などを指定してリンクが行えます。
p>. 右寄せ p=. センタリング
センタリングされた段落
段落を bq. で開始してください。
bq. Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern. To go live, all you need to add is a database and a web server.
表示例:
Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.
To go live, all you need to add is a database and a web server.
{{toc}} => 目次(左寄せ) {{>toc}} => 目次(右寄せ)
---
Redmineには以下の組み込みマクロが用意されています:
hello_world
サンプルのマクロです。
macro_list
上記のマクロを含め、利用可能なマクロの一覧を表示します。
child_pages
Displays a list of child pages. With no argument, it displays the child pages of the current wiki page. Examples:
!{{child_pages}} -- can be used from a wiki page only
!{{child_pages(depth=2)}} -- display 2 levels nesting only
include
別のWikiページの内容を挿入します。 以下は使用例です:
!{{include(Foo)}}
or to include a page of a specific project wiki:
!{{include(projectname:Foo)}}
collapse
Inserts of collapsed block of text. Example:
{{collapse(View details...)
This is a block of text that is collapsed by default.
It can be expanded by clicking a link.
}}
thumbnail
Displays a clickable thumbnail of an attached image. Examples:
{{thumbnail(image.png)}} {{thumbnail(image.png, size=300, title=Thumbnail)}}
Redmineのコードハイライトは CodeRay という、Rubyで記述された高速なライブラリを使用しています。Coderayはc, cpp, css, delphi, groovy, html, java, javascript, json, php, python, rhtml, ruby, scheme, sql, xml, yamlに対応しています。
Wikiページでコードハイライトを利用するには次のように記述します:
<pre><code class="ruby"> Place you code here. </code></pre>
表示例:
1 # The Greeter class
2 class Greeter
3 def initialize(name)
4 @name = name.capitalize
5 end
6
7 def salute
8 puts "Hello #{@name}!"
9 end
10 end