The following page replaces the current FormattingRules in the latest development version.

Wikka Formatting Guide


Note: Anything between 2 sets of double-quotes is not formatted.
 

Once you have read through this, test your formatting skills in the SandBox.

1. Text Formatting


**I'm bold**
I'm bold

//I'm italic text!//
I'm italic text!

And I'm __underlined__!
And I'm underlined!

##monospace text##
monospace text

''highlight text'' (using 2 single-quotes)
highlight text

++Strike through text++
Strike through text

Press #%ANY KEY#%
Press ANY KEY

@@Center text@@
Center text


2. Headers


Use between five = (for the biggest header) and two = (for the smallest header) on both sides of a text to render it as a header.

====== Really big header ======

===== Rather big header =====

==== Medium header ====

=== Not-so-big header ===

== Smallish header ==

3. Horizontal separator

----


4. Forced line break

---


This line to break --- right here
This line to break
right here

5. Lists and indents


You can indent text using a ~, a tab or 4 spaces (which will auto-convert into a tab).

~This text is indented
~~This text is double-indented
    This text is also indented
        This text is also double indented


This text is indented
This text is double-indented
This text is also indented
This text is also double indented

To create bulleted/ordered lists, use the following markup (you can always use 4 spaces instead of a ~):

Bulleted lists
~- Line one
~~- Line two
~-Line three


Numbered lists
~1) Line one
~1) Line two

  1. Line one
  1. Line two

Ordered lists using uppercase characters
~A) Line one
~A) Line two

  1. Line one
  1. Line two

Ordered lists using lowercase characters
~a) Line one
~a) Line two

  1. Line one
  1. Line two

Ordered lists using roman numerals
~I) Line one
~I) Line two

  1. Line one
  1. Line two

Ordered lists using lowercase roman numerals
~i) Line one
~i) Line two

  1. Line one
  1. Line two

6. Inline comments


To format some text as an inline comment, use an indent ( ~, a tab or 4 spaces) followed by a &.

Example:

~& Comment
~~& Subcomment
~~~& Subsubcomment


7. Images


To place images on a Wiki page, you can use the image action.

Example:

{{image class="center" alt="DVD logo" title="An Image Link" url="images/dvdvideo.gif" link="RecentChanges"}}
dvd logo

Links can be external, or internal Wiki links. You don't need to enter a link at all, and in that case just an image will be inserted. You can use the optional classes left and right to float images left and right. You don't need to use all those attributes, only url is required while alt is recommended for accessibility.


To create a link to a wiki page you can use any of the following options:

  1. type a WikiName:

    FormattingRules
    FormattingRules

  1. add a forced link surrounding the page name by [[ | and ]] (everything after the first space will be shown as description):

    [[SandBox | Test your formatting skills]]
    Test your formatting skills

    [[SandBox | 沙箱]]
    沙箱

  1. add an image with a link (see instructions above).

