Changeset 1022 for trunk/CommentPlugin/data/System/CommentPlugin.txt
- Timestamp:
- 11/27/08 17:12:26 (3 years ago)
- File:
-
- 1 edited
-
trunk/CommentPlugin/data/System/CommentPlugin.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CommentPlugin/data/System/CommentPlugin.txt
r878 r1022 18 18 19 19 Related topics: CommentPluginTemplates, CommentPluginExamples 20 21 <div class="twikiBroadcastMessage" style="background-color:#ffc;">WARNING: TWiki-4 only. If you want to use this plugin with an earlier version of TWiki, please use [[http://twiki.org/cgi-bin/attach/Plugins/CommentPlugin?filename=CommentPlugin.zip&revInfo=1][revision 31 of the zip]].</div>22 20 23 21 ---++ Features … … 31 29 ---++ Syntax 32 30 #StandardAttrs 33 Write =%<nop>COMMENT{<i>attributes</i>}%= anywhere in a TWikitopic.31 Write =%<nop>COMMENT{<i>attributes</i>}%= anywhere in a topic. 34 32 %INCLUDE{"%SYSTEMWEB%.VarCOMMENT" section="comment_attributes"}% 35 33 (See also [[#MoreAttrs][additional attributes]]) … … 45 43 will add comments in the current topic, directly below the =%COMMENT= tag. 46 44 47 ---++++ Location relative to a TWikianchor45 ---++++ Location relative to an anchor 48 46 The =target= attribute may specify a web, and may also specify an anchor within the target topic; for example, 49 47 <verbatim> 50 48 %COMMENT{type="above" target="%MAINWEB%.PersonalRemarks#InsertHere"}% 51 49 </verbatim> 52 This uses a standard TWikiin-topic anchor as the insertion location. See %SYSTEMWEB%.TextFormattingRules for more about TWiki anchors.50 This uses a standard in-topic anchor as the insertion location. See %SYSTEMWEB%.TextFormattingRules for more about TWiki anchors. 53 51 54 52 ---++++ Location relative to an arbitrary text string … … 95 93 To define a comment type, you have to provide two simple template definitions in the template file; one for the prompt box, and one for the generated output. If we have a template type "mytype", these are named =PROMPT:mytype= and =OUTPUT:mytype= respectively. See =comments.tmpl= in the templates directory for examples. 96 94 97 The plugin picks up these template definitions from a standard TWikitemplate file, =templates/comments.tmpl=. This allows different templates to be defined for different TWiki skins.95 The plugin picks up these template definitions from a standard template file, =templates/comments.tmpl=. This allows different templates to be defined for different TWiki skins. 98 96 99 97 ---+++ Defining custom templates … … 159 157 | =%<nop>MESSAGE%= | The text specified by =default=. This may be overridden by a helpful message when the prompt is DISABLED. | 160 158 161 *EXPERT* Note that when a comment is saved, the TWiki=save= script is invoked on the target topic, with a number of parameters provided by the comment form. Normally the CommentPlugin will provide these fields in the form, but experts can also provide the fields themselves in order to get finer control over what is submitted, or you might want to define your own HTML forms that do comment submission. The parameters that the CommentPlugin recognises are as follows:159 *EXPERT* Note that when a comment is saved, the =save= script is invoked on the target topic, with a number of parameters provided by the comment form. Normally the CommentPlugin will provide these fields in the form, but experts can also provide the fields themselves in order to get finer control over what is submitted, or you might want to define your own HTML forms that do comment submission. The parameters that the CommentPlugin recognises are as follows: 162 160 | *CGI parameter* | *Description* | 163 161 | =comment_action= | Must be =save= to get the CommentPlugin to perform | … … 232 230 #Installation 233 231 ---++ Plugin Installation Instructions 234 * This plugin is pre-installed in most TWikireleases. However if you need to upgrade the plugin for any reason:232 * This plugin is pre-installed in most releases. However if you need to upgrade the plugin for any reason: 235 233 * Download the archive file from the Plugin web (see below) 236 234 * Unpack the archive in your twiki installation directory. … … 248 246 ---++ Plugin Info 249 247 250 Another great TWikiextension from the <a style="text-decoration:none" href="http://wikiring.com"><img src="%ATTACHURLPATH%/wikiringlogo20x20.png" alt="" /> *WikiRing* </a> - working together to improve your wiki experience!251 252 | Plugin Author: | TWiki:Main.CrawfordCurrie http://www.c-dot.co.uk inspired by the work of TWiki:Main.DavidWeller and TWiki:Main.PeterMasiar |248 Another great extension from the <a style="text-decoration:none" href="http://wikiring.com"><img src="%ATTACHURLPATH%/wikiringlogo20x20.png" alt="" /> *WikiRing* </a> - working together to improve your wiki experience! 249 250 | Plugin Author: | Foswiki:Main.CrawfordCurrie http://www.c-dot.co.uk inspired by the work of TWiki:Main.DavidWeller and TWiki:Main.PeterMasiar | 253 251 | Plugin Version: | 03 Aug 2008 %$VERSION% | 254 252 | Change History: | |
Note: See TracChangeset
for help on using the changeset viewer.
