## Empty TWiki Plugin
This is an empty plugin you can use as a template to build your own %TWIKIWEB%.TWikiPlugins. This plugin does nothing, but is ready to be used.
To create your own plugin:
* Copy file **TWiki/Plugins/EmptyPlugin.pm**
to **<name>Plugin.pm**
and customize the plugin.
* Create a **<name>Plugin**
topic in the %TWIKIWEB% web. Do so by visiting and starting a new topic to get the default plugin topic text (don't save the topic). Customize your plugin topic to your needs.
* See details in %TWIKIWEB%.TWikiPlugins.
### Syntax Rules
(none)
## Test of the new functionality
test case |
input |
output |
expected |
found |
TestTopic1 |
Test Topic 1? |
TestTopic1 |
found singular |
SingularTopics |
Singular Topics? |
SingularTopic |
found other web |
CodingStandard |
Coding Standard? |
Digi.CodingStandard |
found singular |
CodingStandards |
Coding Standards? |
Digi.CodingStandards |
found singular |
WikiWord |
Wiki Word? |
TWiki.WikiWord |
## Don't break other types of wiki words
input |
output |
TestFindElsewhere#TopicAnchor |
Test Find Elsewhere#Topic Anchor? |
Test.WebHome |
Web Home? |
WebHome |
Web Home? |
[[Test.WebHome]] |
Test.Web Home? |
[[Digi.CodingStandard]] |
Digi.Coding Standard? |
[[Digi.CodingStandards]] |
Digi.Coding Standards? |
Digi.CodingStandard |
Coding Standard? |
Digi.CodingStandards |
Coding Standards? |
### %TOPIC% Settings
Plugin settings are stored as preferences variables. To reference a plugin setting write **%<plugin>\_<setting>%**
, i.e. **%EMPTYPLUGIN\_SHORTDESCRIPTION%**
* One line description, is shown in the %TWIKIWEB%.TextFormattingRules topic:
* Set SHORTDESCRIPTION = This plugin does nothing, but can be used as a template for your own plugins.
* Your own setting, i.e.:
* Set EXAMPLE = Digi
* List other webs in which to look for topics that don't exist
* Set LOOKHERE = Digi
* Set LOOKHEREMULTI = Digi, TWiki
* If the [[TWiki/WikiWord]] is plural but doesn't exist, also look for the singular word
* Set PLURALTOSINGULAR = 1
* Debug plugin: (See output in `data/debug.txt`)
* Set DEBUG = 1
### Plugin Installation Instructions
* This plugin is preinstalled, you do not need to install it.
### Plugin Info
**_Related Topics:_** %TWIKIWEB%.TWikiPreferences, %TWIKIWEB%.TWikiPlugins, [[DefaultPlugin]]
-- %TWIKIWEB%.AndreaSterbini - 27 Feb 2001
-- %TWIKIWEB%.PeterThoeny - 14 Jul 2001