r2 - 10 Aug 2006 - 17:38:53 - PeterThoeny? You are here: WikiGardens.com >  TWiki Web > StopWikiWordLinkPlugin

StopWikiWordLinkPlugin

This Plugin prevents automatic linking of selected WikiWords such as LinuxWorld or MacDonald.

Usage

WikiWords that should not be automatically linked are listed in a STOPWIKIWORDLINK preferences setting or Plugin setting. This is typically done in the People.TWikiPreferences, but can be done also in any web (in WebPreferences), or in a single topic. See sample entry in the Plugin settings.

Plugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %STOPWIKIWORDLINKPLUGIN_SHORTDESCRIPTION%

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Prevents automatic linking of selected WikiWords

  • Debug plugin: (See output in data/debug.txt)
    • Set DEBUG = 0

  • List of WikiWords excluded from auto-linking:
    • Set STOPWIKIWORDLINK = LinuxWorld, MacDonald

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the TWiki server.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip StopWikiWordLinkPlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/StopWikiWordLinkPlugin.txt Plugin topic
    data/TWiki/StopWikiWordLinkPlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/StopWikiWordLinkPlugin.pm Plugin Perl module
  • Configure the Plugin:
    • TWiki 4.0 and up: Run the configure script to enable the Plugin
    • Add a STOPWIKIWORDLINK setting to the People.TWikiPreferences topic, listing all WikiWords to exclude from auto-linking. Example:
      • Set STOPWIKIWORDLINK = LinuxWorld, MacDonald
  • Test if the installation was successful. The following words should not be linked when above example is used:
    • LinuxWorld, MacDonald

Limitations

  • This Plugin is not internationalized, that is at this time only A-Z, a-z, and 0-9 are supported for WikiWords

Plugin Info

Plugin Author: TWiki:Main.PeterThoeny
Copyright: © 2006, Peter@Thoeny.org, http://www.structuredwikis.com
License: GPL (GNU General Public License)
Plugin Version: 10 Aug 2006 (V1.001)
Change History:  
10 Aug 2006: Fixed issue where WikiWord at the beginning of line was still linked
09 Aug 2006: Initial version
TWiki Dependency: $TWiki::Plugins::VERSION 1.1
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
Benchmarks: GoodStyle 100%, FormattedSearch 100%, StopWikiWordLinkPlugin 99%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/StopWikiWordLinkPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/StopWikiWordLinkPluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/StopWikiWordLinkPluginAppraisal

Related Topics: TWikiPlugins, DeveloperDocumentationCategory, AdminDocumentationCategory, TWikiPreferences

-- TWiki:Main.PeterThoeny - 10 Aug 2006

Creative Commons License This site is powered by the TWiki collaboration platformUnless otherwise noted, all content on this site is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
Ideas, requests, problems regarding WikiGardens.com? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.StopWikiWordLinkPlugin
 

“A mind all logic is like a knife all blade.
It makes the hand bleed that uses it.”

~ Rabindranath Tagore