MTWikiFormatPlugin
Revision r1.8 - 19 Nov 2002 - 05:46 GMT - LesOrchard
Introduction
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 2002Downloads
Documentation
Installation
- Install CPAN:Text::WikiFormat on your webserver.
- Download the above file.
- Copy the downloaded file as
wikiformat.plinto theplugins/directory of your MovableType installation.
Usage
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.
<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
</MTWikiFormat>
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:
- One
- Two
- Three
License
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 ![]() | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|
| | manage | 1.5 K | 19 Aug 2002 - 14:46 | LesOrchard |

