Appendix A: Wiki syntax

Enano CMS uses a special formatting language known as wikitext. This formatting allows you to add emphasis to your text, and for advanced users it allows the insertion of tables, custom formatting, and all sorts of fun stuff.

The basics

Headings

To insert a level-2 (large) heading, surround a single line of text with = signs. For example:

== Enano CMS ==

would become:

Enano CMS

For level-3 (medium) and level-4 (small) headings, use three and four = signs, respectively.

Bold and italic text

To make text bold, add three apostrophies (''') around the text that you want bolded:

'''Enano CMS'''

becomes:

Enano CMS

Italic text can be done with two apostrophes (''):

''Enano CMS''

becomes:

Enano CMS

Lists

To create a list, add an asterisk (*) in front of a line. To further indent list items, just add more asterisks to the beginning of the line.

* Enano CMS
** Easy to install and upgrade
** Friendly administration panel
*** Expansible, to allow plugins to add pages to the panel
** Fast, flexible API

becomes:

  • Enano CMS
    • Easy to install and upgrade
    • Friendly administration panel
      • Expansible, to allow plugins to add pages to the panel
    • Fast, flexible API

You can add a link to another page in the wiki by typing teo square brackets around the URL title of a page.

[[Main Page]]

becomes:

Main Page

You can customize the text that appears on the link by adding a pipe character (|):

[[Main Page|Go to the main page]]

becomes:

Go to the main page

The URL title of a page is the part of the URL that makes up the page title. Sometimes the actual name of the page is different from the URL title.

You can add an external link to your pages by typing a single square bracket, then the URL of the page (remember the http:// or ftp:// prefix), a space, and then the text for the link.

[http://www.example.com/ Example site]

becomes:

Example site

Embedding images

If you wish to embed an image into a page, you must upload an image file first (depending on whether the site you are on allows it, of course) and then use this syntax to embed the image into the page:

[[:File:Example.png]]

becomes:

Optionally, you can specify the maximum image width and height:

[[:File:Example.png|200x100]]

becomes:

You can also add other flags to an image:

  • The "thumb" flag can replace the dimensions.
[[:File:Example.png|thumb]]

becomes:

  • The image can be floated to the left or right:
[[:File:Example.png|thumb|right]]
  • A caption can be added to the image:
[[:File:Example.png|An example image.]]

becomes:

You should always specify the size (WIDTHxHEIGHT), then the position (left or right), then the caption. All of these parameters are optional, however if you specify a caption you must specify a size or use "thumb".

Indenting lines

You can indent a line by placine one or more colons (:) in front of it:

:One potato,
::Two potato,
:::Three potato,
:Four!

becomes:

One potato,
Two potato,
Three potato,
Four!

Signatures

You can add your username and the date and time to your comments and edits by signing them with four tildes (~~~~).

~~~~

becomes:

Dan 18:15, 6 October 2007 (UTC)

Templates

Templates are a way of displaying the same content on multiple pages (sometimes with small variances) and having that content updated whenever the master copy is changed. You can use variables in templates in the format {varname}. Variables can contain underscores but not spaces.

Including a template:

{{Example template
myvar = Some example variable
}}

This includes the template found here. The result:

This is the test template in action. You inputted: Some example variable

Horizontal lines

To add a horizontal line to a page, type four dashes at the beginning of a line.

----

becomes:


Advanced formatting

Tables

You can embed tables into your pages, too. For an example of table embedding, see the Enano home page. For a short guide to embedding tables, please see the Wikimedia Meta Table Guide.

Enano tables have the ability to be styled according to the current theme's table CSS. To use this, add the "styled" attribute to your table.

{| styled
|-
! Column 1 !! Column 2 !! Column 3
|-
| Some || Test || Data
|}

becomes:

Column 1 Column 2 Column 3
Some Test Data