Project

General

Profile

Updated 28 days ago by Antonio De Marinis

Macro list

Below the list of all additionals macros available in Taskman Wiki language.

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
contact_plain
Contact Description Macro
contact_avatar
Contact avatar
contact
Contact with avatar
contact_note
Contact/Deal note
deal
Deal
graphviz
Render graph image from the wiki page which is specified by macro-args.

<pre>
{{graphviz(Foo)}}
{{graphviz(option=value...,Foo)}}
</pre>

* Available options are below.
** format={png|jpg|svg}
** layout={dot|neato|fdp|twopi|circo|osage|patchwork|sfdp}
** inline={true|false}
*** If svg format is specified, Its default output is inline SVG. If inline is false, img tag will be used.
** target={_blank|any} (*1)
** with_source (*1)
** no_map (*1)
** wiki=page(which link to) (*1)
** link_to_image (*1)
** align=value(e.g. {right|left}) (*1)
** width=value(e.g. 100px, 200%)
** height=value(e.g. 100px, 200%)
* (*1): These options do not affect to the inline SVG.
graphviz_me
Render graph image from the current wiki page.

<pre>
// {{graphviz_me}}
// {{graphviz_me(option=value...)}}
</pre>

* options: see graphviz macro.
graphviz_link
Render graph image from text within the macro command.

<pre>
{{graphviz_link()
  graphviz commands
}}
{{graphviz_link(option=value...)
  graphviz commands
}}
</pre>

* options: see graphviz macro.
mail
Mail icon Macro
send_file
Helpdesk send_file macro
calendar
  Display calendar (only works on wiki pages)
    Examples:

    {{calendar}}                    show calendar for current date
    {{calendar(year=2014,month=6)}} show calendar for Juni in year 2014
    {{calendar(show_weeks=true)}}   show calendar with week numbers
    {{calendar(select=2015-07-12 2015-07-31, show_weeks=true)}} preselect dates and show week numbers
    {{calendar(select=2016-03-13:2016-03-27)}} preselect dates between 2016/3/13 and 2016/3/27

cryptocompare
      Create CryptoCompare information.
        {{cryptocompare(options)}}
     see https://additionals.readthedocs.io/en/latest/macros/#cryptocompare
current_year
  Display current dates.  Examples:

    {{current_year}}       current year
    {{current_month}}      current month
    {{current_day}}        current day
    {{current_day}}        current day
    {{current_hour}}       current hour
    {{current_minute}}     current minute
    {{current_weekday}}    current weekday
    {{current_weeknumber}} current week number (1 - 52) The week starts with Monday
current_month
current_day
current_hour
current_min
current_weekday
current_weeknumber
gist
gist embed
gmap
  Display a google map.  Examples:

  Syntax:

  {{gmap([q=QUERY, mode=MODE, width=216, height=368])}}

  Examples:

    {{gmap(Munich)}} Google maps with Munich

    {{gmap(mode=directions, origin=Munich+Rosenheimerstr, destination=Arco)}} Direction from Munich to Arco
