Skip to main content
Version: TeamForge 23.1

Wiki Syntax

For a quick introduction, see the documentation for JSPwiki, which is the wiki engine that drives the TeamForge wiki tool.

Text Effects on Wiki Pages

Wiki markup is great for making text look the way you need it to look.

note

These tools are for use only when you are editing a wiki page in text mode. If you try to use them in WYSIWYG mode, they are displayed just the way you typed them in, which is not what you want.

SyntaxEffectDetails
- - - -Creates a horizontal rule.
\\Creates a line break.
!!!textCreates a level 1 (large) header.
!!textCreates a level 2 (medium) header.
!textCreates a level 3 (small) header.
' 'text' 'Creates italic text. (That's two single quotes on each side.)
__text__Creates bold text. (That's two underscores on each side.)
{{text}}Creates monospaced text.
*textCreates a bulleted list item.
#textCreates a numbered list item.
;term:exCreates a definition for the word "term'"with the explanation "ex."
{{{text}}}Creates pre-formatted text.
%%(<css-style>)<your text>%%Defines a CSS style command.%%(font-size: 150%; color: red;) Hello, world!%%
Blank lineStarts a new paragraph.

Bring TeamForge Data into Wiki Pages

Use this markup format to bring in data from elsewhere on your TeamForge site.

note

These are for use only when you are editing a wiki page in text mode. If you try to use them in WYSIWYG mode, they are displayed just the way you typed them in, which is not what you want.

SyntaxEffectDetails
[{INSERT ExcelToHTMLPlugin src='c:\somesheet.xls'}] or [{INSERT ExcelToHTMLPlugin border='1' src='\the_server\somesheet.xls'}]Reads a Microsoft Excel file and displays it as an HTML table.Parameters:
  • src: URL / Attachment file name
  • srcsheet: Sheet name
  • height: height attribute for the HTML table
  • width: width attribute for the HTML table
  • border: border attribute for the HTML table

More at ExcelToHTMLPlugin

Text Navigation Tools for Wiki Pages

You can use wiki syntax to help readers get around.

note

To use these tools, copy and paste the sample syntax into your Wiki page in "Plain Editor" mode, then customize it appropriately.

SyntaxEffectDetails
%%insert-toc%%Creates a table of contents consisting of the header text on the page.
[link]Creates a link to a new Wiki page called "link."If the link is a complete URL, a link to the URL is created. If the link points to a .gif, .jpg, or .png image, the image is rendered directly in the page.
[title|link]Creates a link to a new Wiki page called "link" with the text "title" displayed for the URL.If the link is a complete URL, a link to the URL is created. If the link points to a .gif, .jpg, or .png image, the image is rendered directly on the page with "title" as ALT text.
~TestTextDisables link creation for a CamelCase word.CamelCase words are two or more uppercase words with no spaces. By default, a CamelCase word automatically creates a link to a new Wiki page.
[link]Creates the text "[link]."
[{IFramePlugin url='http://open.collab.net/' width='100%' height='500' border='1' scrolling='yes' align='center'}]Embeds an iframe into a wiki page.- attachment: Attachment path, e.g. 'IFramePlugin.jar(info)' - url: A URL, e.g 'http://www.google.com' - align: Align the iFrame to left/center/right - border: Whether there is a border or not - width: Width of the iFrame - height: Height of the iFrame - marginwidth: Margin width of the iFrame - marginheight: Margin height of the iFrame - scrolling: Whether the iFrame can be scrolled or not See http://www.ecyrd.com/JSPWiki/wiki/iFramePlugin
Tab Completion <Keyword+Tab>You can type a keyword and hit the Tab key (under the Tab Completion mode). The editor will fill in with a sample template for the specific markup represented by the keyword.- link: Inserts a sample link. - h1: Inserts level 1 heading sample. - h2: Inserts level 2 heading sample. - h3: Inserts level 3 heading sample. - bold: Inserts a bold text sample. - italic: Inserts an italics text sample. - mono: Inserts a mono text sample. - sup: Inserts a superscript sample. - sub: Inserts a subscript sample. - strike: Inserts a strike through text sample. - br: Inserts a line break. - hr: Inserts a horizontal line. - pre: Inserts a pre-formatted text sample. - code: Inserts a code block sample. - dl: Inserts a definition list block sample. - toc: Inserts the Table of Contents plugin syntax. - tab: Inserts a sample tabbed section block syntax. - table: Inserts a sample table syntax. - img: Inserts a sample image plugin syntax. - quote: Inserts a sample quoted text block. - sign: Inserts the user's signature.

Attachments for Wiki Pages

You can use wiki markup to bring in information from external sources.

note

These tools are for use only when you are editing a wiki page in text mode. If you try to use them in WYSIWYG mode, they are displayed just the way you typed them in, which is not what you want.

SyntaxEffectDetails
[WikiPageName/attachmentName]Embeds an attachment in the page.If the attachment is a .gif, .jpg, or .png image file, the attachment will be embedded in the page; otherwise, the name of the attachment will display as a downloadable link. After adding attachments, the exact syntax for including the current page's attachments is shown next to each attachment's name in the Attachments section of the Edit Wiki page. You can use the same syntax to embed attachments from other wiki pages in the same project.
[{InsertAttachment page='WikiPage/attachment'}]Inserts the contents of an attachment (text file) into a page.If the attachment is a text file, the content of the text file is inserted into the page. For more information, click here.
  • This markup is for inserting content of a text file.
  • Files with the following extensions are allowed as attachment: .txt, .html, .xml, .cpp and .java.
  • In addition to image files, inserting files with the following extensions is not supported by this markup: .doc, .xls, .pdf, .zip, .jar.
[{Mediaplayer src='fileName.wmv'}]Embeds a Windows Media Player or Quicktime Player on a wiki page.src: Media URL / Attachment file name
playertype: "mediaplayer" / "quicktime"
width, height: Dimension of the embedded media displayed
movieheight, moviewidth: Dimension of the display screen
caption: Caption to be displayed below the media player
control: Displays Control bar. mediaplayer: 1 (Show) / 0 (Hide); quicktime: true (Show) / false (Hide)
autostart: Play automatically. mediaplayer: 1 (Auto) / 0 (Manual, Click to play); quicktime: true (Auto) / false (Manual, Click to play)
autorewind: Automatically rewinds when play ends. mediaplayer: 1 (Auto Rewind) / 0 (Play once); quicktime: true (Auto Rewind) / false (Play once)
playcount: Number of times the movie will play. 0 represents always play.
See here
[{INSERT ExcelToHTMLPlugin src='WikiPage\somesheet.xls'}] or [{INSERT ExcelToHTMLPlugin border='1' src='\\the_server\somesheet.xls'}]Reads a Microsoft Excel file and displays it as an HTML table.Parameters:
  • src: URL / Attachment file name
  • srcsheet: Sheet name
  • height: height attribute for the html table
  • width: width attribute for the html table
More at here
[{arnaud.Flash src='yourAttachedFlash.swf'}]Embeds a Flash Player on your wiki page.width='n'
height='n'
`controls='true
[{IFramePlugin url='http://open.collab.net/' width='100%' height='500' border='1' scrolling='yes' align='center'}]Embeds an iframe into a wiki page.Parameters:
  • attachment: Attachment path, e.g. 'IFramePlugin.jar(info)'
  • url: A URL, e.g 'http://www.google.com'
  • align: Align the iFrame to left/center/right
  • border: Whether there is a border or not
  • width: Width of the iFrame
  • height: Height of the iFrame
  • marginwidth: Margin width of the iFrame
  • marginheight: Margin height of the iFrame
  • scrolling: Whether the iFrame can be scrolled or not
See here

Tables on Wiki Pages

You can use wiki markup to organize information in tables on a wiki page.

note

These tools are for use only when you are editing a wiki page in text mode. If you try to use them in WYSIWYG mode, they are displayed just the way you typed them in, which is not what you want.

SyntaxEffectDetails
[{Table <table-parameters> | | Table Header Example | | More... | Table Data Example | More... }]Inserts a table on the wiki page. See this page for the markup for table elements.- rowNumber: <integer> - Row number starts counting at this value; default = 0 (used in conjunction with '#' syntax)
  • style: <css-style> Add formatting to the table, e.g. style:'border=2px solid black;'
  • dataStyle: <css-style> Format all data cells (prefixed by single pipe signs '|')
  • headerStyle: <css-style> Format all header cells (prefixed by double pipe signs '||')
  • evenRowStyle: <css-style> Format the even rows, e.g. evenRowStyle='background: #ffff00;'
  • oddRowStyle: <css-style> Format the odd rows, e.g. oddRowStyle='color: red;' | | ||head1||head2 | Creates a table column with header text "head1" in the first cell and "head2" in the second cell. | | | |col1|col2 | Creates a table row containing the text "col1" in the first cell and "col2" in the second cell. | | | |<| Collapses a cell with the previous cell so it spans multiple columns. | TablePlugin | | ||<| Collapses a header cell with the previous header cell so it spans multiple columns. | TablePlugin | | |^| Collapses a cell with the cell above so that it spans multiple rows. | TablePlugin | | ||^| Collapses a header cell with the header cell above so that it spans multiple rows. | TablePlugin | | ( <css-style> ) | Inside a table cell, adds specific formatting to a cell. | TablePlugin | | # | Inside a table cell, displays the current row number with auto row numbering. | TablePlugin | | [{INSERT ExcelToHTMLPlugin src='WikiPage\somesheet.xls'}] or [{INSERT ExcelToHTMLPlugin border='1' src='\the_server\somesheet.xls'}] | Reads a Microsoft Excel file that is attached to a wiki page, and displays it as an HTML table. | Parameters:
    • src: If the Excel file is attached to the current wiki page, this is the attachment file name. If it is attached to some other wiki page, this is the URL of the attachment.
    • srcsheet: Sheet name
    • height: height attribute for the html table
    • width: width attribute for the html table
    • border: border attribute for the html table
    • cellpadding: cellpadding attribute for the html table
    • cellspacing: cellspacing attribute for the html table
    • background: background attribute for the html table. Attachment file name is accepted as value
    • backgroundcolor: backgroundcolor attribute for the html table
    • keepformat: Formating specified in the excel sheet is applied for the html table.
      note

      The complete formating from excel sheet is not applied to the html table, for example, font, font size, etc are not applied and background color, foreground color, etc are applied. yes/no is accepted as value

    • headercolor: Foreground color for the header (eg: #dcdcdc)
    • headerbackgroundcolor: Background color for the header (eg: #adadad)
    • evenrowcolor: Foreground color for the even rows (eg: #adadad)
    • evenrowbackgroundcolor: Background color for the even rows (eg: #adadad)
    • oddrowcolor: Foreground color for the odd rows (eg: #adadad)
    • oddrowbackgroundcolor: Background color for the odd rows (eg: #adadad)
    • tableclass: Style class name for the HTML table
    • headerclass: Style class name for header
    • evenrowclass: Style class name for the even rows
    • oddrowclass: Style class name for the even rows
    • stylesheet: Stylesheet for the table. Attachment file name is accepted as value See ExcelToHTMLPlugin | | [{TableOfContents }]\ | Creates a table of contents consisting of the header text on the page. | |

Wiki Plugins

You can use pre-defined wiki plugins to format your current page.

Plugin NameDetails
Section Headings TemplateInserts a page template that includes a table of contents and several section headings. Typically, this can be used in a new or blank page.
Sortable TableInserts a new table that can be sorted when you click on the column headers.
Zebra TableInserts a new table that has alternating background colors for each row.
Table of Contents PluginThis plugin automatically generates table of contents that provides links to all the headings on your page.
Insert Page PluginThis plugin will insert a copy of another page into the current page. You must specify the name of the page to insert.
Current Time PluginThis plugin displays the current date and local time of the server when the page is viewed.
Insert AttachmentThe insert attachment plugin allows you to insert the contents of an attachment into a page.
Media PlayerThis is an embedded player in your wiki page, supporting Windows Media Player and Apple QuickTime.
Insert TableAdditional table support including multi-line table editing, cell merging, and automatic row numbering.
Flash PlayerAn embedded flash player for the wiki page.
Insert ExcelAllows you to insert a Microsoft Excel file as a table.
Insert iFrameAllows embedding attachments, external URLs, and files (relative to the docbase).
Code to HTMLAllows source code syntax to be rendered as an HTML output and supports syntax from 130 different programming languages.
Index PluginDisplays all the pages in the wiki in alphabetical order.
Recent Changes PluginInserts the latest changes in order.
Referred Pages PluginFinds and lists all the pages that are referred to by the current page. The depth parameter allows displaying a recursive tree of referred pages.
Referring Pages PluginFinds and lists all the pages that refer to the current page.
Undefined Pages PluginLists all the pages that are referred to but not yet created.
Unused Pages PluginLists all the pages that are not currently referred to by any other page.
ExcelToHTMLPluginProvides an HTML view for the Excel spreadsheet files.
PDFPluginProvides the PDF output for the files.
WikiContentToHTML PluginExports a specific page to HTML.