[pmwiki-users] Core and question marks

Pico pmwiki at ben-amotz.com
Mon Aug 28 11:13:35 CDT 2006

Patrick R. Michaud wrote:
> On Mon, Aug 28, 2006 at 11:28:15AM -0400, Pico wrote:
>> The one added twist I would like to accomplish is to be able to add a 
>> similar span without necessarily having to provide an alias.  That's not 
>> a huge deal, because you can simply use the Name variable to supply the 
>> alias if what you want is the span without changing the displayed link, 
>> [...]
>> But for other (non-pagelist) links, it would be nice not to have to 
>> supply an alias when you prefer just to use the page name.
>> Is there a workaround that I haven't stumbled upon?  
> Not at the moment.
>> I guess I could use the title, like this:
>> [[Group.Page|+%popup%This is the text to appear in the popup]]
> This doesn't work (yet?), because '+' gets replaced with the 
> title only if it's the only thing in the replacement text.
> But we could perhaps see about extending the title markup to 
> allow this, if the %popup% idiom becomes popular enough.


Other cool uses for spans in links include hiding and displaying images.

For example, a navigational menu bar can use small images to get a nicer 
looking tab effect and, in that case, you span should simply wrap the 
displayed alias, which you can do in PmWiki like this

[[Group.Page|%tabs%Displayed alias%%]]

The underlying CSS can then use two images for the left and right pieces 
of the tab like this:
     #tabs a {
       background:url("tableft.gif") no-repeat left top;
     #tabs a span {
       background:url("tabright.gif") no-repeat right top;

See http://exploding-boy.com/images/cssmenus/menus.html

I'd like to play with a similar idea for a gallery site, where a 
hoovering over each thumbnail causes the full sized image to appear on 
the page.


More information about the pmwiki-users mailing list