Page actions

Wiki Syntax

Tiki Wiki CMS Groupware has a rich and flexible system for formatting and presenting pages. This page describes how to format text, using wiki syntax, on wiki pages and other area that support wiki formatting (including articles, forums, and blogs).

About wiki syntax

Wiki syntax is a markup language used in a wiki web page. (For a broader overview of wiki syntax, please see Why Wiki Syntax Is Important.) To avoid requiring users to learn HTML, wiki syntax uses common characters in uncommon ways (or character combinations that are not normally used together) and provides them with a special meaning. Some of the character combinations only work at the beginning of a line, while others can be inserted anywhere in the text and are active until a closing combination of characters is met.

Wiki syntax uses a character repeated twice for most functions, but it also has a few two-character combinations. With a two-character combination, the characters are reversed to turn off the function. Monospaced text provides a good example of this; the minus (-) and plus (+) characters are used to start the using monospaced text and plus (+) and minus (-) characters specify the end of it.

Quick reference - basic text formatting

Desired Formatting

Syntax

Result or description

Bold

__text__

text

Centered

::text::

text

Colored Text

~~blue:text~~

text

Italic

''text''

''text''

Monospaced

-+text+-

-+text+-

Underlined

===text===

text

Text in a box

^text^

text

Display syntax

~np~__not bold__~/np~

~np~__not bold__~/np~

Headings

!Heading 1%%%!!Heading 2%%%!!!Heading 3

Heading 1

Heading 2

Heading 3

Show/Hide sections

!+, !!-

(Headings display with plus or minus sign in brackets which, when clicked, show or hide the content following the heading.)

Autonumbered Headings

!#, !!#, !+#, !-# ...

(Headings display numbered in outline format.)

Table of contents

{toc}, {maketoc}

These create a table of contents for the current page based on structures (toc) or headings (maketoc).

Basic text formatting

The wiki syntax described in this section can be located anywhere in the text so that specific characters, words, or sentences can be emphasized.

Colored text

Text can be any color you want it to be. Two tildes ( ~ ) are used followed by the name of a color and a colon ( : ) to specify the start of the colored text. Two more tildes ( ~ ) are used to end the section of colored text.

Example: ~~red:This is text is red.~~ produces:
This is text is red.

Colored text can also be specified using HTML hex color codes. (See https://en.wikipedia.org/wiki/Web_colors). The syntax is two tildes ( ~ ) followed by the pound ( # ) character and the hex numbers with a colon ( : ) followed by the text to be colored. Two tildes mark the end of the colored text.

Example: ~~#ff00ff:This is text is the color Magenta. ~~ produces:
This is text is the color Magenta.

Bold text

Two underscore ( _ ) characters are used to make text bold.

Example: __This text is bold__ produces:
This text is bold

Italic text

Two single quote ( ' ) characters are used to make text italic.

Example: ''This text is italic.'' produces:
This text is italic.

Underlined text

Three equal ( = ) characters are used to underline text.

Example: ===This text is underlined.=== produces:
This text is underlined.

Strikethrough text

Use two hyphens ( - ) to create strike-through text.

Example: --This is strikethrough text.-- produces: This is strikethrough text.

Centered text

Two colon ( : ) characters are used to center text or other content. The centered-text syntax (which create a centered HTML div) can be used in conjunction with a box, a table, or other page element.

Example: ::This text is centered.:: produces:

This text is centered.

Monospace text

Monospace text is useful when displaying code and can be created in two ways. When an entire line is to be monospace, simply start the new line with one or more spaces. For instances of monospace text within a line of normal text, use a combination of minus (-) and plus (+) characters before and (reversing their poisitions) after the monospace text.

Indent

(Prior to Tiki 13) Text can be indented using HTML definition list formatting, which in wiki syntax is created using a combination of the ; and : characters. ; must appear at the beginning of a line and : must appear between introduction text and the indented text. The introduction text portion is useful for forming definition type indention like Example 1 below. However the introduction text can be eliminated by simply including ;: together followed by the text as shown in Example 2.

Example 1:

;Intro Text: First example of indented text
produces:

Intro Text

Indented text

Example 2:
;:2nd example of indented text

2nd example of indented text

Using square brackets

To include square brackets in text (that is, as regular text and not to create an external link, which square brackets normally do in wiki syntax) simply add an additional opening bracket at the beginning.

Example:

[[This displays as text in square brackets, not as a link.]

produces

[This displays as text in square brackets, not as a link.]

Non-breaking space

Use ~hs~ to add the HTML " " for a hard space, or non-breaking space.

Comments

Wiki comment

It will be stored with the page and can be seen in the edit-page view but not seen when the page or page source is viewed.

HTML Comment

~hc~ This is an HTML comment. ~/hc~

It will be stored with the page and will generate an HTML comment of the form

<!-- This is an HTML comment. -->

it will not be seen when the page is viewed but will be seen when the page source is viewed.

Related Video "Features and Options in Tiki"

On this #tikiexpresstutorial, using #tiki19 I’ll show you:
How to enable a feature from the Control Panels
How to enable a Global Feature from the features panel
How to enable an Interface feature
A quick overview of the Programmer features
And where to look for feature options