mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-29 21:26:58 +00:00
Move the editions into a subfolder
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
title: PluginFormat
|
||||
modifier: blaine
|
||||
created: 20110211110657
|
||||
modified: 20110211131019
|
||||
creator: psd
|
||||
|
||||
It is recommended that [[Plugins]] start with some standard information in TiddlerSlicing format. For example, see the ExamplePlugin:
|
||||
{{{
|
||||
|''Name:''|ExamplePlugin|
|
||||
|''Description:''|To demonstrate how to write TiddlyWiki plugins|
|
||||
|''Version:''|2.0.2|
|
||||
|''Date:''|Jul 12, 2006|
|
||||
|''Source:''|http://www.tiddlywiki.com/#ExamplePlugin|
|
||||
|''Author:''|JeremyRuston (jeremy (at) osmosoft (dot) com)|
|
||||
|''License:''|[[BSD open source license]]|
|
||||
|''~CoreVersion:''|2.1.0|
|
||||
|''Browser:''|Firefox 1.0.4+; Firefox 1.5; InternetExplorer 6.0|
|
||||
}}}
|
||||
At the moment, only ~CoreVersion affects how [[Plugins]] are processed: if the ~CoreVersion is specified for a plugin, TiddlyWiki will only execute the plugin if the core code version matches or exceeds the version specified. For example, if you specify a ~CoreVersion of 2.2, version 2.1.x of TiddlyWiki will refuse to execute the plugin.
|
||||
|
||||
To indicate an error, plugins should just {{{throw}}} an exception. The text of the exception will be displayed in the PluginManager.
|
||||
Reference in New Issue
Block a user