key Log In or Register to edit

Default TWiki Plugin

This plugin supports some deprecated rendering of older TWiki versions and of JosWiki. Create a new TWikiPlugin based on Empty Plugin if you plan to offer some other functionality.

The plugin is disabled by default. You should enable it on sites where there is very old data using legacy syntax.

Syntax Rules

Custom rendering rules of the default plugin:

  • Allow old include syntax ( %INCLUDE:"TopicName"% ) if Plugin Preferences variable OLDINCLUDE is set to 1
  • Render deprecated *_text_* as bold italic text. Test if installed: _This is bold italic_
  • Enable JosWiki rules if JosWiki-specific code is uncommented * Rewrite certain attachment UR Ls according to legacy usage

Modify file TWiki/Plugins/DefaultPlugin.pm to add your own rules or to enable JosWiki rules.

Plugin Settings

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

  • One line description, is shown in the Text Formatting Rules topic:
    • Set SHORTDESCRIPTION = This plugin can be used to specify some simple custom rendering rules. It also renders deprecated *_text_* as bold italic text.

  • Allow deprecated %INCLUDE:"TopicName"% syntax:
    • Set OLDINCLUDE = 1

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

Plugin Installation Instructions

  • This plugin is preinstalled, you do not need to install it.

Plugin Info

Plugin Author: TWiki:Main.AndreaSterbini, TWiki:Main.PeterThoeny
Plugin Version: 1.030
Change History:  
05 Mar 2004: 1.030 Crawford Currie prepared for Dakar release; disabled by default
21 Mar 2004: Added afterSaveHandler
14 Jul 2001: Changed to plug&play
27 Feb 2001: Initial version
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.0
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/DefaultPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/DefaultPluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/DefaultPluginAppraisal

Related Topics: T Wiki Preferences, T Wiki Plugins, Empty Plugin

 
Ad Sponsor
Back to Redbourn
Copyright © We make no guarantee of the correctness of the content of this site. All material on this collaboration platform is the property of Martin Cleaver and the contributing authors.