data/TWiki/CommentPluginTemplate.txt,v
author Colas Nahaboo <colas@nahaboo.net>
Sat, 26 Jan 2008 15:50:53 +0100
changeset 0 414e01d06fd5
child 1 e2915a7cbdfa
permissions -rw-r--r--
RELEASE 4.2.0 freetown
colas@0
     1
head	1.4;
colas@0
     2
access;
colas@0
     3
symbols;
colas@0
     4
locks; strict;
colas@0
     5
comment	@# @;
colas@0
     6
colas@0
     7
colas@0
     8
1.4
colas@0
     9
date	2008.01.22.03.21.30;	author TWikiContributor;	state Exp;
colas@0
    10
branches;
colas@0
    11
next	1.3;
colas@0
    12
colas@0
    13
1.3
colas@0
    14
date	2007.01.16.04.12.04;	author TWikiContributor;	state Exp;
colas@0
    15
branches;
colas@0
    16
next	1.2;
colas@0
    17
colas@0
    18
1.2
colas@0
    19
date	2006.10.25.00.22.00;	author TWikiContributor;	state Exp;
colas@0
    20
branches;
colas@0
    21
next	1.1;
colas@0
    22
colas@0
    23
1.1
colas@0
    24
date	2006.06.25.16.26.31;	author TWikiContributor;	state Exp;
colas@0
    25
branches;
colas@0
    26
next	;
colas@0
    27
colas@0
    28
colas@0
    29
desc
colas@0
    30
@buildrelease
colas@0
    31
@
colas@0
    32
colas@0
    33
colas@0
    34
1.4
colas@0
    35
log
colas@0
    36
@buildrelease
colas@0
    37
@
colas@0
    38
text
colas@0
    39
@%META:TOPICINFO{author="TWikiContributor" date="1166310108" format="1.0" version="4"}%
colas@0
    40
%META:TOPICPARENT{name="CommentPlugin"}%
colas@0
    41
colas@0
    42
---+!! Templates for CommentPlugin
colas@0
    43
colas@0
    44
