[pmwiki-users] brackets in wikistyles

Jon Haupt jhaupt at gmail.com
Wed Oct 18 10:45:15 CDT 2006


On 10/17/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Mon, Oct 09, 2006 at 10:42:03PM -0500, Jon Haupt wrote:
> > Hi there,
> >
> > I was just noticing that it's impossible to use square brackets in
> > wikistyles.  For example if I wanted this to appear in the resulting
> > HTML:
> >
> > <a href="image1.jpg" rel="lightbox[set1]"><img src="image1-s.jpg" /></a>
> >
> > it seems like I want to do %rel=lightbox[set1]% but that doesn't work.
> >  Neither does %rel='lightbox[set1]'%.  This particular use of square
> > brackets is described here:
> >
> > http://www.huddletogether.com/projects/lightbox2/
> >
> > Is this impossible for some easily explained reason?  Would allowing
> > this be a feature request, or is it simply not happening, or is it a
> > bug, or am I just missing something?
>
> I think it comes down to the fact that wikistyles don't really
> understand square brackets.  There might be a local customization
> that could be made to allow them, if you really want.
>
> OTOH, I think that something such as rel='lightbox[set1]' could
> be well outside of the XHTML spec.

You're probably right about that.  Maybe the lightbox folks will have
to come up with a better way to create sets than that.

That said, I found a way to do it programmatically using my
FlickrAlbum recipe.  I put it into use here:

http://josquin.us/Trips/Milwaukee

Now what this does is it dynamically returns a set of images from
Flickr and then displays them on the page in thumbnail form.  Clicking
on them causes an image overlay to appear with next and forward
buttons.  I'm working on updating the FlickrAlbum recipe with this
option.

>
> > Another thing I noticed is that if rel="nofollow" is already set,
> > using %rel=whatever% as a wikistyle has no effect.
>
> Hmm, this sounds like a real bug.  Could you make a PITS entry for
> it if there isn't already one there?
>

Yep, now at PITS/00816.

Thanks,

Jon Haupt




More information about the pmwiki-users mailing list