[pmwiki-users] Incorrect links...

Patrick R. Michaud pmichaud at pobox.com
Mon Feb 6 20:25:08 CST 2006


On Tue, Feb 07, 2006 at 01:35:50AM +0100, Musikschule Bernsbach / Schwarzenberg (Webmaster) wrote:
> Hi...
> 
> I use pmwiki-2.1.beta22 and when I create a link which
> is only a part of a word, the link is not displayed correctly.
> 
> Example:
> [[Test]]Case produces a link to Test, but the link text is
> TestCase.
> ...
> The workaround forces PmWiki to split the text for displaying
> what I want to be displayed. But I think there should be a
> more elegant way to do this. Or is this even a bug?

It's not a bug, it's a feature.  Truly.  It's essentially
there so that we can easily write things such as

   We have to perform many [[test]]s to get things to work.

which links to a page called "Test" but displays as "tests".
This is a lot easier than writing [[test -> tests]] throughout
the text.

Similarly, we can combine this with parenthesis suppression to
be able to write things like

   PmWiki is [[organiz(ation)]]ed around the principles in the
   [[PmWiki Philosoph(y)]]ies.

which links to "Organization" and "PmWikiPhilosophy" but
displays as "organized" and "PmWiki Philosophies".

I've found that adding a suffix occurs far more frequently
than trying to split a link in the middle of the word.  :-)

Still, you've found the correct solution, which is to use [==].
Another option is to surround the "Case" with it, as in

  [[Test]][=Case=] produces a link to Test, and displays
  as <a href='...'>Test</a>Case.
   
Pm





More information about the pmwiki-users mailing list