ExpressionEngine

2.11.9 User Guide

Retired Documentation

You are using the documentation for version 2.11.9. Go here for the latest version or check here for your available upgrades to the latest version.

Wiki Syntax

Wiki users create new pages, categories, links, and perform other actions directly on the wiki using special syntax. Wikis traditionally use double brackets for this syntax and the ExpressionEngine Wiki Module does the same.

Note

The text formatting for your wiki is handled by whatever formatting option you choose in the Wiki Control Panel.

Categories

Create Single Category

[[Category:Category Name]]

Placing this syntax in a article assigns it to the specified category. If the category does not exist, the category will be created.

For example, to assign an article about peanut butter and jelly sandwiches to a “Sandwiches” category you would use this syntax:

[[Category:Sandwiches]]

That will automatically assign the article to the Sandwiches category or create it if it does not exist. It will also automatically create a link that displays all articles in the “Sandwiches” category.

Create Nested Category

[[Category:Parent Category::Child Category]]

Placing this syntax in a article assigns it to the specified categories. If one or both of the categories does not exist, they will be created.

For example, to assign an article about peanut butter and jelly sandwiches to a “Sandwiches” category with a “Peanut Butter” subcategory you would use this syntax:

[[Category:Sandwiches::Peanut Butter]]

That will automatically assign the article to the “Sandwiches” parent category and a “Peanut Butter” subcategory. If either category does not exist it will be created.

Namespaces

Note

Before you can use Namespaces on your wiki you must configure Namespaces in your Control Panel.

Linking to or creating an article in a Namespace

[[Namespace_label:Article title]]

Placing this syntax in an article creates a link to a article in the specified namespace. If the article doesn’t exist you will have the option to create it. For example, if you had a namespace with the label of Spanish and wanted to link to or create an article titled “The Basics” in the Spanish namespace you would use this syntax in the article you are linking from:

[[Spanish:The Basics]]

That would create a link to the The Basics article in the Spanish namespace or let you create that article if it didn’t exist.

Assign an existing article to a Namespace

To assign an existing article to a Namespace simply edit the article and rename it with the following syntax:

Namespace_Label:Article Title

For example, if you have an existing article titled “Advanced German” and want to assign it to the German namespace simply click edit and rename the article:

German:Advanced German

Viewing articles in a Namespace

The default theme has a dropdown menu that lets you view all the articles in a namespace. Its located on the Title List page (on the main menu). If you want to add a similar feature on your custom wiki template please follow the Wiki Theme Updates example.

Linking to Image or Uploaded File

Note

The wiki can automatically give you a file or image’s code. On the article Edit page click on View 10 Most Recent File Uploads. If you need an older file click on Uploaded Files in the navigation and then select file. You’ll see the appropriate code to use to call that file or image.

[[File:filename.zip]]

Creates a link to a file page for an uploaded file.

[[Image:image.jpg]]

This creates an <img> tag for an uploaded image.

Embedding Articles Within Articles

{embed="Namespace:Topic"}

Brings in the current revision of the article specified and puts it in the article you are editing. If the topic does not exist, nothing is put in.