Note: The linking rules provided by this extension are not evalutated during topic rename actions.
|
* Set STOPWIKIWORDLINK = LinuxWorld, MacDonald
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 |
configure
, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Author(s): | 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 |
Copyright: | (C) 2010 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) |
Release: | 1.4 |
Version: | 12204 (2011-07-23) |
Change History: | |
22 Jul 2011 | 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 |
Support: | http://foswiki.org/bin/view/Support/ControlWikiWordPlugin |
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
png | CWW_thumb.png | manage | 2 K | 11 Feb 2016 - 03:11 | GeorgeClark | 100x100 PNG Logo |