English German Italiano Magyar Spanish 简体中文

Wiki Syntax Help

ExpressionEngine uses a special wiki syntax to perform a set of actions directly on the wiki. The actual formatting is done by Textile. (have a look on the external page too Textism: Tools: Textile [textism.com])

This is only a very short introduction. If you want to learn the more advanced textile features, the TextileSyntax wiki page has all the information for you.

Linking Pages

  1. [[PageTitle]]
will link to a page with this title. If the page is not there yet you can create it by clicking the link. Please use camel case. This can also be used in the middle of a sentence like
  1. This links to my <a href="http://qt-project.org/wiki/AwesomeNewPage">AwesomeNewPage</a> here.

  1. [[PageTitle | Display Title]]
will create a link with an alternative title displayed as in
  1. This links to my <a href="http://qt-project.org/wiki/AwesomeNewPage">awesome new page</a>

Linking to Qt Documentation

  1. [[Doc:ClassName]]
will link to the class page documentation of the latest Qt version, and show the class description as a tooltip. Example: QAccessible

Using Tables

Readability is enhanced if your markup indicates a title row and if you color the title row green and alternate entry rows with a light gray.
Note the space before the | designating beginning of a cell.

  1. {background:#009900}. |_. Title 1 |_. Title 2 |
  2. | somestuff in clear row| more stuff |
  3. {background:#ddd}. | some stuff in gray row | more stuff |

Title 1 Title 2
somestuff in clear row more stuff
some stuff in gray row more stuff

Categories

  1. [[Category:Foo]]
will create a category with the title “Foo” along with an automatically populated Special Page with all pages in this category. If the category already exists it will sort the page into the indicated category.

  1. [[Category:Foo::Bar]]
will create a child category “Bar” inside the parent category “Foo”.

Link to a Category Page

  1. [[:Category:Foo::Bar]]
will link to the indicated category (note the colon!) but not create a new one.

Add a Table of Contents

When a page is long, adding a table of contents can help a lot. You can control alignment and depth of the table.

  1.  
  2. [toc align_right="yes" depth="2"]

The optimal depth corresponds structure and size of the article. For a short article a toc is absolutely unnecessary.

Right aligned articles

For wiki pages you can add

  1. [right_aligned]

to the top of the page and it will be all right aligned on save.

Character Codes, or How to Bypass the Wiki Formatter

Sometimes you need a character in your wiki article that the wiki engine thinks is a formatting code. When this happens, replace the character with a code for the character. Here is a good list of such codes [degraeve.com].

For example, in Textile the percent symbol (%) indicates a <span> tag in HTML, but you may need to show a % in a command line example. Use &#37; instead of % in your example:

Show:

  1. set QTDIR=%DEV%\Qt

By entering:

  1. set QTDIR=&#37;DEV&#37;\Qt

Embedding Youtube Videos

  1. [YouTubeID:<id>]

Categories: