01274: Directive (:linkwikiwords:) is not working

Summary: Directive (:linkwikiwords:) is not working
Created: 2011-11-30 02:12
Status: Closed - not a bug
Category: Bug
From: simkin
Priority: 3
Version: 2.2.35
OS: UNIX/Apache/5.2


(:linkwikiwords:) directive is supposed to enable WikiWord links in text; It seems to me its use only makes sense on wikis where $EnableWikiWords is False. As far as I can tell, directive is not working on my wiki when I comment out $EnableWikiWords.

If I write something like this:


here in the page WikiSandbox, It doesn't work.

However, when working with $EnableWikiWords = 1, the use of (:nolinkwikiwords:) successfully disables the WikiWord links in text.

$EnableWikiWords controls the inclusion of scripts/wikiword.php, and $LinkWikiWords controls the linking or just the wrapping of the link text with <span class="wikiword">...</span>. In version 2.1, WikiWords were recognized and styled, but not linked, and the directive could change that per page. This allowed authors to find these links and migrate their existing wikis to the [[free links]] markup. I updated the documentation to make it clear about the $EnableWikiWords variable. --Petko November 30, 2011, at 02:39 AM

Ok, I missed that. But then, shouldn't $LinkWikiWords variable be included in the default config.php side to side with $EnableWikiWords? It looks to me much more important than $SpaceWikiWords. Novel admins can try to enable the linking/nolinking from the config without further reading, and fail as I did. Sorry for the disturbance, this should be closed now. Thanks. --simkin November 30, 2011, at 02:59 AM

Currently when $EnableWikiWords is enabled, $LinkWikiWords is too. An admin installing a new wiki will most often need them both on or both off. The case when they are enabled but not linked will only be used rarely when someone wants to migrate all WikiLinks to [[Free links]]. FWIW it may be better to remove $SpaceWikiWords and $EnableWikiWords from sample-config.php. --Petko November 30, 2011, at 04:08 AM

In my case, I started a wiki with $EnableWikiWords = 1 because it was in the sample config and looked like a nice feature to me. Some time after I came up with PITS:01067 problem, so I thought to disable $EnableWikiWords by default, and let authors the decision of whether use WikiWords or not in their pages through (:linkwikiwords:) directive. I thought this way I would discourage the novel author to use WikiWords, but still allow the more advanced author to use the feature. I just wasn't aware of the $LinkWikiWords variable. IMHO removing the WikiWords related variables from the sample-config.php will be helpfull because it will force a reading ;) --simkin November 30, 2011, at 05:07 AM