RedmineTextFormatting » History » Version 58

« Previous - Version 58/126 (diff) - Next » - Current version
Dieter Egert, 2011-06-17 17:35

Wiki formatting


Redmine links

Redmine allows hyperlinking between issues, changesets and wiki pages from anywhere wiki formatting is used.

  • Link to an issue: #124 (displays #124, link is striked-through if the issue is closed)
  • Link to a changeset: r758 (displays r758)
  • Link to a changeset with a non-numeric hash: commit:c6f4d0fd (displays c6f4d0fd). Added in r1236.

Wiki links:

  • [[Guide]] displays a link to the page named 'Guide': Guide
  • [[Guide|User manual]] displays a link to the same page but with different text: User manual
  • [[Guide#User-guide|User guide]] displays a link to the header on the same page with different text: User guide

You can also link to pages of another project's wiki:

  • [[sandbox:some page]] displays a link to the page named 'Some page' of the Sandbox wiki
  • [[sandbox:]] displays a link to the Sandbox wiki main page

Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.

Links to others resources:

  • Documents:
    • document#17 (link to document with id 17)
    • document:Greetings (link to the document with title "Greetings")
    • document:"Some document" (double quotes can be used when document title contains spaces)
    • document:some_project:"Some document" (link to a document in a different project)
  • Versions:
    • version#3 (link to version with id 3)
    • version:1.0.0 (link to version named "1.0.0")
    • version:"1.0 beta 2"
  • Projects:
    • project#<id> (link to project with <id>)
    • project:<identifier>
    • project:<name>
  • Attachments:
    • (link to the attachment of the current object named
    • For now, attachments of the current object can be referenced only (if you're on an issue, it's possible to reference attachments of this issue only)
  • Repository files
    • source:some/file -- Link to the file located at /some/file in the project's repository
    • source:some/file@52 -- Link to the file's revision 52
    • source:some/file#L120 -- Link to line 120 of the file
    • source:some/file@52#L120 -- Link to line 120 of the file's revision 52
    • source:"some file@52#L120" -- Double quotes can be used when the URL contains spaces
    • export:some/file -- Force the download of the file


  • You can prevent Redmine links from being parsed by preceding them with an exclamation mark: !

External links

HTTP URLs and email addresses are automatically turned into clickable links: HTTP URLs and email addresses can also use different text than the link itself:
  • "Redmine web site": -- External link with different text: Redmine web site
  • "Email someone" -- Email link with different text: Email someone
More complex email instructions can be added to an email link. A default subject, default body and CC information can be defined. Note that spaces in any of these fields need to be replaced with the code %20.
  • "Email webmaster and admin" -- Email to webmaster, CC admin: Email webmaster and admin
  • "Email someone for help" -- Email link with the subject "Website Help": Email someone for help
  • "Email someone for help" -- Email link with the subject "Website Help" and a default body: Email someone for help

Text formatting

For things such as headlines, bold, tables, lists, Redmine supports Textile syntax. See for information on using any of these features. A few samples are included below, but the engine is capable of much more of that.


JPL(Jean-Philippe Lang)



Font style

* *bold*
* _italic_
* *_bold italic_*
* +underline+
* -strike-through-
* Plain ^superscript^
* Plain ~subscript~


  • bold
  • italic
  • bold italic
  • underline
  • strike-through
  • Plain superscript
  • Plain subscript

Inline images

  • !image_url! displays an image located at image_url (textile syntax)
  • !>image_url! right floating image

If you have an image attached to your wiki page, it can be displayed inline using its filename: !attached_image.png!


h1. Heading
h2. Subheading
h3. Subheading


p. left aligned

p(. left ident 1em

p((. left ident 2em
as well as for following lines

p>. right aligned

p)))>. right ident 3em

p=. This is centered paragraph.

left aligned

left ident 1em

left ident 2em
as well as for following lines

right aligned

right ident 3em

This is centered paragraph.


To escape wiki syntax

 <pre> *Your text won't become bold* </pre> 


 *Your text won't become bold* 


Start the paragraph with 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.

Unordered lists

* Item 1
* Item 2
** Item 21
** Item 22
* Item 3


  • Item 1
  • Item 2
    • Item 21
    • Item 22
  • Item 3

Ordered lists

# Item 1
# Item 2
# Item 3
## Item 3.1
## Item 3.2


  1. Item 1
  2. Item 2
  3. Item 3
    1. Item 3.1
    2. Item 3.2


|_.UserID|_.Name|_.Group|_. attribute list |
|\3=.IT    |<. align left|
|1|Artur Pirozhkov|/2.Users|>. align right|
|2|Vasya Rogov|=. center |
|3|John Smith |Admin
               (root)|^. valign top |
|4|-          |Nobody
               (anonymous)|~. valign bottom|


UserID Name Group attribute list
IT align left
1 Artur Pirozhkov Users align right
2 Vasya Rogov center
3 John Smith Admin
valign top
4 - Nobody
valign bottom

Table of content

{{toc}} => left aligned toc
{{>toc}} => right aligned toc


Redmine has the following builtin macros:


Sample macro.


Displays a list of all available macros, including description if available.


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 a wiki page. Example:


or to include a page of a specific project wiki:


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.

Displays a clickable thumbnail of an attached image. Examples:

{{thumbnail(image.png, size=300, title=Thumbnail)}}

Sample macro

Code highlighting

Code highlighting relies on CodeRay, a fast syntax highlighting library written completely in Ruby. It currently supports C, C++, CSS, Delphi, Diff, Groovy, HTML, Java, Javascript, JSON, Nitro-XHTML, PHP, Python, RHTML, Ruby, Scheme, SQL, XML and YAML code.

You can highlight code in your wiki page using this syntax:

<pre><code class="ruby">
  Place your code here.


# The Greeter class
class Greeter
  def initialize(name)
    @name = name.capitalize

  def salute
    puts "Hello #{@name}!" 



Частичный перевод на русский

Redmine_logo.png (5.86 KB) Jean-Philippe Lang, 2012-01-22 12:11

1111.jpg (50.5 KB) Кирилл Ивашнев, 2018-05-18 21:14