[pmwiki-users] Is there a note plugin?

Ben Wilson dausha at gmail.com
Tue Jun 6 14:45:35 CDT 2006


On 6/6/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Tue, Jun 06, 2006 at 11:00:01AM -0700, pmwiki at 911networks.com wrote:
> > Hi,
> >
> > I am trying to convert a Dokuwiki to PM, is there a receipe
> > equivalent to the Dokuwiki plugin:note
> >
> > http://wiki.splitbrain.org/plugin:note
> >
> > BTW, this make for a great look.
>
> It can be done with >>div<< statements:
>
>     %define=note bgcolor=#ddddff rfloat%
>
>     >>note<<
>     Here's a simple note
>     >><<
>
> Fancier things are of course possible by adding to the wikistyle
> definition.  It would be interesting to come up with various
> background definitions that would also work.

I think what's sought is something where you say "{{critical}}" and it
is converted to the expanded note. This is used in M&#!@Wiki as well.
The "solution" may be as simple as having a variable ($FmtV):

{$NoteCritical}

Then, the markup, et al. is available without having to add the
remaining language. One could even have a category flag in the
{$NoteCritical} variable assignment:

$FmtV['$NoteCritical'] =<<<NoteCritical
>>notecritical<<
Ceci est une note critique. Blaheux, Blaheux, Blaheux

[[!NoteCritical]]
NoteCritical;

-- 
Ben Wilson
"Mundus vult decipi, ergo decipiatur"




More information about the pmwiki-users mailing list