1
%META:TOPICINFO{author="ProjectContributor" date="1176025210" format="1.1" reprev="1.1" version="1.1"}%
2
%META:TOPICPARENT{name="CommentPluginTemplate"}%
3
* Top comment output 2 -- Main.ProjectContributor - 26 Nov 2006
4
* Top comment output 1 -- Main.ProjectContributor - 26 Nov 2006
6
---+!! CommentPlugin examples
10
---++ !CommentPlugin templates
16
Default comment output 1
18
-- Main.ProjectContributor - 26 Nov 2006
22
Default comment output 2
24
-- Main.ProjectContributor - 26 Nov 2006
40
%COMMENT{type="bottom"}%
49
Above comment output 1
51
-- Main.ProjectContributor - 26 Nov 2006
54
Above comment output 2
56
-- Main.ProjectContributor - 26 Nov 2006
57
%COMMENT{type="above"}%
64
%COMMENT{type="below"}%
65
* Below comment output 2 -- Main.ProjectContributor - 26 Nov 2006
66
* Below comment output 1 -- Main.ProjectContributor - 26 Nov 2006
72
Example with =inputsize="20"=:
74
* Bullet above comment output 1
75
* Bullet above comment output 2
76
%COMMENT{type="bulletabove" inputsize="20"}%
85
Threadmode comment output 1
87
-- Main.ProjectContributor - 26 Nov 2006
90
Threadmode comment output 2
92
-- Main.ProjectContributor - 26 Nov 2006
93
%COMMENT{type="threadmode"}%
98
---+++ =belowthreadmode=
100
%COMMENT{type="belowthreadmode"}%
102
---++++ Main.ProjectContributor - 26 Nov 2006 - 12:09
104
Belowthreadmode comment output 2
107
---++++ Main.ProjectContributor - 26 Nov 2006 - 12:09
109
Belowthreadmode comment output 1
114
---+++ =tableprepend=
116
%COMMENT{type="tableprepend"}%
117
| Tablepreprend comment output 2 | Main.ProjectContributor | 26 Nov 2006 - 11:03 |
118
| Tablepreprend comment output 1 | Main.ProjectContributor | 26 Nov 2006 - 11:02 |
125
| Tableappend comment output 1 | Main.ProjectContributor | 26 Nov 2006 - 10:38 |
126
| Tableappend comment output 2 | Main.ProjectContributor | 26 Nov 2006 - 10:39 |
127
%COMMENT{type="tableappend"}%
134
* After comment output 1 -- Main.ProjectContributor - 26 Nov 2006
135
* After comment output 2 -- Main.ProjectContributor - 26 Nov 2006
136
%COMMENT{type="after"}%
143
(requires Foswiki:Extensions/ActionTrackerPlugin)
145
%ACTION{ due="1-Dec-2007" creator="Main.ProjectContributor" uid="000001" state="open" created="26-Nov-2006" who="Main.ProjectContributor" }% <<EOF
146
Action comment output 1
147
- Created by Main.ProjectContributor, 26 Nov 2006 - 10:58
149
%ACTION{ due="1-Jan-2008" creator="Main.ProjectContributor" uid="000003" state="open" created="26-Nov-2006" who="Main.ProjectContributor" }% <<EOF
150
Action comment output 2
151
- Created by Main.ProjectContributor, 26 Nov 2006 - 10:58
153
%COMMENT{type="action"}%
160
| 1 Dec 2007 | Main.ProjectContributor | Athens |
161
| 1 Jan 2008 | Main.ProjectContributor | Beijing |
162
%COMMENT{type="table"}%
170
---++++ 26 Nov 2006 - 00:45 Main.ProjectContributor: Toctalk output summary 1
171
Toctalk output message 1
174
---++++ 26 Nov 2006 - 11:09 Main.ProjectContributor: Toctalk output summary 2
175
Toctalk output message 2
177
%COMMENT{type="toctalk"}%
184
* [[http://foswiki.org][Bookmark output link label]] %IF{" '' = '' " then="" else="- "}%
185
* [[http://foswiki.org][Foswiki]] %IF{" 'Bookmark output comment' = '' " then="" else="- "}%Bookmark output comment
186
%COMMENT{type="bookmark"}%
192
Post to a different topic and return to here. In this example comments are written to [[%COMMENT_TOPIC%]].
195
* Set COMMENT_TOPIC = Sandbox.CommentPluginExampleComments
200
%INCLUDE{%COMMENT_TOPIC%}%
204
%COMMENT{type="return" target="%COMMENT_TOPIC%"}% %BR%
211
Example of a custom form to save a comment to a new topic. When the topic is created the parent will be our Sandbox [[Sandbox.CommentPluginExampleComments][example topic]].
213
<form method="post" action="%SCRIPTURL{save}%/Sandbox/" enctype="application/x-www-form-urlencoded" name="noformcomment0" id="noformcomment0">
214
<input type="hidden" name="topicparent" value="CommentPluginExampleComments" />
215
<input type="hidden" name="comment_action" value="save" />
216
<input type="hidden" name="nonwikiword" value="off" />
217
<input type="hidden" name="onlywikiname" value="on" />
218
<div class="foswikiFormSteps">
219
<div class="foswikiFormStep">
220
*New topic name:* %BR%
221
<input class="foswikiInputField" %DISABLED% type="text" size="40" name="topic" id="topic" value="" /> <span class="foswikiGrayText">Enter a !WikiWord topic name</span>
223
<div class="foswikiFormStep foswikiLast">
225
%COMMENT{noform="on" button="Save"}%
234
---+++ =templatetopic=
235
Example of a form definition in a topic. The comment template is located in Sandbox.CommentPluginTemplateExample.
238
#CommentDate1176024819
239
Main.ProjectContributor - 08 Apr 2007:
241
templatetopic example comment output 1
244
%COMMENT{noform="on" type="example" templatetopic="Sandbox.CommentPluginTemplateExample" target="%TOPIC%" button="Add comment" }%
247
* Bottom comment output 1 -- Main.ProjectContributor - 26 Nov 2006
248
* Bottom comment output 2 -- Main.ProjectContributor - 26 Nov 2006