group_users
  Display users of group.

  Syntax:

    {{group_users(GROUP_NAME}}

    Examples:

    {{group_users(Team)}}
    ...List all users in user group "Team" (with the current user permission)

iframe
  Include iframe

    Syntax:

    {{iframe(<url> [, width=100%, height=485)}}

    Examples:

    show iframe of URL https://www.google.com/
    {{iframe(https://www.google.com/)}}

    show iframe of URL https://www.google.com/ and show link to it
    {{iframe(https://www.google.com/, with_link: true)}}
issue
  Create a link to issue with the subject of this issue.
       Syntax:

       {{issue(URL [, format=USER_FORMAT, id=ID, note_id=NOTE_ID)}}
       URL is URL to issue
       USER_FORMATS
       - text
       - short
       - link (default)
       - full
       ID is issue
       NOTE_ID is note id, if you want to display it

       Examples:

       {{issue(1)}}
       ...Link to issue with id and subject
       {{issue(http://myredmine.url/issues/1)}}
       ...Link to issue with id and subject
       {{issue(http://myredmine.url/issues/1#note-3)}}
       ...Link to issue with id and subject and display comment 3
       {{issue(1, format=short)}}
       ...Link to issue with subject (without id)
       {{issue(1, format=text)}}
       ...Display subject name
       {{issue(1, format=full)}}
       ...Link to issue with track, issue id and subject
last_updated_at
      Displays a date that updated the page.
        {{last_updated_at}}
        {{last_updated_at(project_name, wiki_page)}}
        {{last_updated_at(project_identifier, wiki_page)}}
last_updated_by
      Displays a user who updated the page.
        {{last_updated_by}}
meteoblue
  Display current weather from meteoblue service.  Examples:

  Syntax:

  {{meteoblue(<location> [, days=INT, width=216, height=368, color=BOOL])}}

  Examples:

    {{meteoblue(münchen_deutschland_2867714)}}       weather for Munich

    {{meteoblue(münchen_deutschland_2867714, days=6, color=false)}} weather for Munich of the next 6 days without color
members
  Display members.

  Syntax:

    {{members([PROJECT_NAME, title=My members list, role=ROLE)]}}

    PROJECT_NAME can be project identifier, project name or project id

    Examples:

    {{members}}
    ...List all members for all projects (with the current user permission)

    {{members(the-identifier)}}
    ...A box showing all members for the project with the identifier of 'the-identifier'

    {{members(the-identifier, role=Manager)}}
    ...A box showing all members for the project with the identifier of 'the-identifier', which
    have the role "Manager"

    {{members(the-identifier, title=My user list)}}
    ...A box showing all members for the project with the identifier of 'the-identifier' and with
    box title "My user list"

projects
  Display projects.

  Syntax:

    {{projects([title=My project list, with_create_issue=BOOL])}}

  Examples:

    {{projects}}
    ...List all project, which I am member of

    {{projects(title=My project list)}}
    ...List all project with title "My project list", which I am member of

    {{projects(with_create_issue=true)}}
    ...List all project with link to create new issue, which I am member of

recently_updated
      Displays a list of pages that were updated recently.
        {{recently_updated}}
        {{recently_updated([days])}}

        Examples:

        {{recently_updated}}
        ...List last updated pages (of the last 5 days)

        {{recently_updated(15)}}
        ...List last updated pages of the last 15 days

reddit
      Creates link to reddit.
        {{reddit(name)}}
slideshare
  Slideshare macro to include Slideshare slide.

    Syntax:

    {{slideshare(<key> [, width=595, height=485, slide=SLIDE])}}

    Examples:

    {{slideshare(57941706)}} show slideshare slide with default size 595x485
    {{slideshare(57941706, width=514, height=422)}} show slide with user defined size
    {{slideshare(57941706, slide=5)}} start with slide (page) 5
tradingview
      Creates Tradingview chart
        {{tradingview(options)}}
      see https://additionals.readthedocs.io/en/latest/macros/#tradingview
twitter
      Creates link to twitter account page or topic.
        {{twitter(name)}}
user
Display link to user profile

Syntax:

{{user(USER_NAME [, format=USER_FORMAT, avatar=BOOL])}}

USER_NAME can be user id or user name (login name)
USER_FORMATS
- system (use system settings) (default)
- firstname_lastname
- firstname_lastinitial
- firstinitial_lastname
- firstname
- lastname_firstname
- lastnamefirstname
- lastname_comma_firstname
- lastname
- username

Examples:

{{user(1)}}
...Link to user with user id 1

{{user(1, avatar=true)}}
...Link to user with user id 1 with avatar

{{user(admin)}}
...Link to user with username 'admin'

{{user(admin, format=firstname)}}
...Link to user with username 'admin' and show firstname as link text
vimeo
  Vimeo macro to include vimeo video.

    Syntax:

    {{vimeo(<video key> [, width=640, height=360, autoplay=BOOL])}}

    Examples:

    {{vimeo(142849533)}} show video with default size 640x360
    {{vimeo(142849533, width=853, height=480)}} show video with user defined size
    {{vimeo(142849533, autoplay=true)}} autoplay video
youtube
  Youtube macro to include youtube video.

    Syntax:

    {{youtube(<video key> [, width=640, height=360, autoplay=BOOL])}}

    Examples:

    {{youtube(KMU0tzLwhbE)}} show video with default size 640x360
    {{youtube(KMU0tzLwhbE, width=853, height=480)}} show video with user defined size
    {{youtube(KMU0tzLwhbE, autoplay=true)}} autoplay video

Go to top