1 # <a name="Empty TWiki Plugin"></a> Empty TWiki Plugin
3 This is an empty plugin you can use as a template to build your own [[TWikiPlugins]]. This plugin does nothing, but is ready to be used.
5 To create your own plugin:
7 - Copy file <code>**TWiki/Plugins/EmptyPlugin.pm**</code> to <code>**<name>Plugin.pm**</code> and customize the plugin.
8 - Create a <code>**<name>Plugin**</code> topic in the TWiki web. Do so by visiting <http://TWiki.org/cgi-bin/view/Plugins/> and starting a new topic to get the default plugin topic text (don't save the topic). Customize your plugin topic to your needs.
9 - See details in [[TWikiPlugins]].
11 ## <a name="Syntax Rules"></a> Syntax Rules
15 ## <a name="%TOPIC% Global Settings"></a> %TOPIC% Global Settings
17 Plugin settings are stored as preferences variables. To reference a plugin setting write <code>**%<plugin>\_<setting>%**</code>, for example, <code>**%EMPTYPLUGIN\_SHORTDESCRIPTION%**</code>
19 - One line description, shown in the [[TextFormattingRules]] topic:
20 - Set SHORTDESCRIPTION = This plugin does nothing, but can be used as a template for your own plugins.
22 - Your own settings, for example:
23 - Set EXAMPLE = got it!
25 - Debug plugin: (See output in `data/debug.txt`)
28 ## <a name="Plugin Installation Instructions"></a> Plugin Installation Instructions
30 (This plugin is preinstalled, you do not need to install it.)
32 **_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 server where TWiki is running.
34 - Download the ZIP file from the Plugin web (see below)
35 - Unzip <code>**%TOPIC%.zip**</code> in your twiki installation directory. Content: <table border="1" cellpadding="0" cellspacing="0">
37 <th bgcolor="#99CCCC"><strong> File: </strong></th>
38 <th bgcolor="#99CCCC"><strong> Description: </strong></th>
41 <td><code><b>data/TWiki/%TOPIC%.txt</b></code></td>
42 <td> Plugin topic </td>
45 <td><code><b>data/TWiki/%TOPIC%.txt,v</b></code></td>
46 <td> Plugin topic repository </td>
49 <td><code><b>lib/TWiki/Plugins/%TOPIC%.pm</b></code></td>
50 <td> Plugin Perl module </td>
53 - Test if the plugin is correctly installed:
54 - (describe tests here)
56 ## <a name="Plugin Info"></a> Plugin Info
58 <table border="1" cellpadding="0" cellspacing="0">
60 <td align="right"> Plugin Author: </td>
61 <td>[[TWiki/AndreaSterbini]], [[TWiki/PeterThoeny]]</td>
64 <td align="right"> Plugin Version: </td>
65 <td> 14 Jul 2001 (V1.000) </td>
68 <td align="right"> Change History: </td>
72 <td align="right"> 14 Jul 2001: </td>
73 <td> Changed to plug&play </td>
76 <td align="right"> 27 Feb 2001: </td>
77 <td> Initial version </td>
80 <td align="right"> CPAN Dependencies: </td>
84 <td align="right"> Other Dependencies: </td>
88 <td align="right"> Perl Version: </td>
92 <td align="right"> Plugin Home: </td>
93 <td><a href="http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%" target="_top">http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%</a></td>
96 <td align="right"> Feedback: </td>
97 <td><a href="http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Dev" target="_top">http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Dev</a></td>
101 **_Related Topics:_** [[TWikiPreferences]], [[TWikiPlugins]], [[DefaultPlugin]]
103 -- [[AndreaSterbini]] - 27 Feb 2001 <br /> -- [[PeterThoeny]] - 14 Jul 2001