1
%META:TOPICINFO{author="ProjectContributor" date="1182547552" format="1.1" version="1"}%
2
%META:TOPICPARENT{name="Macros"}%
4
---+++ COMMENT{ _attributes_ } -- insert an edit box into the topic to easily add comments.
5
%STARTSECTION{"comment_attributes"}%
6
* A =%<nop>COMMENT%= without parameters shows a simple text box.
7
* The following standard attributes are recognized
8
| *Name* | *Description* | *Default* |
9
| =type= | This is the name of the template to use for this comment. Comment templates are defined in a Foswiki template - see [[CommentPlugin#TemPlates][Customisation]], below. If this attribute is not defined, the type is whatever is defined by COMMENTPLUGIN_DEFAULT_TYPE, either in this topic or in your WebPreferences. | =below= |
10
| =default= | Default text to put into the textarea of the prompt. | |
11
| =target= | Name of the topic to add the comment to | the current topic |
12
| =location= | Regular expression specifying the comment location in the target topic. Read _carefully_ the CommentPlugin documentation! | |
13
| =mode= | For compatibility with older versions only, synonymous with =type= | |
14
| =nonotify= | Set to "on" to disable change notification for target topics | =off= |
15
| =noform= | Set to "on" to disable the automatic form that encloses your comment block - _remember_ to insert =<form>= tags yourself! See CommentPluginExamples#noform for an example. | =off= |
16
| =nopost= | Set to "on" to disable insertion of the posted text into the topic. | =off= |
17
| =remove= | Set to "on" to remove the comment prompt after the first time it is clicked. | =off= |
18
| =button= | Button label text | =Add comment= |
19
%ENDSECTION{"comment_attributes"}%
20
* See CommentPlugin for more information