Peter's Blog

Redefining the Impossible

Wilki module formatting


Normal Paragraphs

Normal paragraph text is entered normally, Just type away. A blank line is considered the end of a paragraph and the start of a new one.

Wilki format does not support any bold, strong italic etc markup. For that you can use the raw html tags.

<b>Hello Peter</b>

<i>Hello Peter</i>

<u>Hello Peter</u>

<strong>Hello Peter</strong>

<small>Hello Peter</small>

Gives

Hello Peter

Hello Peter

Hello Peter

Hello Peter

Hello Peter

Bullet Points

Asterisks denote bullet lists:

* Bullet Lists
* Good for marketing presentations
  * they can be nested
     * to many levels
     * the text can go on for
       many lines if you
       so desire
  * back to this level
* Back to the start
* The list is terminated by a blank line

Gives

  • Bullet Lists
  • Good for marketing presentations
    • they can be nested
      • to many levels
      • the text can go on for many lines if you so desire
    • back to this level
  • Back to the start
  • The list is terminated by a blank line

Numbered Lists

# Much like bullet lists
# but with numbers
   * may contain bullet lists
       # which can themselves contain numbered lists
       # numbered lists can also
         have text that crosses lines
# continuing this numbered list

# This is a new numbered list, because of the blank line.

Gives:

  1. Much like bullet lists
  2. but with numbers
    • may contain bullet lists
      1. which can themselves contain numbered lists
      2. numbered lists can also have text that crosses lines
  3. continuing this numbered list
  1. This is a new numbered list, because of the blank line.

Definition Lists

Term: Definition

Note the space at the start of the line and after the colon. Gives:

Term: Definition

There can be many terms:

Term: Definition
Term 2: Definition 2
Term 3: Definition 3

Term: Definition Term 2: Definition 2 Term 3: Definition 3

Term: Definition which may
      cover multiple lines
Bullet Point: A list like this:
      * one
      * two
      * three
Cool?: Could it be more

Gives:

Term: Definition which may cover multiple lines Bullet Point: A list like this:

  • one
  • two
  • three Cool?: Could it be more

Verbatim Blocks

Enter text that is not processed as markup:

<verbatim> * an asterisk # a hash </verbatim>

Gives:

* an asterisk
# a hash

Code Blocks

<php>
function Fred()
{
   $strPHP = "this is some php code";
}
</php>

<python>
def Fred():
   strPHP = "this is some python code";
</python>

Gives the endlessly cool:

function Fred()
{
   $strPHP = "this is some php code";
}
def Fred():
   strPHP = "this is some python code";

Note that bullet lists, numbered lists and definition terms may have code blocks or verbatim blocks associated with them:

* Why keep on with the bullet points?
<php>
function Fred()
{
   $strPHP = "this is some php code";
}
</php>
* Because I can?
<python>
def Fred():
   strPHP = "this is some python code";
</python>
  • Why keep on with the bullet points?
    function Fred()
    {
       $strPHP = "this is some php code";
    }
    
  • Because I can
    def Fred():
       strPHP = "this is some python code";
    

Hyperlinks

This is a hyperlink: [my favorite search engine|http://www.google.com]

The title is optional: [http://www.google.com]

As are the brackets: [http://www.google.com]

I can link to nodes in my blog by number: [like this|400]

Node number without title (so the title is filled in for me) like this: [400].

Or I can ask for the node title: [Regular Expression Assertions]

If the URL appears to reference an image (.jpg, .gif, .pgn) then the
image is shown: [images/smileys/smile.png]

This is a hyperlink: my favorite search engine

The title is optional: http://www.google.com

As are the brackets: http://www.google.com

I can link to nodes in my blog by number: like this

Node number without title (so the title is filled in for me) like this: Logrotate failures.

Or I can ask for the node title: Regular Expression Assertions

If the URL appears to reference an image (.jpg, .gif, .pgn) then the image is shown:
images/smileys/smile.png

Filed under: blog google php python wilki

Sorry but comments on this post are now closed.