Retired Documentation:  You are using the documentation for version 1.7.3 which was retired in 2013. Go here for the latest version documentation or check here for your available upgrades to the latest version.

Wiki Article Section

This section determines how an article is displayed within the Wiki Page wrapper template as outlined below:

The Wiki Article section of the template determines the visual display of articles as highlighted below.

In addition to the variables in the Wiki Page section, the Article section has:

Single Variables

article

{article}

This variable displays the fully rendered article's text.

author

{author}

Displays the screen name of the member who wrote the current version of article.

revision_date

{revision_date format=""}

When a revision of an article is displayed this shows the date of the revision being viewed.

The format parameter is used to determine the date's formatting using ExpressionEngine's Date Variable Formatting. For example, this:

Revised: {revision_date format="%D, %F %d, %Y - %g:%i:%s"}

Would render this:

Revised: Mon, January 15, 2006 - 10:23:45

Conditional Variables

There is only one conditional variable available to the Wiki Article section of the template.

if categories

{if categories}

Checks to see if the currently displayed article has been assigned to any categories. If it is, the Special Category Tags can be used to display the categories on the article page.

Special Category Tags

If an article is assigned to one or more categories you can use the {wiki:categories} tag to display the categories beneath the article as outlined below:

If an article has categories you can display them beneath the article.

Special Category Namespace

In the "Category" Namespace you also have the ability to create a list of articles that are assigned to a specific category as outlined below:

Displays all the articles in a category.

NOTE: A Namespace is a way to organize content by a special keyword (the "namespace") that is not a title, topic, or category name. For example, the wiki currently uses, by default, namespaces called Special, File, and Category to organize wiki content.

Namespace features will be expanded on in future versions. In the current verison you can use the Category Namespace in the Theme Template Article section to create a list of articles that are assigned to a specific category.

This is done by using the special {if namespace == 'Category'} conditional and a combination of the {wiki:category_subcategories} and {wiki:category_articles} tags described in the Special Categories section of the Wiki documentation.

Please see the Template Article section of the default Theme Template for an example of how this is used. If you do a search in the file for {if namespace == 'Category'} you'll find exactly where this code is located.

Top of Page