See [[%TWIKIWEB%.CommentPlugin#Customisation][CommentPlugin: Customisation]] for help.
colas@0
    45
colas@0
    46
While this topic can be viewed as a TWiki topic, it is used by the CommentPlugin as a template file - see TWikiTemplates. The important content in here is in the verbatim blocks. The rest of the topic is just comments.
colas@0
    47
colas@0
    48
%ICON{"hand"}% See CommentPluginExamples to view rendered templates
colas@0
    49
colas@0
    50
<div class="twikiBroadcastMessage" style="background-color:#ffc;">WARNING: THIS FILE WILL BE OVERWRITTEN WHEN YOU UPGRADE THE COMMENT PLUGIN</div>
colas@0
    51
colas@0
    52
Put your local templates into %TWIKIWEB%.UserCommentsTemplate (create if it does not exist yet). *Local templates defined in that topic will override templates defined below.*
colas@0
    53
colas@0
    54
%TOC{title="Table of Contents"}%
colas@0
    55
colas@0
    56
---++ Template definitions
colas@0
    57
---+++ Templates used in rest of file
colas@0
    58
Generic prompt box used by other templates
colas@0
    59
<verbatim>
colas@0
    60
%TMPL:DEF{promptbox}%<div class="commentPlugin commentPluginPromptBox"><table border="0" cellpadding="0" cellspacing="0"><tr valign="middle"><td><textarea %DISABLED% rows="%rows|3%" cols="%cols|70%" name="comment" class="twikiInputField" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'">%MESSAGE%</textarea></td><td>&nbsp;<input %DISABLED% type="submit" value="%button|Add comment%" class="twikiButton" /></td></tr></table></div><!--/commentPlugin-->%TMPL:END%
colas@0
    61
</verbatim>
colas@0
    62
Short comment, signed and dated
colas@0
    63
<verbatim>
colas@0
    64
%TMPL:DEF{outputoneliner}%   * %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %GMTIME{"$day $month $year"}%%TMPL:END%
colas@0
    65
</verbatim>
colas@0
    66
colas@0
    67
%ICON{"hand"}% See rendered template [[CommentPluginExamples#Default][Default]]
colas@0
    68
colas@0
    69
colas@0
    70
colas@0
    71
colas@0
    72
---+++ User templates
colas@0
    73
---++++ top
colas@0
    74
Comments, signed and dated, added at top of file
colas@0
    75
<verbatim>
colas@0
    76
%TMPL:DEF{PROMPT:top}%%TMPL:P{promptbox}%%TMPL:END%
colas@0
    77
</verbatim>
colas@0
    78
colas@0
    79
<verbatim>
colas@0
    80
%TMPL:DEF{OUTPUT:top}%%TMPL:P{outputoneliner}%%POS:TOP%
colas@0
    81
%TMPL:END%
colas@0
    82
</verbatim>
colas@0
    83
colas@0
    84
%ICON{"hand"}% See rendered template [[CommentPluginExamples#top][top]]
colas@0
    85
colas@0
    86
colas@0
    87
colas@0
    88
colas@0
    89
---++++ bottom
colas@0
    90
Comments, signed and dated, added at end of file
colas@0
    91
<verbatim>
colas@0
    92
%TMPL:DEF{PROMPT:bottom}%%TMPL:P{promptbox}%%TMPL:END%
colas@0
    93
</verbatim>
colas@0
    94
<verbatim>
colas@0
    95
%TMPL:DEF{OUTPUT:bottom}%%POS:BOTTOM%%TMPL:P{outputoneliner}%%TMPL:END%
colas@0
    96
</verbatim>
colas@0
    97
colas@0
    98
%ICON{"hand"}% See rendered template [[CommentPluginExamples#bottom][bottom]]
colas@0
    99
colas@0
   100
colas@0
   101
colas@0
   102
colas@0
   103
---++++ above
colas@0
   104
Comments, signed and dated, added immediately before anchor
colas@0
   105
<verbatim>
colas@0
   106
%TMPL:DEF{PROMPT:above}%%TMPL:P{promptbox}%%TMPL:END%
colas@0
   107
</verbatim>
colas@0
   108
<verbatim>
colas@0
   109
%TMPL:DEF{OUTPUT:above}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%
colas@0
   110
</verbatim>
colas@0
   111
colas@0
   112
%ICON{"hand"}% See rendered template [[CommentPluginExamples#above][above]]
colas@0
   113
colas@0
   114
colas@0
   115
colas@0
   116
colas@0
   117
---++++ bulletabove
colas@0
   118
Bullet item added immediately before anchor. The input field width is passed with variable =inputsize=, for example:
colas@0
   119
<blockquote><verbatim>
colas@0
   120
%COMMENT{type="bulletabove" inputsize="20"}%
colas@0
   121
</verbatim></blockquote>
colas@0
   122
colas@0
   123
<verbatim>
colas@0
   124
%TMPL:DEF{PROMPT:bulletabove}%<input class="twikiInputField" name="bullet_above_item" id="bullet_above_item" type="text" size="%inputsize|40" value="%URLPARAM{"bullet_above_item"}%" />&nbsp;<input %DISABLED% type="submit" value="%button|Add item%" class="twikiButton" />%TMPL:END%
colas@0
   125
</verbatim>
colas@0
   126
<verbatim>
colas@0
   127
%TMPL:DEF{OUTPUT:bulletabove}%   * %URLPARAM{"bullet_above_item"}%%POS:BEFORE%
colas@0
   128
%TMPL:END%
colas@0
   129
</verbatim>
colas@0
   130
colas@0
   131
%ICON{"hand"}% See rendered template [[CommentPluginExamples#bulletabove][bulletabove]]
colas@0
   132
colas@0
   133
colas@0
   134
colas@0
   135
colas@0
   136
---++++ threadmode
colas@0
   137
Wiki thread mode comment, signed and dated
colas@0
   138
<verbatim>
colas@0
   139
%TMPL:DEF{PROMPT:threadmode}%%TMPL:P{promptbox}%%TMPL:END%
colas@0
   140
</verbatim>
colas@0
   141
<verbatim>
colas@0
   142
%TMPL:DEF{OUTPUT:threadmode}%%POS:BEFORE%
colas@0
   143
colas@0
   144
%URLPARAM{"comment"}%
colas@0
   145
colas@0
   146
-- %WIKIUSERNAME% - %DATE%
colas@0
   147
%TMPL:END%
colas@0
   148
</verbatim>
colas@0
   149
colas@0
   150
%ICON{"hand"}% See rendered template [[CommentPluginExamples#threadmode][threadmode]]
colas@0
   151
colas@0
   152
colas@0
   153
colas@0
   154
colas@0
   155
---++++ belowthreadmode
colas@0
   156
Comments, signed and dated, added recurse after comment box.
colas@0
   157
colas@0
   158
<verbatim>
colas@0
   159
%TMPL:DEF{PROMPT:belowthreadmode}%%TMPL:P{promptbox}%%TMPL:END%
colas@0
   160
</verbatim>
colas@0
   161
<verbatim>
colas@0
   162
%TMPL:DEF{OUTPUT:belowthreadmode}%%POS:AFTER%
colas@0
   163
---++++ %WIKIUSERNAME% - %SERVERTIME%
colas@0
   164
colas@0
   165
%URLPARAM{"comment"}%
colas@0
   166
colas@0
   167
%TMPL:END%
colas@0
   168
</verbatim>
colas@0
   169
colas@0
   170
%ICON{"hand"}% See rendered template [[CommentPluginExamples#belowthreadmode][belowthreadmode]]
colas@0
   171
colas@0
   172
colas@0
   173
colas@0
   174
colas@0
   175
---++++ below
colas@0
   176
Comments, signed and dated, added immediately below anchor
colas@0
   177
<verbatim>
colas@0
   178
%TMPL:DEF{PROMPT:below}%%TMPL:P{promptbox}%%TMPL:END%
colas@0
   179
</verbatim>
colas@0
   180
<verbatim>
colas@0
   181
%TMPL:DEF{OUTPUT:below}%%POS:AFTER%%TMPL:P{outputoneliner}%
colas@0
   182
%TMPL:END%
colas@0
   183
</verbatim>
colas@0
   184
colas@0
   185
%ICON{"hand"}% See rendered template [[CommentPluginExamples#below][below]]
colas@0
   186
colas@0
   187
colas@0
   188
colas@0
   189
colas@0
   190
---++++ tableprepend
colas@0
   191
Comments, signed and dated, added at top of table below the
colas@0
   192
anchor/location/COMMENT
colas@0
   193
<verbatim>
colas@0
   194
%TMPL:DEF{PROMPT:tableprepend}%%TMPL:P{promptbox}%%TMPL:END%
colas@0
   195
</verbatim>
colas@0
   196
<verbatim>
colas@0
   197
%TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| %URLPARAM{"comment" newline="<br />"}% | %WIKIUSERNAME% | %SERVERTIME% |
colas@0
   198
%TMPL:END%
colas@0
   199
</verbatim>
colas@0
   200
colas@0
   201
%ICON{"hand"}% See rendered template [[CommentPluginExamples#tableprepend][tableprepend]]
colas@0
   202
colas@0
   203
colas@0
   204
colas@0
   205
colas@0
   206
---++++ tableappend
colas@0
   207
Comments, signed and dated, added at end of table above the anchor/location/COMMENT
colas@0
   208
<verbatim>
colas@0
   209
%TMPL:DEF{PROMPT:tableappend}%%TMPL:P{promptbox}%%TMPL:END%
colas@0
   210
</verbatim>
colas@0
   211
<verbatim>
colas@0
   212
%TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| %URLPARAM{"comment" newline="<br />"}% | %WIKIUSERNAME% | %SERVERTIME% |
colas@0
   213
%TMPL:END%
colas@0
   214
</verbatim>
colas@0
   215
colas@0
   216
%ICON{"hand"}% See rendered template [[CommentPluginExamples#tableappend][tableappend]]
colas@0
   217
colas@0
   218
colas@0
   219
colas@0
   220
colas@0
   221
---++++ after: Add before the comment box, after the last comment
colas@0
   222
<verbatim>
colas@0
   223
%TMPL:DEF{PROMPT:after}%%TMPL:P{promptbox}%%TMPL:END%
colas@0
   224
</verbatim>
colas@0
   225
<verbatim>
colas@0
   226
%TMPL:DEF{OUTPUT:after}%%NOP%%TMPL:P{outputoneliner}%
colas@0
   227
%POS:BEFORE%%TMPL:END%
colas@0
   228
</verbatim>
colas@0
   229
colas@0
   230
%ICON{"hand"}% See rendered template [[CommentPluginExamples#after][after]]
colas@0
   231
colas@0
   232
colas@0
   233
colas@0
   234
colas@0
   235
---++++ action
colas@0
   236
Action added to action table directly above comment box
colas@0
   237
(requires TWiki:Plugins/ActionTrackerPlugin)
colas@0
   238
<verbatim>
colas@0
   239
%TMPL:DEF{PROMPT:action}%
colas@0
   240
colas@0
   241
%TABLE{databg="#ffffff" tableborder="0" cellborder="0"}%
colas@0
   242
|        <label for="action_who">Action for</label>| <input class="twikiInputField" name="action_who" id="action_who" type="text" size="50" value="%URLPARAM{"who"}%" /> |
colas@0
   243
| <label for="action_due">Due date</label>| <input class="twikiInputField" name="action_due" id="action_due" type="text" size="30" value="%URLPARAM{"due"}%" /> |
colas@0
   244
|    <label for="action_comment">Comment</label>| <textarea %DISABLED% rows="%rows|3%" cols="%cols|50%" name="action_comment" id="action_comment" class="twikiInputField" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'">%MESSAGE%</textarea> |
colas@0
   245
|| <input %DISABLED% type="submit" class="twikiButton" value="Add action" /> |
colas@0
   246
%TMPL:END%
colas@0
   247
</verbatim>
colas@0
   248
<verbatim>
colas@0
   249
%TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%AC%NOP%TION{who="%URLPARAM{"action_who"}%" due="%URLPARAM{"action_due"}%"}% %URLPARAM{"action_comment" newline="<br />"}%<br />- Created by %WIKIUSERNAME%, %SERVERTIME%
colas@0
   250
%TMPL:END%
colas@0
   251
</verbatim>
colas@0
   252
colas@0
   253
%ICON{"hand"}% See rendered template [[CommentPluginExamples#action][action]]
colas@0
   254
colas@0
   255
colas@0
   256
colas@0
   257
colas@0
   258
---++++ table
colas@0
   259
Tablerows adding on end - TWiki:Main/FranzJosefSilli
colas@0
   260
<verbatim>
colas@0
   261
%TMPL:DEF{PROMPT:table}%
colas@0
   262
%TABLE{databg="#ffffff" tableborder="0" cellborder="0"}%
colas@0
   263
|        <label for="comment_date">Date</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_date" id="comment_date" /> |
colas@0
   264
|        <label for="comment_city">City</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_city" id="comment_city" value="" /> |
colas@0
   265
|| <input %DISABLED% type="submit" class="twikiButton" value="%button|Add entry%" /> |
colas@0
   266
%TMPL:END%
colas@0
   267
</verbatim>
colas@0
   268
<verbatim>
colas@0
   269
%TMPL:DEF{OUTPUT:table}%%POS:BEFORE%| %URLPARAM{"comment_date"}% | %WIKIUSERNAME% | %URLPARAM{"comment_city" }% |
colas@0
   270
%TMPL:END%
colas@0
   271
</verbatim>
colas@0
   272
colas@0
   273
%ICON{"hand"}% See rendered template [[CommentPluginExamples#table][table]]
colas@0
   274
colas@0
   275
colas@0
   276
colas@0
   277
colas@0
   278
---++++ toctalk
colas@0
   279
Talk using TOC adding on end - TWiki:Main/FranzJosefSilli
colas@0
   280
<verbatim>
colas@0
   281
%TMPL:DEF{PROMPT:toctalk}%
colas@0
   282
%TABLE{databg="#ffffff" tableborder="0" cellborder="0"}%
colas@0
   283
|        <label for="comment_summary">Summary</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_summary" id="comment_summary" /> |
colas@0
   284
|        <label for="toctalk_comment_text">Message</label>| <textarea %DISABLED% rows="%rows|3%" cols="%cols|50%" name="toctalk_comment_text" id="toctalk_comment_text" class="twikiInputField" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'">%MESSAGE%</textarea> |
colas@0
   285
|| <input %DISABLED% type="submit" value="%button|Add%" class="twikiButton" /> |
colas@0
   286
%TMPL:END%
colas@0
   287
</verbatim>
colas@0
   288
<verbatim>
colas@0
   289
%TMPL:DEF{OUTPUT:toctalk}%
colas@0
   290
%POS:BEFORE%---++++ %SERVERTIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary"}%
colas@0
   291
%POS:BEFORE%%URLPARAM{"toctalk_comment_text" }%
colas@0
   292
%POS:BEFORE%
colas@0
   293
%TMPL:END%
colas@0
   294
</verbatim>
colas@0
   295
colas@0
   296
%ICON{"hand"}% See rendered template [[CommentPluginExamples#toctalk][toctalk]]
colas@0
   297
colas@0
   298
colas@0
   299
colas@0
   300
colas@0
   301
---++++ bookmark
colas@0
   302
Create a list of annotated bookmarks - TWiki:Main/FranzJosefSilli
colas@0
   303
<verbatim>
colas@0
   304
%TMPL:DEF{PROMPT:bookmark}%
colas@0
   305
%TABLE{databg="#ffffff" tableborder="0" cellborder="0"}%
colas@0
   306
|        <label for="comment_url">Url</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_url" id="comment_url" value="http://" /> |
colas@0
   307
| <label for="comment_link">Link label</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_link" id="comment_link" /> |
colas@0
   308
|    <label for="bookmark_comment_text">Comment</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="bookmark_comment_text" id="bookmark_comment_text" value="%MESSAGE%" /> |
colas@0
   309
|| <input %DISABLED% type="submit" value="%button|Add bookmark%" class="twikiButton" /> |
colas@0
   310
%TMPL:END%
colas@0
   311
</verbatim>
colas@0
   312
<verbatim>
colas@0
   313
%TMPL:DEF{OUTPUT:bookmark}%%POS:BEFORE%   * [[%URLPARAM{"comment_url" encode="entity"}%][%URLPARAM{"comment_link" encode="entity"}%]] %IF{" '%URLPARAM{"bookmark_comment_text" encode="entity"}%' = '' " then="" else="- "}%%URLPARAM{"bookmark_comment_text" encode="entity"}%
colas@0
   314
%TMPL:END%
colas@0
   315
</verbatim>
colas@0
   316
colas@0
   317
%ICON{"hand"}% See rendered template [[CommentPluginExamples#bookmark][bookmark]]
colas@0
   318
colas@0
   319
colas@0
   320
colas@0
   321
colas@0
   322
---++++ return
colas@0
   323
Post to a different topic and return to here. The comment =target= is set in the =PROMPT=. In the form below the =redirectto= is set to the current (including) topic. %RED% Available with TWiki 4.1. %ENDCOLOR%
colas@0
   324
colas@0
   325
<verbatim>
colas@0
   326
%TMPL:DEF{returnpromptbox}%
colas@0
   327
<input type="hidden" name="redirectto" value="%BASEWEB%.%BASETOPIC%" />
colas@0
   328
%TMPL:P{promptbox}%
colas@0
   329
%TMPL:END%
colas@0
   330
</verbatim>
colas@0
   331
<verbatim>
colas@0
   332
%TMPL:DEF{PROMPT:return}%%TMPL:P{returnpromptbox}%%TMPL:END%
colas@0
   333
</verbatim>
colas@0
   334
<verbatim>
colas@0
   335
%TMPL:DEF{OUTPUT:return}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%
colas@0
   336
</verbatim>
colas@0
   337
colas@0
   338
%ICON{"hand"}% See rendered template [[CommentPluginExamples#return][return]]
colas@0
   339
colas@0
   340
colas@0
   341
colas@0
   342
colas@0
   343
---++ Include !UserComments
colas@0
   344
colas@0
   345
Including UserComments:
colas@0
   346
colas@0
   347
%TMPL:INCLUDE{"UserComments"}%
colas@0
   348
@
colas@0
   349
colas@0
   350
colas@0
   351
1.3
colas@0
   352
log
colas@0
   353
@buildrelease
colas@0
   354
@
colas@0
   355
text
colas@0
   356
@d1 1
colas@0
   357
a1 1
colas@0
   358
%META:TOPICINFO{author="TWikiContributor" date="1166310108" format="1.0" version="3"}%
colas@0
   359
d264 1
colas@0
   360
a264 1
colas@0
   361
Talk using TOC adding on end - TWiki:Main/FranzJosefSilli
colas@0
   362
@
colas@0
   363
colas@0
   364
colas@0
   365
1.2
colas@0
   366
log
colas@0
   367
@buildrelease
colas@0
   368
@
colas@0
   369
text
colas@0
   370
@d1 2
colas@0
   371
a2 1
colas@0
   372
%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="2"}%
colas@0
   373
d4 3
colas@0
   374
a6 1
colas@0
   375
Templates for CommentPlugin - See %TWIKIWEB%.CommentPlugin#Customisation for help.
colas@0
   376
d10 3
colas@0
   377
a12 1
colas@0
   378
*WARNING: THIS FILE WILL BE OVERWRITTEN WHEN YOU UPGRADE THE COMMENT PLUGIN*
colas@0
   379
d14 1
colas@0
   380
a14 2
colas@0
   381
Put your local templates into %TWIKIWEB%.UserCommentsTemplate.
colas@0
   382
*LOCAL TEMPLATES WILL OVERRIDE TEMPLATES DEFINED IN THIS FILE*
colas@0
   383
d16 1
colas@0
   384
a16 1
colas@0
   385
%TOC%
colas@0
   386
d18 2
colas@0
   387
a19 2
colas@0
   388
---+ Template definitions
colas@0
   389
---++ Templates used in rest of file
colas@0
   390
d22 1
colas@0
   391
a22 5
colas@0
   392
%TMPL:DEF{promptbox}%
colas@0
   393
<div class="commentPlugin commentPluginPromptBox">
colas@0
   394
<table><tr valign="middle"><td><textarea %DISABLED% rows="%rows|3%" cols="%cols|70%" name="comment" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'">%MESSAGE%</textarea></td><td><input %DISABLED% type="submit" value="%button|Add comment%" /></td></tr></table>
colas@0
   395
</div><!--/commentPlugin-->
colas@0
   396
%TMPL:END%
colas@0
   397
d26 1
colas@0
   398
a26 1
colas@0
   399
%TMPL:DEF{outputoneliner}%   * %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %SERVERTIME%%TMPL:END%
colas@0
   400
d28 8
colas@0
   401
a35 3
colas@0
   402
---------------------------------------------------------------------------
colas@0
   403
---++ User templates
colas@0
   404
---+++ top
colas@0
   405
d45 7
colas@0
   406
a51 2
colas@0
   407
---------------------------------------------------------------------------
colas@0
   408
---+++ bottom
colas@0
   409
d59 7
colas@0
   410
a65 2
colas@0
   411
---------------------------------------------------------------------------
colas@0
   412
---+++ above
colas@0
   413
d71 19
colas@0
   414
a89 1
colas@0
   415
%TMPL:DEF{OUTPUT:above}%%POS:BEFORE%%TMPL:P{outputoneliner}%
colas@0
   416
d92 7
colas@0
   417
a98 2
colas@0
   418
---------------------------------------------------------------------------
colas@0
   419
---+++ threadmode
colas@0
   420
d111 27
colas@0
   421
a137 2
colas@0
   422
---------------------------------------------------------------------------
colas@0
   423
---+++ below
colas@0
   424
d146 7
colas@0
   425
a152 2
colas@0
   426
---------------------------------------------------------------------------
colas@0
   427
---+++ tableprepend
colas@0
   428
d159 1
colas@0
   429
a159 1
colas@0
   430
%TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| %URLPARAM{"comment" newline="<br />"}% </td><td> %WIKIUSERNAME% </td><td> %SERVERTIME% |
colas@0
   431
d162 7
colas@0
   432
a168 2
colas@0
   433
---------------------------------------------------------------------------
colas@0
   434
---+++ tableappend
colas@0
   435
d177 7
colas@0
   436
a183 2
colas@0
   437
---------------------------------------------------------------------------
colas@0
   438
---+++ after: Add before the comment box, after the last comment
colas@0
   439
d188 2
colas@0
   440
a189 2
colas@0
   441
%TMPL:DEF{OUTPUT:after}%%NOP%
colas@0
   442
%TMPL:P{outputoneliner}% %POS:BEFORE%%TMPL:END%
colas@0
   443
d191 7
colas@0
   444
a197 2
colas@0
   445
----------------------------------------------------------------------------
colas@0
   446
---+++ action
colas@0
   447
d199 1
colas@0
   448
d202 6
colas@0
   449
a207 20
colas@0
   450
<table>
colas@0
   451
 <tr>
colas@0
   452
  <td align="right">Action for (%TWIKIWEB%.WikiName):</td>
colas@0
   453
  <td><input name="who" type="text" size="50" value="%URLPARAM{"who"}%" /></td>
colas@0
   454
 </tr>
colas@0
   455
 <tr>
colas@0
   456
  <td align="right">Due date:</td>
colas@0
   457
  <td>
colas@0
   458
	<input name="due" id="idDue" type="text" size="30" value="%URLPARAM{"due"}%" />
colas@0
   459
  </td>
colas@0
   460
 </tr>
colas@0
   461
 <tr>
colas@0
   462
  <td colspan="2">
colas@0
   463
	<textarea %DISABLED% rows="5" cols="120" name="comment" wrap="soft"></textarea>
colas@0
   464
  </td>
colas@0
   465
 </tr>
colas@0
   466
 <tr>
colas@0
   467
  <td colspan=2 align=middle><input %DISABLED% type="submit" value="Add action" /></td>
colas@0
   468
 </tr>
colas@0
   469
</table>
colas@0
   470
d211 1
colas@0
   471
a211 1
colas@0
   472
%TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%AC%NOP%TION{who="%URLPARAM{"who"}%" due="%URLPARAM{"due"}%"}% %URLPARAM{"comment" newline="<br />"}%<br />- Created by %WIKIUSERNAME%, %SERVERTIME%
colas@0
   473
d214 7
colas@0
   474
a220 2
colas@0
   475
----------------------------------------------------------------------------
colas@0
   476
---+++ table
colas@0
   477
d224 4
colas@0
   478
a227 1
colas@0
   479
<hr width="60%" /> Date: <input %DISABLED% type="text" size="40" name="comment_date" /> <br /> City: <input %DISABLED% type="text" size="40" name="comment_city" value="" /> <input %DISABLED% type="submit" value="%button|Add%" /> entry <hr width="90%" />
colas@0
   480
d231 1
colas@0
   481
a231 2
colas@0
   482
%TMPL:DEF{OUTPUT:table}%
colas@0
   483
%POS:BEFORE%| %URLPARAM{"comment_date"}% | %WIKIUSERNAME% | %URLPARAM{"comment_city" }% |
colas@0
   484
d234 7
colas@0
   485
a240 2
colas@0
   486
---------------------------------------------------------------------------
colas@0
   487
---+++ toctalk
colas@0
   488
d244 4
colas@0
   489
a247 1
colas@0
   490
<hr width="60%" /> Summary: <input %DISABLED% type="text" size="40" name="comment_summary" /> <br /> <textarea %DISABLED% rows="%rows|3%" cols="%cols|50%" name="comment_text" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'">%MESSAGE%</textarea> <br /> <input %DISABLED% type="submit" value="%button|Add%" /> <hr width="90%" />
colas@0
   491
d252 2
colas@0
   492
a253 2
colas@0
   493
%POS:BEFORE%---+++ %SERVERTIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary"}%
colas@0
   494
%POS:BEFORE%%URLPARAM{"comment_text" }%
colas@0
   495
d257 7
colas@0
   496
a263 2
colas@0
   497
---------------------------------------------------------------------------
colas@0
   498
---+++ bookmark
colas@0
   499
d267 9
colas@0
   500
a275 1
colas@0
   501
<hr width="60%" /> URL: <input %DISABLED% type="text" size="40" name="comment_url" value="http://" /> <br /> Link: <input %DISABLED% type="text" size="40" name="comment_link" /> <br /> Text: <input %DISABLED% type="text" size="40" name="comment_text" value="%MESSAGE%" /> <input %DISABLED% type="submit" value="%button|Add%" /> bookmark <hr width="90%" />
colas@0
   502
d278 9
colas@0
   503
d288 3
colas@0
   504
a290 2
colas@0
   505
%TMPL:DEF{OUTPUT:bookmark}%
colas@0
   506
%POS:BEFORE%	* [[%URLPARAM{"comment_url"}%][%URLPARAM{"comment_link"}%]] - %URLPARAM{"comment_text" }%
colas@0
   507
d293 9
colas@0
   508
a302 1
colas@0
   509
---+ Include !UserCommentsTemplate
colas@0
   510
d304 4
colas@0
   511
a307 1
colas@0
   512
Including UserCommentsTemplate:
colas@0
   513
a309 2
colas@0
   514
colas@0
   515
<!-- Do _not_ attempt to edit this topic; it is auto-generated. Please add comments/questions/remarks to the Dev topic instead. -->
colas@0
   516
@
colas@0
   517
colas@0
   518
colas@0
   519
1.1
colas@0
   520
log
colas@0
   521
@buildrelease
colas@0
   522
@
colas@0
   523
text
colas@0
   524
@d1 1
colas@0
   525
a1 1
colas@0
   526
%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="1"}%
colas@0
   527
d26 1
colas@0
   528
a26 1
colas@0
   529
%TMPL:DEF{outputoneliner}%<span class="commentPlugin commentPluginOutputOneliner">	* %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %SERVERTIME%</span></span><!--/commentPlugin-->%TMPL:END%
colas@0
   530
@