[pmwiki-users] floating box on the right

Patrick R. Michaud pmichaud at pobox.com
Wed Mar 23 19:21:35 CST 2005


On Thu, Mar 24, 2005 at 12:14:28PM +1200, John Rankin wrote:
> On Thursday, 24 March 2005 10:17 AM, Radu <radu at monicsoft.net> wrote:
> >Like this stickie business which has so many possible approaches that it 
> >deserves its own page where all variants described on this thread can live 
> >peacefully together.
> 
> FWIW, I chose {=sticky note=} markup to complement the {+insert+} and
> {-delete-} markups. And from time to time have thought that one day
> there may be a need for {+insert|with an explanatory sticky note+} and 
> {-delete|with an explanatory sticky note-}.
> 
> For a real PostIt &trade; note, like the one below, one might also 
> want to choose the colour, like Mac OS X 'stickies'.
> 
> (:bluenote John says | sticky notes can be funky:)

We might also consider a WikiStyle syntax of

   %note bgcolor=blue% {=sticky note=}

where "note" is defined in such a way that the wiki style applies only
to sticky notes.  This would also make possible things like %bluenote% 
{=here's a blue stickynote=}.

However, after looking at the implementations, I notice that we can 
already do stickynotes using WikiStyles, as in:

   %stickynote% This is a sticky note %%

See a demonstration of this at http://www.pmwiki.org/wiki/Test/StickyNotes.
This has the advantage of not requiring any additional syntax, as well
as allowing wiki markup (including links) in the middle of the note.  
One can also add to the note styling, as in:

   %stickynote bgcolor=yellow% This is a yellow sticky note %%

One can also "sticky note" an entire paragraph or list:

   %p stickynote% This entire paragraph is
   a sticky note, with some %yellow% yellow text %%
   thrown in for good measure.

   # %list stickynote% Ready
   # Fire
   # Aim

And, when we eventually get a >>div<< syntax together, we can easily do:
easily do something like:

   >>stickynote bgcolor=yellow<<
   Everything in this section is displayed 
   as part of a yellow sticky note.

   Even multiple paragraphs.
   >><<

Way cool.  Should we consider a %stickynote% style for the core?
(We might want a different name.)

Pm



More information about the pmwiki-users mailing list