All functions are disabled by default unless explicitly enabled.
Note: The linking rules provided by this extension are not evalutated during topic rename actions.
|
* Set STOPWIKIWORDLINK = LinuxWorld, MacDonald
In some technical topics, this can result in excessive linking. This feature will limit acronym links to only the first occurrence of an acronym in a topic. Forced [[link]] however will always be honored.
LIMITACRONYMS
.)
* Set CONTROLWIKIWORDPLUGIN_LIMITACRONYMS = 1
* Set CONTROLWIKIWORDPLUGIN_DOTSINGLETONENABLE = 1
As Written | Should appear as | If installed |
---|---|---|
.Singleword | Singleword | Singleword |
bin/configure
interface to set one or more Regular Expressions to find Singleton WikiWords that should be converted to links. The configuration is a hash of a Regular Expression, and the web that
should be linked. {qr/Regular Expression/,'Webname'}
If the webname is not provided, the link will be for the web of the topic containing the matching word.
The plugin performs case-sensitive matching.
Caution: Syntax errors in LocalSite.cfg
can render the site non-operational. This is an Expert level perl language configuration and should be approached with caution! Each entry in the list of regular expressions must be followed by a comma.
{Plugins}{ControlWikiWordPlugin}{SingletonWords} = { '(?:Item[[:digit:]]{3,6})' => 'Tasks', '(?:Question[[:digit:]]{3,5}|FAQ[[:digit:]]{1,3})' => 'Support', '(?:Plugins)' => '', };Will perform the following links: $
'(?:Item[[:digit:]]{3,6}) => 'Tasks'
: Match the word Item followed by a 3-6 digit number. If found, create a link to the topic of that name in the Tasks web.
$ '(?:Question[[:digit:]]{3,5}|FAQ[[:digit:]]{1,3}) => 'Support'
: Match either Question, followed by a 3-5 digit number, or FAQ followed by a 1-3 digit number. If found create a link to the topic of that name in the Support web.
$ '(?:Plugins)' => ''
: Link any instance of the word Plugins to a topic of that name in the current web. (If the Web portion of the rule is empty, the link will point to the current web where the Singleton WikiWord was
found.)
bin/configure
interface by the systems administrator.
Note that all links except for the last example will typically result in "missing
topic" links with the "?".
As Written | Should appear as | If Installed | Notes |
---|---|---|---|
Item123 | Item123 | Item123 | Link points to Tasks Web |
Question234 | Question234 | Question234 | Link points to Support Web |
FAQ23 | FAQ23 | FAQ23 | Link points to Support Web |
Plugins | Plugins | Plugins | Links to Plugins topic in System Web |
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".
If you have any problems, or if the extension isn't available inconfigure
, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Change History: | |
10 Feb 2016 (1.5) | Foswikitask:Item13953 - Inconsistent operation with persistent perl |
22 Jul 2011 (1.4) | Foswikitask:Item10997 - Fix issue with ending delimiter for STOPWIKIWORDLINK |
6 Nov 2010 | Foswikitask:Item9964 - Fix issue with Attachment table on 1.1, Foswikitask:Item9968 - Improve regular expressions |
24 Aug 2010 | Foswikitask:Item9473 - Restructure for performance, clarify documentation |
16 Mar 2010 | Foswikitask:Item8720 - STOPWIKIWORDLINK should be an exact match. |
15 Mar 2010 | Foswikitask:Item8714 - Update author and copyright attributions. Bump version - no code changes. |
22 Feb 2010 | Foswikitask:Item8433 - Restructured internals. Added feature to control Acronym linking to first instance in a topic. |
Dependencies: | None |
Home page: | http://foswiki.org/bin/view/Extensions/ControlWikiWordPlugin |
Author | Foswiki:Main/GeorgeClark Foswiki:Main/MartinCleaver - Singleton Wiki Words TWiki:Main.PeterThoeny - Stop Wiki Word Links TWiki:Main.MikeBarton, Foswiki:Main.KennethLavrsen - First Acronym linking |
Version | 1.5 |
Release | 1.5 |
Description | Plugin to stop linking of WikiWords or force linking of non-standard WikiWords |
Repository | https://github.com/foswiki/ControlWikiWordPlugin |
Copyright | Copyright (C) 2010-2016 George Clark. Adapted from code: Copyright (C) 2000-2001 Andrea Sterbini, a.sterbini@flashnet.it Copyright (C) 2001, 2006 Peter Thoeny, Peter@Thoeny.com |
License | GPL (Gnu General Public License) |
Home | http://foswiki.org/Extensions/ControlWikiWordPlugin |
Support | http://foswiki.org/bin/view/Support/ControlWikiWordPlugin |