Project

General

Profile

Macros

The following macros are available:

hello_world
Sample macro.
macro_list
Displays a list of all available macros, including description if available.
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
{{child_pages(Foo)}} -- lists all children of page Foo
{{child_pages(Foo, parent=1)}} -- same as above with a link to page Foo
include
Includes a wiki page. Examples:

{{include(Foo)}}
{{include(projectname:Foo)}} -- to include a page of a specific project wiki
collapse
Inserts of collapsed block of text. Examples:

{{collapse
This is a block of text that is collapsed by default.
It can be expanded by clicking a link.
}}

{{collapse(View details...)
With custom link text.
}}
thumbnail
Displays a clickable thumbnail of an attached image. Examples:

{{thumbnail(image.png)}}
{{thumbnail(image.png, size=300, title=Thumbnail)}} -- with custom title and size
mj
MathJax Macro:

Usage:
{{mj( single line MathJax Syntax )}}

{{mj
Multi line
MathJax Syntax
}}
fn
Create a footnote.

 {{fn(word, description)}}
fnlist
Displays footnotes of the page.
count
Count access to the pages.

  !{{count}}
show_count
Displays an access count of the page.

  !{{show_count}}
popularity
Displays list of the popular pages.

  !{{popularity}}
  !{{popularity(max)}}
  !{{popularity(max, term)}}
comment_form
Displays a comment form.
comments
Display comments of the page.
new
Displays a string 'new'.

  !{{new(yyyy-mm-dd)}}
  !{{new(yyyy-mm-dd, expire)}}

Default of expire is 5.
recent
Displays a list of pages that were changed recently. '

 !{{recent}}'
 !{{recent(number_of_days)}}
project
Creates link to other project.

 {{project(project_name)}}
 {{project(project_identifire}}
 {{project(project_name, alias)}}
 {{project(project_identifire, alias}}
div_start_tag
Displays a <pre><div id="id_name" class="class_name"></pre>

 !{{div_start_tag(id_name)}}'
 !{{div_start_tag(id_name, class_name)}}
div_end_tag
Displays a <pre></div></pre>

  !{{div_end_tag}}
iframe
Insert an iframe tag

  !{{iframe(url, width, height)}}

tags
Displays tags.

  !{{tags}}
tagcloud
Displays tagcloud.

  !{{tagcloud}}
wiki
Link to wiki page of other project.

  !{{wiki(project_name, wiki_page)}}
 !{{wiki(project_name, wiki_page, alias)}}
 !{{wiki(project_identifier, wiki_page)}}
 !{{wiki(project_identifier, wiki_page, alias)}}
twitter
Creates link to twitter account page.

 !{{twitter(user_name)}}
page_break
Page break here.
lastupdated_by
Displays a user who updated the page.

 !{{lastupdated_by}}
vote
Vote macro.

  !{{vote(key)}}
  !{{vote(key, label)}}
show_vote
Display result of vote macro.

  !{{show_vote(key)}}
new_page
Create new page.

taggedpages
Displays pages that have specified tag.

  !{{taggedpages(tagname)}}
  !{{taggedpages(tagname, project)}}
lastupdated_at
Displays a date that updated the page.

 !{{lastupdated_at}}
html
Embed raw html
Usage:
<pre>{{html
HTML CODE
}}</pre>
css
Embed raw css
css_url
Insert a CSS file into the DOM
Usage:
<pre>{{css_url(http://css.url)}}</pre>
js
Embed raw js
js_url
Insert a JS file into the DOM
Usage:
<pre>{{js_url(http://js.url)}}</pre>
wiking_hook
Adds new Redmine hook to Wiki page and calls it. Example:

  !{{wiking_hook(name, argument=value)}}