1. Website for more info:

http://www.pmwiki.org/wiki/PmWiki/PmWiki

  1. To fix the title of the page as XXX , issue this command anywhere in the page:
    ( :title XXX :)
  2. To get a list of all the pages, try this (: pagelist :):
  3. To hide or comment out a block of text, enclose between these two commands:
Click me to open/close
( :if false:)
...to be commented out...
( :ifend:)

Alternatively, hide the text inside a "comment" as in

( :comment This text will not show :).

But this is best for single-line text (but you can use line-continuation \ to extend it).
  1. To start a new line in the current local unit, type "\\".
    But to get an empty line, type "\\\".
    And to get a continuation line, type "\".

  2. Frames are very useful:
   
   >> frame <<
   This is enclosed in a frame!
   >><<

gives you this:

This is enclosed in a frame!

  1. Color fonts:

    Red Font is produced by typing "%red% Red Font%black%".
    But instead of "%black%", you could just type ""%%" to revert to previous font.
  2. Fancier fonts:
Click me to open/close
You could enter these font definitions at the beginning of your page:
% define= hilite bgcolor=#0ff%
% define= rediguana1 bgcolor=#ffffcc border='1px dotted red' padding=5px%

Now, if you type % hilite % xxx % , you will get: xxx .
Now, if you type % rediguana1 % xxx % , you will get: xxx (note the red dotted border).

Here are three more font definitions:
% define= Pm block bgcolor=#fdf% --Give the entire block a purple background
% define= goofy center bgcolor=#dfd border='3px dotted green'% --Center the entire block, give a 3 pixel dotted green border
% define= rediguana right bgcolor=#ffffcc border='1px dotted red' padding=5px% --Right justify block, with 1 pixel dotted red border
E.g.,

this is Pm

this is goofy

this is rediguana

  1. To indent, type - > (or - ->, - --> for more indentation) before the first word of paragraph.
    To exdent, type - < (or - -<, - --< for more exdentation)
  2. How to continue an enumerated list (e.g., above) that has been broken by something else (e.g., frame) ?
    Answer: Type # % item value=9 % for the enumeration to begin at 9.
    Of course, this has the inconvenience of remembering the number for restarting.
  3. Horizontal line: - - - - (four dashes)

  1. Emphasis and character formatting:
Click me to open/close
Enclose text in doubled single-quotes (' 'text' ' => text),
i.e., two apostrophes, for emphasis (usually italics)
Enclose text in tripled single-quotes (' ' 'text' ' ' => text),
i.e., three apostrophes, for strong (usually bold)
Enclose text in five single-quotes (' ' ' ' 'text' ' ' ' '=> text),
or triples within doubles (five apostrophes)
for strong emphasis (usually bold italics)
Enclose text in doubled at-signs (@ @ text@ @=> text)
for monospace text
Use [ + large + ] for large text (or [ + + larger + + ]
for larger text
Use [ - small - ] for small for small text, and smaller for smaller.
Emphasis can be used multiple times within a line,
but cannot span across markup line boundaries (i.e., you can't put
a paragraph break in the middle of bold text).
italic and bold are available if enabled in config.php
  1. How to get embedded white spaces and new lines:
    [= ... =] will preserve white spaces because it is not interpreted by PmWiki, but paragraphs are reformatted.
    [@ ... @] will preserve white spaces and multiple paragraphs.
  2. Toggle/Untoggle (or how to open/close a paragraph)

Pattern One: If you type this (on a new line)

: Toggling Term %toggle% : Hidden Definition of Term :
You get this:

Toggling Term
Hidden Definition of Term :
Normal term
This will allways show

Pattern Two: If you type this

   >>toggle<<
   Click here for more info.
   >>indent<<
   The div with class "indent" is the block right after the "toggle" switch,
   and it will be hidden or shown.

   It can contain several paragraphs, tables, images and other elements, but
   it is '''exactly''' the '''first''' element '''after''' the toggle block.
   >><<

you will get this:

Click here for more info.

The div with class "indent" is the block right after the "toggle" switch, and it will be hidden or shown.

It can contain several paragraphs, tables, images and other elements, but it is exactly the first element after the toggle block.

This does not work:

The text in this section can be hidden/shown

ANOTHER TRY: using "dltoggle" (for FAQ's application)

Definition list(s):

term
definition
term2
definition2

Subheaders, etc.

term1
definition1
term2
def2