This installation of Friki uses "classic" formatting.

In this style page formatting is based on the style used in the "original" Wiki described at Wiki:TextFormattingRules.

Text is mostly displayed as you have typed it. To prevent problems with rendering HTML, important characters such as '<'. '>, and '&' are "escaped". HTML normally joins lines and wraps the result, so to start a new paragraph, you need to put a blank line (which will be converted to a <p> tag). "Classic" markup also adds ways to indicate emphasis, strong emphasis, and so on.

The thing that makes this a "Wiki", and not just a collection of editable pages is the ability to create "links" between pages. In the "classic" formatting, a link is identified by creating a "WikiWord"; placing two or more initial-capitalised words together (eg. FrontPage). If the page exists, you'll see a link to it, if it doesn't exist yet, you'll see the name followed by a '?', which you can click to create the page.

The rules are described in more detail below:


Emphasis

References

Horizontal Lines

Bullets or Numbered Lists

Definition Lists

first term
This is first definition.
second term
This is the second definition.

Fonts

This is text in a monospaced font.
  This is indented with three spaces.
This is not.

Notice that there is a MonospaceIndentationProblem.

Indented Paragraphs (Quotes)

Sample:

This is quoted.
This isn't.

Preformatted Blocks

Tables

This Wiki implements Ward Cunningham's table syntax introduced for his Wiki at http://fit.c2.com/, but not yet propagated back to the original Wiki.

Example Table
typewith spanningheader
cols and several columns

BlockTransform?.java
package com.efsol.friki.transform;

import com.efsol.friki.*;

public class BlockTransform extends DynamicTransform
{
	private Transformer tx;
	private String URL="http://www.efsol.com/"

	public BlockTransform()
	{
		super("\\[" + newLinePattern + "((?:[^\\n\\r]*" + newLinePattern + ")+)" + "\\]");

		tx = new Transformer();
		tx.addTransform(newLinePattern, "<br>");
		tx.addTransform("\\|", "\\\\|");
	}
}