StickyNotes


This page describes a simple mechanism for creating sticky notes using WikiStyles. This page has defined the %stickynote% style, which takes any text and places it into a stickynote as defined at Cookbook.MarkupExtensions. For example:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. %stickynote% Maecenas aliquet. Morbi euismod purus pretium massa. %% Curabitur urna wisi, lacinia adipiscing, varius at, venenatis sit amet, augue. Quisque scelerisque mi in ipsum. Donec eu nulla at wisi tincidunt nonummy. Morbi consectetuer mi id ante. Nunc feugiat. [[<<]]

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas aliquet. Morbi euismod purus pretium massa. Curabitur urna wisi, lacinia adipiscing, varius at, venenatis sit amet, augue. Quisque scelerisque mi in ipsum. Donec eu nulla at wisi tincidunt nonummy. Morbi consectetuer mi id ante. Nunc feugiat.

Perhaps it's easier to see if written this way:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
%stickynote% Maecenas aliquet. Morbi euismod purus pretium massa. %% 
Curabitur urna wisi, lacinia adipiscing, varius at, venenatis sit amet, augue. Quisque scelerisque mi in ipsum. Donec eu nulla at wisi tincidunt nonummy. Morbi consectetuer mi id ante. Nunc feugiat. [[<<]]

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas aliquet. Morbi euismod purus pretium massa. Curabitur urna wisi, lacinia adipiscing, varius at, venenatis sit amet, augue. Quisque scelerisque mi in ipsum. Donec eu nulla at wisi tincidunt nonummy. Morbi consectetuer mi id ante. Nunc feugiat.

One advantage of using a wikistyle is that it's easy to change the styling of the note:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
%stickynote bgcolor=yellow% Maecenas aliquet. Morbi euismod purus pretium massa. %% 
Curabitur urna wisi, lacinia adipiscing, varius at, venenatis sit amet, augue. Quisque scelerisque mi in ipsum. Donec eu nulla at wisi tincidunt nonummy. Morbi consectetuer mi id ante. Nunc feugiat. [[<<]]

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas aliquet. Morbi euismod purus pretium massa. Curabitur urna wisi, lacinia adipiscing, varius at, venenatis sit amet, augue. Quisque scelerisque mi in ipsum. Donec eu nulla at wisi tincidunt nonummy. Morbi consectetuer mi id ante. Nunc feugiat.

However, as a wikistyle, the sticky note can contain markup, including links:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
%stickynote bgcolor=yellow% This is ''an example'' of StickyNotes %% 
Curabitur urna wisi, lacinia adipiscing, varius at, venenatis sit amet, augue. Quisque scelerisque mi in ipsum. Donec eu nulla at wisi tincidunt nonummy. Morbi consectetuer mi id ante. Nunc feugiat. [[<<]]

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. This is an example of StickyNotes Curabitur urna wisi, lacinia adipiscing, varius at, venenatis sit amet, augue. Quisque scelerisque mi in ipsum. Donec eu nulla at wisi tincidunt nonummy. Morbi consectetuer mi id ante. Nunc feugiat.

And although you might not want to do this, you can even stickynote tables and lists:

# %list stickynote bgcolor=yellow% ''Open box''
# Remove pop-tart
# Insert in toaster
# %red%Extinguish flames
# '''File insurance claim'''
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
Curabitur urna wisi, lacinia adipiscing, varius at, venenatis sit amet, augue. Quisque scelerisque mi in ipsum. Donec eu nulla at wisi tincidunt nonummy. Morbi consectetuer mi id ante. Nunc feugiat. [[<<]]
  1. Open box
  2. Remove pop-tart
  3. Insert in toaster
  4. Extinguish flames
  5. File insurance claim

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur urna wisi, lacinia adipiscing, varius at, venenatis sit amet, augue. Quisque scelerisque mi in ipsum. Donec eu nulla at wisi tincidunt nonummy. Morbi consectetuer mi id ante. Nunc feugiat.

Suggestions/Comment:

  • I have defined some generic styles in nbknotes.css in zipped file. See Cookbook.NotebookSkin?.
    • I would strongly recommend to be adapted for PmWiki as default. Not only it would help in organizing the mindboggling Cookbook section but would overall beautify the sites look. :-)) ~V.Krishn

Can we stickynote divisions? How about

This is some text. Here is more text.

  • 1
  • 2
  • 3
 0: 00.00 00.00 config start
 1: 00.01 00.00 config end
 2: 00.05 00.02 MarkupToHTML begin
 3: 00.06 00.02 MarkupToHTML begin
 4: 00.07 00.03 MarkupToHTML end
 5: 00.07 00.03 MarkupToHTML begin
 6: 00.07 00.03 MarkupToHTML end
 7: 00.07 00.03 MarkupToHTML begin
 8: 00.08 00.03 MarkupToHTML end
 9: 00.08 00.03 MarkupToHTML begin
10: 00.08 00.03 MarkupToHTML end
11: 00.08 00.03 MarkupToHTML begin
12: 00.08 00.04 MarkupToHTML end
13: 00.11 00.05 MarkupToHTML end
14: 00.12 00.05 MarkupToHTML begin
15: 00.13 00.06 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
16: 00.14 00.06 ReadApprovedUrls SiteAdmin.ApprovedUrls end
17: 00.15 00.06 MarkupToHTML end
18: 00.15 00.07 MarkupToHTML begin
19: 00.16 00.07 MarkupToHTML end
20: 00.16 00.07 now
Peak memory: 3,146,344 bytes