Revision r1.8 - 19 Nov 2002 - 05:46 GMT - LesOrchard


Since I started this site, I've wanted to link the weblog and the wiki into a WeblogWithWiki. There've been many styles of accomplishing this, but none of them have made me happy. Now, I have something that does what I want.

MovableType, the weblog I use, has been given a plugin architecture by which new tags can be added to the templating system. What this plugin does is add a container tag to MovableType that formats its contents via CPAN:Text::WikiFormat. This formatting is independant of any particular Wiki:WikiClone, but it can be supplied with a URL to a wiki to which Wiki:WikiWords should be linked.

This is a simple compromise solution that should work for a wide range of MovableType and Wiki:WikiClone installations. For a more comprehensive plugin which can actually integrate with an installed wiki - see MTXmlRpcFilterPlugin.

News & Status

Initial release, see Blog:000244

-- LesOrchard - 19 Aug 2002




  1. Install CPAN:Text::WikiFormat on your webserver.
  2. Download the above file.
  3. Copy the downloaded file as wikiformat.pl into the plugins/ directory of your MovableType installation.


After installation, you will have a new tag available for use in your templates: MTWikiFormat. The tag can be given the following attributes:

  • prefix: URL prefix onto which wiki words are appended to form links
  • extended: 0/1 (default 0), enables []-style links (ie. [link] and [link|title]).
  • remove_whitespace: 0/1 (default 1), whether or not to remove whitespace, tabs, and newlines surrounding content text.

For example, consider the following text in a MovableType template:

<MTWikiFormat prefix="http://www.decafbad.com/twiki/bin/view/Main/">

Your text here, with WikiWords and ''fancy'' '''formatting''' '''''constructs'''''.

Even unordered lists...
    * Foo
    * Bar
    * Baz

...and ordered lists:
    1. One
    2. Two
    3. Three

This would produce a block of text like this:

Your text here, with WikiWords and fancy formatting constructs.

Even unordered lists...

  • Foo
  • Bar
  • Baz

...and ordered lists:

  1. One
  2. Two
  3. Three


This software is provided as-is. You may use it for commercial or personal use. If you distribute it, please keep this notice intact.

Basically: Do what you want with it as long as you acknowledge I wrote it, and don't blame me if you poke your eye out with it.

Attachment sort Action Size Date Who Comment
wikiformat_pl.txt manage 1.5 K 19 Aug 2002 - 14:46 LesOrchard  

When I grow up, I want to be a computer scientist
Rotating header picture Rotating header picture

Advanced Search

Related Entries

(Disabled, for now.)


View items on my Amazon wishlist

Made on a Macintosh Powered by Movable Type <$MTVersion$> Made for Safari Get Firefox You can do better than Microsoft Internet Explorer

Creative Commons License
This work is licensed under a Creative Commons License.