NetVillage: Wiki Formatting Rules

Wiki Formatting Rules

Last edited by DavidCollantes - Tue, 21 Jun 2005 13:12 EDT

NetVillage formatting rules were designed to make it easy for anyone to create and edit pages with very little efford. A few examples are listed below. To make page creation and editing easier, a quick reference is at the end of the editing area (while editing, of course).

Writing Code

Code Results
%%print Hello World!%%
print Hello World!
%%(php) <?php echo('Hello World!'); ?>%%
<?php echo('Hello World!'); ?>







Text Styling

Style Wiki Format
Bold **Bold**
Italics //Italics//
Underlined __Underlined__
Monospaced ##Monospaced##









Adding Links

Type of Links Results
FormattingRules FormattingRules
[[FormattingRules Rules of Formatting]] Rules of Formatting
[[http://www.google.com/ Google]] Google
[[someone@example.com Email me!]] Email me!
http://www.google.com/ http://www.google.com/
[[WikiPedia:CamelCase]] WikiPedia:CamelCase












Ordered Lists

Bulleted - Four spaces, a dash (-) and the text.
  • Item 1
  • Item 2
Numbered - Four spaces, a 1) and the text.
  1. Item 1
  2. Item 2
Latin numbers - Four spaces, a I) or i) and the text.
  1. Item 1
  2. Item 2

  1. Item 1
  2. Item 2
Alpha based - Four spaces, a A) or a) and the text.
  1. Item 1
  2. Item 2

  1. Item 1
  2. Item 2
Indentation - Four spaces, then text.
This is indented.

Using Actions

Below are a list of the actions available. Actions will allow you to embed dynamic content on your Wiki in different ways.

Attaching files

To attach files (of any kind, including images) use the syntax below (wrapped for legibility, but all goes in one line). The "file" parameter must contain the exact name of the file to be uploaded, the "desc" can contain any descripton you want, the "show" will show the file link or not. If the "link" is left empty, uploaded images will not be linked (that is the way I am using it here). If "link" is set to "yes" a direct link to the image will show. Finally, "class" will allow to set a CSS class to the file (used mainly for images). The only class available right now is "right".

{{attach file="full_file_name.ext" \ desc="File description" show="yes|no" link="" \ class=""}}

Example: Attach action command

Adding Images

You can upload and use your images on this wiki. doing so is easy. Simple upload the image like you will do with any file on the page you want to use it like so:

{{attach file="image_example.jpg" \ desc="Example Image" show="yes|no" link="" \ class="right|left"}}

You can choose not to show it after upload and to align the image to the right or left (those are predefined styles on this wiki) and you could link to image to an URI, if you want as well. The above example will produce (I will use left align, no link):

Example ImageText can be added right after the image, like so. This is the way it is done on all pages with images in it, like on my own page, for example.

Play with the text and tweak till the page looks the way you wanted it. The styles on this wiki are far from being the best, but they do the job, more or less.

CategoryWiki