To link to external pages, you can do any of the following:

  1. type a URL inside the page:

    http://www.example.com
    http://www.example.com

  1. add a forced link surrounding the URL by [[ | and ]] (everything after the first space will be shown as description):

    [[http://example.com/jenna/ | Jenna's Home Page]]
    Jenna's Home Page

    [[mail@example.com | Write me!]]
    Write me!

  1. add an image with a link (see instructions above);
  1. add an interwiki link (browse the list of available interwiki tags):

    WikiPedia:WikkaWiki
    WikiPedia:WikkaWiki

    Google:CSS
    Google:CSS

    Thesaurus:Happy
    Thesaurus:Happy


9. Tables


To create a table, you can use the table action.

Example:

{{table columns="3" cellpadding="1" cells="BIG;GREEN;FROGS;yes;yes;no;no;no;###"}}

BIG GREEN FROGS
yes yes no
no no


Note that ### must be used to indicate an empty cell.
Complex tables can also be created by embedding HTML code in a wiki page (see instructions below).

10. Colored Text


Colored text can be created using the color action:

Example:

{{color c="blue" text="This is a test."}}
This is a test.

You can also use hex values:

Example:

{{color hex="#DD0000" text="This is another test."}}
This is another test.

11. Floats


To create a left floated box, use two < characters before and after the block.

Example:

<<Some text in a left-floated box hanging around<< Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.

Some text in a left-floated box hanging around
Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.

 
To create a right floated box, use two > characters before and after the block.

Example:

>>Some text in a right-floated box hanging around>> Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.

Some text in a right-floated box hanging around
Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler. Some more text as a filler.

 
Use ::c:: to clear floated blocks.


12. Code formatters


You can easily embed code blocks in a wiki page using a simple markup. Anything within a code block is displayed literally.
To create a generic code block you can use the following markup:

%% This is a code block %%.

 This is a code block 


To create a code block with syntax highlighting, you must specify a code formatter (see below for a list of available code formatters). If line numbering is enabled in the wiki configuration, you can also specify a starting line number.

Example:

%%(php;15)
<?php
phpinfo();
echo "Hello, World!";
?>
%%


  1. <?php
  2. echo "Hello, World!";
  3. ?>


List of available code formatters:
LANGUAGE FORMATTER
Actionscript actionscript
ADA ada
Apache Log apache
ASM asm
ASP asp
Bash bash
C c
C for Macs c_mac
c# csharp
C++ cpp
CAD DCL caddcl
CadLisp cadlisp
CSS css
Delphi delphi
HTML html4strict
Java java
Javascript javascript
Lisp lisp
Lua lua
NSIS nsis
Objective C objc
OpenOffice BASIC oobas
Pascal pascal
Perl perl
PHP php
Python phyton
Q(uick)BASIC qbasic
Smarty smarty
SQL sql
VB.NET vbnet
Visual BASIC vb
Visual Fox Pro visualfoxpro
XML xml


13. Mindmaps


Wikka has native support for mindmaps. There are two options for embedding a mindmap in a wiki page.

Option 1: Upload a FreeMind file to a webserver, and then place a link to it on a wikka page:
http://yourdomain.com/freemind/freemind.mm
No special formatting is necessary.

Option 2: Paste the FreeMind data directly into a wikka page:

14. Embedded HTML


You can easily paste HTML in a wiki page by wrapping it into two sets of doublequotes.

""[html code]""

Examples:

""y = x<sup>n+1</sup>""
y = xn+1

""<acronym title="Cascade Style Sheet">CSS</acronym>""
CSS

By default, some HTML tags are removed by the SafeHTML parser to protect against potentially dangerous code. The list of tags that are stripped can be found on the Wikka:SafeHTML page.

It is possible to allow all HTML tags to be used, see Wikka:UsingHTML for more information.


CategoryWiki
Comments
Comment by WazoO
2006-02-13 21:18:10
edited the "Indenting" examples .. issue appears to have been some oddities in the '4 spaces' / Tabs handling .. as the leading 'spaces' for those lines seemd to be all over the place, some a couple of spaces in, some on new lines with no leading space, others pushed to the right, but Line one and Line two showing different "leading whitespace" ...??? Was a bit baffled by the ## wrappers, but figure that must have also had something to do with the actual editor used to develop this 'new' list ?????
Comment by WazoO
2006-02-13 21:28:08
There also seems to be a .css issue .. on my 'default' install, the tables show with a complete box surrounding the Table ... in this list, the Tables are missing the top and left 'lines' .... I did pull down the .css from here, thinking of doing a simple diff and moving over the 'new' stuff, but found that in addition to different code, the whole thing had been 're-ordered' from the 'downloaded archive' version .. which of course, I'd already modified / added to based on a couple of other added items that had thier own additional .css stuff. Haven't been back to sort all that out yet. Anyway, something appears to be missing??
Comment by DarTar
2006-02-14 06:00:53
WazoO, many thanks for helping with the cleanup, I'll commit an improved version of this page to the repository as soon as we have reached an agreement on the structure and content of this page. Here's a couple of notes:
- the problem with vertical whitespace not displayed is a known issue of the (beta) formatter installed on this server - see http://wikkawiki.org/ImprovedFormatter
- the ## wrappers were requested by MinusF to suggest that the first line in the examples indicates the markup, while the second line displays the rendered text.
- As for the CSS issue, what "skin"are you using on this server? Since the installation of some beta features, the default wikka.css skin on this server has been heavily hacked (including the section on tables) so it's not surprising that if you apply it to a fresh install there are a number of discrepancies.
Comment by WazoO
2006-02-14 07:02:03
certical whitespace wasn't the issue with the Indenting examples .. horizontal whitespace was what was wierd .. for example, one line had only two 'spaces' from the left margin, the next example line had 10 spaces, the next example had two tabs, but the next line had 3 spaces .... . very strange...
- the ## is also depicted and used for monospace text, yet the displayed stuff wasn't seen as monotext .. maybe I'll have to look closer ..???
-- whatever the 'default' skin is ... don't recall trying to find or play with anything like that here ... all I've done on my install was to toss up a copy (renamed) of the .css here to the server so I could run the diff on it ... when the diff turned out to be massive, that went on the back-burner. If I understand your remarks, my statement was about the Table showing on this page being incomplete .. guess I'll have to look around to see where one changes a skin here.
- I spent a bunch of time .. guess I'll call it last nite .. trying to answer a user's query on how to left/right justify text. Should I bring it up 'here' or open up a new page, listing all the stuff I tried and failed with?
Comment by DarTar
2006-02-14 07:52:20
Since atm there is no Wikka markup for aligning text right or left, the only way to do this without modifying the formatter is by embedding HTML. See my example in the SandBox. I agree it would be interesting to add support for text-alignment in the formatter.
Comment by WazoO
2006-02-14 08:19:42
Yeah, I just saw that (after making a comment on my wiki about placing a note here) .. I'm confused . I spent last night playing with code, adding in .css styling, etc., all failed .. and this was becasue the last time I attempted to sort it out, I couldn'd get anything added to the page itself to work .. my recollection is everytime I tried a DIV thing, viewing the source of the page showed that the 'generated code' immediately placed a /DIV right after every DIV I added .. so was thinking that the 'safeHTML' was closing any HTML code/tag it saw ... but quit working that to move on to other things .. just came back to it last night ... Thanks for the example .. I'd swear I'd tried every variation under the sun, but ....???? Thanks again.
Comment by 208.38.1.1
2006-03-14 19:33:47
There seems to be an formatting issue when trying to create a Wiki entry with the name C/C++.

I have tried setting it up like this [[C/C++]] to no avail.
Comment by 4.130.74.186
2006-04-17 21:44:02
Hello: i've arrived here from a different wakka wikki. perusing here and there in a search for how to keep a camelcase type word from showing up as a link. i found my answer in a comment here (i think it was in suggestions) and realized that the answer was right there at the top of the formatting rules page all along but, being new to the wiki scene, it went flying right by me. At the other wiki, where i'm
registered and can edit, i added it to the top of the list of double double-quote examples: ""CamelCase"" CamelCase. i don't want to register here just so i can add it so, maybe one of yous could do it. it might just help some other noob like me catch it as it went by. Thanks :)
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki