Templates for CommentPluginSee CommentPlugin: Customisation for help. 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. See CommentPluginExamples to view rendered templates. A note on security with the URLPARAM variable: Comments are passed along via URL parameters. They are safely encoded by default to reduce the exposure to cross-site scripting. To preserve user text "as is", and at the cost of security, you can turn off encoding by usingencode="off" in the URLPARAM variable. The newline="" parameter of URLPARAM gets encoded with the same encoding as the actual URL parameter. In TWiki 5.0 and later you can specify newline="$br" to add a <br /> , regardless of the encoding used.
WARNING: THIS FILE WILL BE OVERWRITTEN WHEN YOU UPGRADE THE COMMENT PLUGIN
Put your local templates into UserCommentsTemplate (create if it does not exist yet). Local templates defined in that topic will override templates defined below.
Table of Contents
Template definitionsTemplates used in rest of fileGeneric prompt box used by other templates%TMPL:DEF{promptbox}%<div class="commentPlugin commentPluginPromptBox" style="margin: 5px 0;">%IF{ "istopic '%SYSTEMWEB%.ScrollBoxAddOn'" then="$percntINCLUDE{ \"%SYSTEMWEB%.ScrollBoxAddOn\" section=\"scroll_box_engine\" }$percnt $percntINCLUDE{ \"%SYSTEMWEB%.ScrollBoxAddOn\" section=\"static_box_start\" boxstyle=\"padding: 7px; width: auto; background-color: #f6f6fb;\" }$percnt" }% <div><textarea %DISABLED% rows="%rows|5%" cols="%cols|80%" name="comment" class="twikiTextarea" wrap="soft" style="width: 100%" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'">%MESSAGE%</textarea></div><div style="padding: 5px 0 0 0;"><input %DISABLED% type="submit" value="%button|Add comment%" class="twikiButton" /></div> %IF{ "istopic '%SYSTEMWEB%.ScrollBoxAddOn'" then="$percntINCLUDE{ \"%SYSTEMWEB%.ScrollBoxAddOn\" section=\"static_box_end\" }$percnt" }%</div><!--/commentPlugin-->%TMPL:END%Short comment, signed and dated | ||||||||
Changed: | ||||||||
< < | %TMPL:DEF{outputoneliner}% * -- TWikiGuest - 15 May 2024%TMPL:END% | |||||||
> > | %TMPL:DEF{outputoneliner}% * -- TWikiGuest - 2024-05-15%TMPL:END% | |||||||
See rendered template Default
User templatestopComments, signed and dated, added at top of file%TMPL:DEF{PROMPT:top}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:top}%%TMPL:P{outputoneliner}%%POS:TOP% %TMPL:END%See rendered template top bottomComments, signed and dated, added at end of file%TMPL:DEF{PROMPT:bottom}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:bottom}%%POS:BOTTOM%%TMPL:P{outputoneliner}%%TMPL:END%See rendered template bottom aboveComments, signed and dated, added immediately before anchor%TMPL:DEF{PROMPT:above}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:above}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%See rendered template above bulletaboveBullet item added immediately before anchor. The input field width is passed with variableinputsize , for example:
%COMMENT{type="bulletabove" inputsize="20"}% %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"}%" /> <input %DISABLED% type="submit" value="%button|Add item%" class="twikiButton" />%TMPL:END% %TMPL:DEF{OUTPUT:bulletabove}% * %URLPARAM{"bullet_above_item"}%%POS:BEFORE% %TMPL:END%See rendered template bulletabove threadmodeWiki thread mode comment, signed and dated%TMPL:DEF{PROMPT:threadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:threadmode}%%POS:BEFORE% %URLPARAM{"comment"}% | ||||||||
Changed: | ||||||||
< < | -- TWikiGuest - 2024-05-15 | |||||||
> > | -- TWiki Guest - 2024-05-15 | |||||||
%TMPL:END%
See rendered template threadmode
belowthreadmodeComments, signed and dated, added recurse after comment box.%TMPL:DEF{PROMPT:belowthreadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:belowthreadmode}%%POS:AFTER% ---++++ %WIKIUSERNAME% - %SERVERTIME% %URLPARAM{"comment"}% %TMPL:END%See rendered template belowthreadmode belowComments, signed and dated, added immediately below anchor%TMPL:DEF{PROMPT:below}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:below}%%POS:AFTER%%TMPL:P{outputoneliner}% %TMPL:END%See rendered template below tableprependComments, signed and dated, added at top of table below the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableprepend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| %URLPARAM{"comment" newline="$br"}% | %WIKIUSERNAME% | %SERVERTIME% | %TMPL:END%See rendered template tableprepend tableappendComments, signed and dated, added at end of table above the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableappend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| %URLPARAM{"comment" newline="$br"}% | %WIKIUSERNAME% | %SERVERTIME% | %TMPL:END%See rendered template tableappend after: Add before the comment box, after the last comment%TMPL:DEF{PROMPT:after}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:after}%%NOP%%TMPL:P{outputoneliner}% %POS:BEFORE%%TMPL:END%See rendered template after actionAction added to action table directly above comment box (requires TWiki:Plugins/ActionTrackerPlugin)%TMPL:DEF{PROMPT:action}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="action_who">Action for</label>| <input class="twikiInputField" name="action_who" id="action_who" type="text" size="50" value="%URLPARAM{"who"}%" /> | | <label for="action_due">Due date</label>| <input class="twikiInputField" name="action_due" id="action_due" type="text" size="30" value="%URLPARAM{"due"}%" /> | | <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> | || <input %DISABLED% type="submit" class="twikiButton" value="Add action" /> | %TMPL:END% %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% %ENDAC%NOP%TION% %TMPL:END%See rendered template action tableTablerows adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:table}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_date">Date</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_date" id="comment_date" /> | | <label for="comment_city">City</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_city" id="comment_city" value="" /> | || <input %DISABLED% type="submit" class="twikiButton" value="%button|Add entry%" /> | %TMPL:END% %TMPL:DEF{OUTPUT:table}%%POS:BEFORE%| %URLPARAM{"comment_date"}% | %WIKIUSERNAME% | %URLPARAM{"comment_city"}% | %TMPL:END%See rendered template table toctalkTalk using TOC adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:toctalk}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_summary">Summary</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_summary" id="comment_summary" /> | | <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> | || <input %DISABLED% type="submit" value="%button|Add%" class="twikiButton" /> | %TMPL:END% %TMPL:DEF{OUTPUT:toctalk}% %POS:BEFORE%---++++ %SERVERTIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary"}% %POS:BEFORE%%URLPARAM{"toctalk_comment_text" }% %POS:BEFORE% %TMPL:END%See rendered template toctalk bookmarkCreate a list of annotated bookmarks - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:bookmark}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_url">Url</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_url" id="comment_url" value="http://" /> | | <label for="comment_link">Link label</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_link" id="comment_link" /> | | <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%" /> | || <input %DISABLED% type="submit" value="%button|Add bookmark%" class="twikiButton" /> | %TMPL:END% %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"}% %TMPL:END%See rendered template bookmark returnPost to a different topic and return to here. The commenttarget is set in the PROMPT . In the form below the redirectto is set to the current (including) topic. Available with TWiki 4.1.
%TMPL:DEF{returnpromptbox}% <input type="hidden" name="redirectto" value="%BASEWEB%.%BASETOPIC%" /> %TMPL:P{promptbox}% %TMPL:END% %TMPL:DEF{PROMPT:return}%%TMPL:P{returnpromptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:return}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%See rendered template return Include UserCommentsIncluding UserComments: %TMPL:INCLUDE{"UserComments"}% |
Templates for CommentPluginSee CommentPlugin: Customisation for help. 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. See CommentPluginExamples to view rendered templates. A note on security with the URLPARAM variable: Comments are passed along via URL parameters. They are safely encoded by default to reduce the exposure to cross-site scripting. To preserve user text "as is", and at the cost of security, you can turn off encoding by usingencode="off" in the URLPARAM variable. The newline="" parameter of URLPARAM gets encoded with the same encoding as the actual URL parameter. In TWiki 5.0 and later you can specify newline="$br" to add a <br /> , regardless of the encoding used.
WARNING: THIS FILE WILL BE OVERWRITTEN WHEN YOU UPGRADE THE COMMENT PLUGIN
Put your local templates into UserCommentsTemplate (create if it does not exist yet). Local templates defined in that topic will override templates defined below.
Table of Contents
Template definitionsTemplates used in rest of fileGeneric prompt box used by other templates | ||||||||
Changed: | ||||||||
< < | %TMPL:DEF{promptbox}%<--/commentPlugin-->%TMPL:END% | |||||||
> > | %TMPL:DEF{promptbox}%<--/commentPlugin-->%TMPL:END% | |||||||
Short comment, signed and dated
%TMPL:DEF{outputoneliner}% * %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %GMTIME{"$day $month $year"}%%TMPL:END%See rendered template Default User templatestopComments, signed and dated, added at top of file%TMPL:DEF{PROMPT:top}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:top}%%TMPL:P{outputoneliner}%%POS:TOP% %TMPL:END%See rendered template top bottomComments, signed and dated, added at end of file%TMPL:DEF{PROMPT:bottom}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:bottom}%%POS:BOTTOM%%TMPL:P{outputoneliner}%%TMPL:END%See rendered template bottom aboveComments, signed and dated, added immediately before anchor%TMPL:DEF{PROMPT:above}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:above}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%See rendered template above bulletaboveBullet item added immediately before anchor. The input field width is passed with variableinputsize , for example:
%COMMENT{type="bulletabove" inputsize="20"}% %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"}%" /> <input %DISABLED% type="submit" value="%button|Add item%" class="twikiButton" />%TMPL:END% %TMPL:DEF{OUTPUT:bulletabove}% * %URLPARAM{"bullet_above_item"}%%POS:BEFORE% %TMPL:END%See rendered template bulletabove threadmodeWiki thread mode comment, signed and dated%TMPL:DEF{PROMPT:threadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:threadmode}%%POS:BEFORE% %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %DATE% %TMPL:END%See rendered template threadmode belowthreadmodeComments, signed and dated, added recurse after comment box.%TMPL:DEF{PROMPT:belowthreadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:belowthreadmode}%%POS:AFTER% ---++++ %WIKIUSERNAME% - %SERVERTIME% %URLPARAM{"comment"}% %TMPL:END%See rendered template belowthreadmode belowComments, signed and dated, added immediately below anchor%TMPL:DEF{PROMPT:below}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:below}%%POS:AFTER%%TMPL:P{outputoneliner}% %TMPL:END%See rendered template below tableprependComments, signed and dated, added at top of table below the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableprepend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| %URLPARAM{"comment" newline="$br"}% | %WIKIUSERNAME% | %SERVERTIME% | %TMPL:END%See rendered template tableprepend tableappendComments, signed and dated, added at end of table above the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableappend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| %URLPARAM{"comment" newline="$br"}% | %WIKIUSERNAME% | %SERVERTIME% | %TMPL:END%See rendered template tableappend after: Add before the comment box, after the last comment%TMPL:DEF{PROMPT:after}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:after}%%NOP%%TMPL:P{outputoneliner}% %POS:BEFORE%%TMPL:END%See rendered template after actionAction added to action table directly above comment box (requires TWiki:Plugins/ActionTrackerPlugin)%TMPL:DEF{PROMPT:action}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="action_who">Action for</label>| <input class="twikiInputField" name="action_who" id="action_who" type="text" size="50" value="%URLPARAM{"who"}%" /> | | <label for="action_due">Due date</label>| <input class="twikiInputField" name="action_due" id="action_due" type="text" size="30" value="%URLPARAM{"due"}%" /> | | <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> | || <input %DISABLED% type="submit" class="twikiButton" value="Add action" /> | %TMPL:END% %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% %ENDAC%NOP%TION% %TMPL:END%See rendered template action tableTablerows adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:table}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_date">Date</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_date" id="comment_date" /> | | <label for="comment_city">City</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_city" id="comment_city" value="" /> | || <input %DISABLED% type="submit" class="twikiButton" value="%button|Add entry%" /> | %TMPL:END% %TMPL:DEF{OUTPUT:table}%%POS:BEFORE%| %URLPARAM{"comment_date"}% | %WIKIUSERNAME% | %URLPARAM{"comment_city"}% | %TMPL:END%See rendered template table toctalkTalk using TOC adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:toctalk}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_summary">Summary</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_summary" id="comment_summary" /> | | <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> | || <input %DISABLED% type="submit" value="%button|Add%" class="twikiButton" /> | %TMPL:END% %TMPL:DEF{OUTPUT:toctalk}% %POS:BEFORE%---++++ %SERVERTIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary"}% %POS:BEFORE%%URLPARAM{"toctalk_comment_text" }% %POS:BEFORE% %TMPL:END%See rendered template toctalk bookmarkCreate a list of annotated bookmarks - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:bookmark}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_url">Url</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_url" id="comment_url" value="http://" /> | | <label for="comment_link">Link label</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_link" id="comment_link" /> | | <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%" /> | || <input %DISABLED% type="submit" value="%button|Add bookmark%" class="twikiButton" /> | %TMPL:END% %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"}% %TMPL:END%See rendered template bookmark returnPost to a different topic and return to here. The commenttarget is set in the PROMPT . In the form below the redirectto is set to the current (including) topic. Available with TWiki 4.1.
%TMPL:DEF{returnpromptbox}% <input type="hidden" name="redirectto" value="%BASEWEB%.%BASETOPIC%" /> %TMPL:P{promptbox}% %TMPL:END% %TMPL:DEF{PROMPT:return}%%TMPL:P{returnpromptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:return}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%See rendered template return Include UserCommentsIncluding UserComments: %TMPL:INCLUDE{"UserComments"}% |
Templates for CommentPluginSee CommentPlugin: Customisation for help. 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. See CommentPluginExamples to view rendered templates. A note on security with the URLPARAM variable: Comments are passed along via URL parameters. They are safely encoded by default to reduce the exposure to cross-site scripting. To preserve user text "as is", and at the cost of security, you can turn off encoding by usingencode="off" in the URLPARAM variable. The newline="" parameter of URLPARAM gets encoded with the same encoding as the actual URL parameter. In TWiki 5.0 and later you can specify newline="$br" to add a <br /> , regardless of the encoding used.
WARNING: THIS FILE WILL BE OVERWRITTEN WHEN YOU UPGRADE THE COMMENT PLUGIN
Put your local templates into UserCommentsTemplate (create if it does not exist yet). Local templates defined in that topic will override templates defined below.
Table of Contents
Template definitionsTemplates used in rest of fileGeneric prompt box used by other templates%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> <input %DISABLED% type="submit" value="%button|Add comment%" class="twikiButton" /></td></tr></table></div><!--/commentPlugin-->%TMPL:END%Short comment, signed and dated %TMPL:DEF{outputoneliner}% * %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %GMTIME{"$day $month $year"}%%TMPL:END%See rendered template Default User templatestopComments, signed and dated, added at top of file%TMPL:DEF{PROMPT:top}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:top}%%TMPL:P{outputoneliner}%%POS:TOP% %TMPL:END%See rendered template top bottomComments, signed and dated, added at end of file%TMPL:DEF{PROMPT:bottom}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:bottom}%%POS:BOTTOM%%TMPL:P{outputoneliner}%%TMPL:END%See rendered template bottom aboveComments, signed and dated, added immediately before anchor%TMPL:DEF{PROMPT:above}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:above}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%See rendered template above bulletaboveBullet item added immediately before anchor. The input field width is passed with variableinputsize , for example:
%COMMENT{type="bulletabove" inputsize="20"}% %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"}%" /> <input %DISABLED% type="submit" value="%button|Add item%" class="twikiButton" />%TMPL:END% %TMPL:DEF{OUTPUT:bulletabove}% * %URLPARAM{"bullet_above_item"}%%POS:BEFORE% %TMPL:END%See rendered template bulletabove threadmodeWiki thread mode comment, signed and dated%TMPL:DEF{PROMPT:threadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:threadmode}%%POS:BEFORE% %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %DATE% %TMPL:END%See rendered template threadmode belowthreadmodeComments, signed and dated, added recurse after comment box.%TMPL:DEF{PROMPT:belowthreadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:belowthreadmode}%%POS:AFTER% ---++++ %WIKIUSERNAME% - %SERVERTIME% %URLPARAM{"comment"}% %TMPL:END%See rendered template belowthreadmode belowComments, signed and dated, added immediately below anchor%TMPL:DEF{PROMPT:below}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:below}%%POS:AFTER%%TMPL:P{outputoneliner}% %TMPL:END%See rendered template below tableprependComments, signed and dated, added at top of table below the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableprepend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| %URLPARAM{"comment" newline="$br"}% | %WIKIUSERNAME% | %SERVERTIME% | %TMPL:END%See rendered template tableprepend tableappendComments, signed and dated, added at end of table above the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableappend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| %URLPARAM{"comment" newline="$br"}% | %WIKIUSERNAME% | %SERVERTIME% | %TMPL:END%See rendered template tableappend after: Add before the comment box, after the last comment%TMPL:DEF{PROMPT:after}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:after}%%NOP%%TMPL:P{outputoneliner}% %POS:BEFORE%%TMPL:END%See rendered template after actionAction added to action table directly above comment box (requires TWiki:Plugins/ActionTrackerPlugin)%TMPL:DEF{PROMPT:action}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="action_who">Action for</label>| <input class="twikiInputField" name="action_who" id="action_who" type="text" size="50" value="%URLPARAM{"who"}%" /> | | <label for="action_due">Due date</label>| <input class="twikiInputField" name="action_due" id="action_due" type="text" size="30" value="%URLPARAM{"due"}%" /> | | <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> | || <input %DISABLED% type="submit" class="twikiButton" value="Add action" /> | %TMPL:END% %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% | ||||||||
Added: | ||||||||
> > | %ENDACTION% | |||||||
%TMPL:END%
See rendered template action
tableTablerows adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:table}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_date">Date</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_date" id="comment_date" /> | | <label for="comment_city">City</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_city" id="comment_city" value="" /> | || <input %DISABLED% type="submit" class="twikiButton" value="%button|Add entry%" /> | %TMPL:END% %TMPL:DEF{OUTPUT:table}%%POS:BEFORE%| %URLPARAM{"comment_date"}% | %WIKIUSERNAME% | %URLPARAM{"comment_city"}% | %TMPL:END%See rendered template table toctalkTalk using TOC adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:toctalk}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_summary">Summary</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_summary" id="comment_summary" /> | | <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> | || <input %DISABLED% type="submit" value="%button|Add%" class="twikiButton" /> | %TMPL:END% %TMPL:DEF{OUTPUT:toctalk}% %POS:BEFORE%---++++ %SERVERTIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary"}% %POS:BEFORE%%URLPARAM{"toctalk_comment_text" }% %POS:BEFORE% %TMPL:END%See rendered template toctalk bookmarkCreate a list of annotated bookmarks - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:bookmark}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_url">Url</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_url" id="comment_url" value="http://" /> | | <label for="comment_link">Link label</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_link" id="comment_link" /> | | <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%" /> | || <input %DISABLED% type="submit" value="%button|Add bookmark%" class="twikiButton" /> | %TMPL:END% %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"}% %TMPL:END%See rendered template bookmark returnPost to a different topic and return to here. The commenttarget is set in the PROMPT . In the form below the redirectto is set to the current (including) topic. Available with TWiki 4.1.
%TMPL:DEF{returnpromptbox}% <input type="hidden" name="redirectto" value="%BASEWEB%.%BASETOPIC%" /> %TMPL:P{promptbox}% %TMPL:END% %TMPL:DEF{PROMPT:return}%%TMPL:P{returnpromptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:return}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%See rendered template return Include UserCommentsIncluding UserComments: %TMPL:INCLUDE{"UserComments"}% |
| ||||||||
Deleted: | ||||||||
< < | ||||||||
Templates for CommentPlugin | ||||||||
Changed: | ||||||||
< < | See CommentPlugin: Customisation for help. | |||||||
> > | See CommentPlugin: Customisation for help. | |||||||
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. | ||||||||
Changed: | ||||||||
< < | See CommentPluginExamples to view rendered templates | |||||||
> > | See CommentPluginExamples to view rendered templates. | |||||||
Added: | ||||||||
> > | A note on security with the URLPARAM variable: Comments are passed along via URL parameters. They are safely encoded by default to reduce the exposure to cross-site scripting. To preserve user text "as is", and at the cost of security, you can turn off encoding by using encode="off" in the URLPARAM variable. The newline="" parameter of URLPARAM gets encoded with the same encoding as the actual URL parameter. In TWiki 5.0 and later you can specify newline="$br" to add a <br /> , regardless of the encoding used. | |||||||
WARNING: THIS FILE WILL BE OVERWRITTEN WHEN YOU UPGRADE THE COMMENT PLUGIN | ||||||||
Changed: | ||||||||
< < | Put your local templates into UserCommentsTemplate (create if it does not exist yet). Local templates defined in that topic will override templates defined below. | |||||||
> > | Put your local templates into UserCommentsTemplate (create if it does not exist yet). Local templates defined in that topic will override templates defined below. | |||||||
Table of Contents
Template definitionsTemplates used in rest of fileGeneric prompt box used by other templates%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> <input %DISABLED% type="submit" value="%button|Add comment%" class="twikiButton" /></td></tr></table></div><!--/commentPlugin-->%TMPL:END%Short comment, signed and dated %TMPL:DEF{outputoneliner}% * %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %GMTIME{"$day $month $year"}%%TMPL:END%See rendered template Default User templatestopComments, signed and dated, added at top of file%TMPL:DEF{PROMPT:top}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:top}%%TMPL:P{outputoneliner}%%POS:TOP% %TMPL:END%See rendered template top bottomComments, signed and dated, added at end of file%TMPL:DEF{PROMPT:bottom}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:bottom}%%POS:BOTTOM%%TMPL:P{outputoneliner}%%TMPL:END%See rendered template bottom aboveComments, signed and dated, added immediately before anchor%TMPL:DEF{PROMPT:above}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:above}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%See rendered template above bulletaboveBullet item added immediately before anchor. The input field width is passed with variableinputsize , for example:
%COMMENT{type="bulletabove" inputsize="20"}% %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"}%" /> <input %DISABLED% type="submit" value="%button|Add item%" class="twikiButton" />%TMPL:END% %TMPL:DEF{OUTPUT:bulletabove}% * %URLPARAM{"bullet_above_item"}%%POS:BEFORE% %TMPL:END%See rendered template bulletabove threadmodeWiki thread mode comment, signed and dated%TMPL:DEF{PROMPT:threadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:threadmode}%%POS:BEFORE% %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %DATE% %TMPL:END%See rendered template threadmode belowthreadmodeComments, signed and dated, added recurse after comment box.%TMPL:DEF{PROMPT:belowthreadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:belowthreadmode}%%POS:AFTER% ---++++ %WIKIUSERNAME% - %SERVERTIME% %URLPARAM{"comment"}% %TMPL:END%See rendered template belowthreadmode belowComments, signed and dated, added immediately below anchor%TMPL:DEF{PROMPT:below}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:below}%%POS:AFTER%%TMPL:P{outputoneliner}% %TMPL:END%See rendered template below tableprependComments, signed and dated, added at top of table below the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableprepend}%%TMPL:P{promptbox}%%TMPL:END% | ||||||||
Changed: | ||||||||
< < | %TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| | TWikiGuest | 2024-05-15 - 03:56 | | |||||||
> > | %TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| | TWikiGuest | 2024-05-15 - 03:56 | | |||||||
%TMPL:END%
See rendered template tableprepend
tableappendComments, signed and dated, added at end of table above the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableappend}%%TMPL:P{promptbox}%%TMPL:END% | ||||||||
Changed: | ||||||||
< < | %TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| | TWikiGuest | 2024-05-15 - 03:56 | | |||||||
> > | %TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| | TWikiGuest | 2024-05-15 - 03:56 | | |||||||
%TMPL:END%
See rendered template tableappend
after: Add before the comment box, after the last comment%TMPL:DEF{PROMPT:after}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:after}%%NOP%%TMPL:P{outputoneliner}% %POS:BEFORE%%TMPL:END%See rendered template after actionAction added to action table directly above comment box (requires TWiki:Plugins/ActionTrackerPlugin)%TMPL:DEF{PROMPT:action}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="action_who">Action for</label>| <input class="twikiInputField" name="action_who" id="action_who" type="text" size="50" value="%URLPARAM{"who"}%" /> | | <label for="action_due">Due date</label>| <input class="twikiInputField" name="action_due" id="action_due" type="text" size="30" value="%URLPARAM{"due"}%" /> | | <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> | || <input %DISABLED% type="submit" class="twikiButton" value="Add action" /> | %TMPL:END% %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% %TMPL:END%See rendered template action tableTablerows adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:table}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_date">Date</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_date" id="comment_date" /> | | <label for="comment_city">City</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_city" id="comment_city" value="" /> | || <input %DISABLED% type="submit" class="twikiButton" value="%button|Add entry%" /> | %TMPL:END% | ||||||||
Changed: | ||||||||
< < | %TMPL:DEF{OUTPUT:table}%%POS:BEFORE%| | TWikiGuest | | | |||||||
> > | %TMPL:DEF{OUTPUT:table}%%POS:BEFORE%| | TWikiGuest | | | |||||||
%TMPL:END%
See rendered template table
toctalkTalk using TOC adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:toctalk}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_summary">Summary</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_summary" id="comment_summary" /> | | <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> | || <input %DISABLED% type="submit" value="%button|Add%" class="twikiButton" /> | %TMPL:END% %TMPL:DEF{OUTPUT:toctalk}% %POS:BEFORE%---++++ %SERVERTIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary"}% %POS:BEFORE%%URLPARAM{"toctalk_comment_text" }% %POS:BEFORE% %TMPL:END%See rendered template toctalk bookmarkCreate a list of annotated bookmarks - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:bookmark}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_url">Url</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_url" id="comment_url" value="http://" /> | | <label for="comment_link">Link label</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_link" id="comment_link" /> | | <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%" /> | || <input %DISABLED% type="submit" value="%button|Add bookmark%" class="twikiButton" /> | %TMPL:END% %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"}% %TMPL:END%See rendered template bookmark returnPost to a different topic and return to here. The commenttarget is set in the PROMPT . In the form below the redirectto is set to the current (including) topic. Available with TWiki 4.1.
%TMPL:DEF{returnpromptbox}% <input type="hidden" name="redirectto" value="%BASEWEB%.%BASETOPIC%" /> %TMPL:P{promptbox}% %TMPL:END% %TMPL:DEF{PROMPT:return}%%TMPL:P{returnpromptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:return}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%See rendered template return Include UserCommentsIncluding UserComments: %TMPL:INCLUDE{"UserComments"}% |
Templates for CommentPluginSee CommentPlugin: Customisation for help. 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. See CommentPluginExamples to view rendered templatesWARNING: THIS FILE WILL BE OVERWRITTEN WHEN YOU UPGRADE THE COMMENT PLUGIN
Put your local templates into UserCommentsTemplate (create if it does not exist yet). Local templates defined in that topic will override templates defined below.
Table of Contents
Template definitionsTemplates used in rest of fileGeneric prompt box used by other templates%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> <input %DISABLED% type="submit" value="%button|Add comment%" class="twikiButton" /></td></tr></table></div><!--/commentPlugin-->%TMPL:END%Short comment, signed and dated %TMPL:DEF{outputoneliner}% * %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %GMTIME{"$day $month $year"}%%TMPL:END%See rendered template Default User templatestopComments, signed and dated, added at top of file%TMPL:DEF{PROMPT:top}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:top}%%TMPL:P{outputoneliner}%%POS:TOP% %TMPL:END%See rendered template top bottomComments, signed and dated, added at end of file%TMPL:DEF{PROMPT:bottom}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:bottom}%%POS:BOTTOM%%TMPL:P{outputoneliner}%%TMPL:END%See rendered template bottom aboveComments, signed and dated, added immediately before anchor%TMPL:DEF{PROMPT:above}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:above}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%See rendered template above bulletaboveBullet item added immediately before anchor. The input field width is passed with variableinputsize , for example:
%COMMENT{type="bulletabove" inputsize="20"}% | ||||||||
Changed: | ||||||||
< < | %TMPL:DEF{PROMPT:bulletabove}% %TMPL:END% | |||||||
> > | %TMPL:DEF{PROMPT:bulletabove}% %TMPL:END% | |||||||
%TMPL:DEF{OUTPUT:bulletabove}% * %URLPARAM{"bullet_above_item"}%%POS:BEFORE% %TMPL:END%See rendered template bulletabove threadmodeWiki thread mode comment, signed and dated%TMPL:DEF{PROMPT:threadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:threadmode}%%POS:BEFORE% %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %DATE% %TMPL:END%See rendered template threadmode belowthreadmodeComments, signed and dated, added recurse after comment box.%TMPL:DEF{PROMPT:belowthreadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:belowthreadmode}%%POS:AFTER% ---++++ %WIKIUSERNAME% - %SERVERTIME% %URLPARAM{"comment"}% %TMPL:END%See rendered template belowthreadmode belowComments, signed and dated, added immediately below anchor%TMPL:DEF{PROMPT:below}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:below}%%POS:AFTER%%TMPL:P{outputoneliner}% %TMPL:END%See rendered template below tableprependComments, signed and dated, added at top of table below the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableprepend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| %URLPARAM{"comment" newline="<br />"}% | %WIKIUSERNAME% | %SERVERTIME% | %TMPL:END%See rendered template tableprepend tableappendComments, signed and dated, added at end of table above the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableappend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| %URLPARAM{"comment" newline="<br />"}% | %WIKIUSERNAME% | %SERVERTIME% | %TMPL:END%See rendered template tableappend after: Add before the comment box, after the last comment%TMPL:DEF{PROMPT:after}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:after}%%NOP%%TMPL:P{outputoneliner}% %POS:BEFORE%%TMPL:END%See rendered template after actionAction added to action table directly above comment box (requires TWiki:Plugins/ActionTrackerPlugin)%TMPL:DEF{PROMPT:action}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="action_who">Action for</label>| <input class="twikiInputField" name="action_who" id="action_who" type="text" size="50" value="%URLPARAM{"who"}%" /> | | <label for="action_due">Due date</label>| <input class="twikiInputField" name="action_due" id="action_due" type="text" size="30" value="%URLPARAM{"due"}%" /> | | <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> | || <input %DISABLED% type="submit" class="twikiButton" value="Add action" /> | %TMPL:END% %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% %TMPL:END%See rendered template action tableTablerows adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:table}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_date">Date</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_date" id="comment_date" /> | | <label for="comment_city">City</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_city" id="comment_city" value="" /> | || <input %DISABLED% type="submit" class="twikiButton" value="%button|Add entry%" /> | %TMPL:END% %TMPL:DEF{OUTPUT:table}%%POS:BEFORE%| %URLPARAM{"comment_date"}% | %WIKIUSERNAME% | %URLPARAM{"comment_city" }% | %TMPL:END%See rendered template table toctalkTalk using TOC adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:toctalk}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_summary">Summary</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_summary" id="comment_summary" /> | | <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> | || <input %DISABLED% type="submit" value="%button|Add%" class="twikiButton" /> | %TMPL:END% %TMPL:DEF{OUTPUT:toctalk}% %POS:BEFORE%---++++ %SERVERTIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary"}% %POS:BEFORE%%URLPARAM{"toctalk_comment_text" }% %POS:BEFORE% %TMPL:END%See rendered template toctalk bookmarkCreate a list of annotated bookmarks - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:bookmark}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_url">Url</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_url" id="comment_url" value="http://" /> | | <label for="comment_link">Link label</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_link" id="comment_link" /> | | <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%" /> | || <input %DISABLED% type="submit" value="%button|Add bookmark%" class="twikiButton" /> | %TMPL:END% %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"}% %TMPL:END%See rendered template bookmark returnPost to a different topic and return to here. The commenttarget is set in the PROMPT . In the form below the redirectto is set to the current (including) topic. Available with TWiki 4.1.
%TMPL:DEF{returnpromptbox}% <input type="hidden" name="redirectto" value="%BASEWEB%.%BASETOPIC%" /> %TMPL:P{promptbox}% %TMPL:END% %TMPL:DEF{PROMPT:return}%%TMPL:P{returnpromptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:return}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%See rendered template return Include UserCommentsIncluding UserComments: %TMPL:INCLUDE{"UserComments"}% |
Templates for CommentPluginSee CommentPlugin: Customisation for help. 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. See CommentPluginExamples to view rendered templatesWARNING: THIS FILE WILL BE OVERWRITTEN WHEN YOU UPGRADE THE COMMENT PLUGIN
Put your local templates into UserCommentsTemplate (create if it does not exist yet). Local templates defined in that topic will override templates defined below.
Table of Contents
Template definitionsTemplates used in rest of fileGeneric prompt box used by other templates%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> <input %DISABLED% type="submit" value="%button|Add comment%" class="twikiButton" /></td></tr></table></div><!--/commentPlugin-->%TMPL:END%Short comment, signed and dated %TMPL:DEF{outputoneliner}% * %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %GMTIME{"$day $month $year"}%%TMPL:END%See rendered template Default User templatestopComments, signed and dated, added at top of file%TMPL:DEF{PROMPT:top}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:top}%%TMPL:P{outputoneliner}%%POS:TOP% %TMPL:END%See rendered template top bottomComments, signed and dated, added at end of file%TMPL:DEF{PROMPT:bottom}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:bottom}%%POS:BOTTOM%%TMPL:P{outputoneliner}%%TMPL:END%See rendered template bottom aboveComments, signed and dated, added immediately before anchor%TMPL:DEF{PROMPT:above}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:above}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%See rendered template above bulletaboveBullet item added immediately before anchor. The input field width is passed with variableinputsize , for example:
%COMMENT{type="bulletabove" inputsize="20"}% %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"}%" /> <input %DISABLED% type="submit" value="%button|Add item%" class="twikiButton" />%TMPL:END% %TMPL:DEF{OUTPUT:bulletabove}% * %URLPARAM{"bullet_above_item"}%%POS:BEFORE% %TMPL:END%See rendered template bulletabove threadmodeWiki thread mode comment, signed and dated%TMPL:DEF{PROMPT:threadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:threadmode}%%POS:BEFORE% %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %DATE% %TMPL:END%See rendered template threadmode belowthreadmodeComments, signed and dated, added recurse after comment box.%TMPL:DEF{PROMPT:belowthreadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:belowthreadmode}%%POS:AFTER% ---++++ %WIKIUSERNAME% - %SERVERTIME% %URLPARAM{"comment"}% %TMPL:END%See rendered template belowthreadmode belowComments, signed and dated, added immediately below anchor%TMPL:DEF{PROMPT:below}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:below}%%POS:AFTER%%TMPL:P{outputoneliner}% %TMPL:END%See rendered template below tableprependComments, signed and dated, added at top of table below the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableprepend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| %URLPARAM{"comment" newline="<br />"}% | %WIKIUSERNAME% | %SERVERTIME% | %TMPL:END%See rendered template tableprepend tableappendComments, signed and dated, added at end of table above the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableappend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| %URLPARAM{"comment" newline="<br />"}% | %WIKIUSERNAME% | %SERVERTIME% | %TMPL:END%See rendered template tableappend after: Add before the comment box, after the last comment%TMPL:DEF{PROMPT:after}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:after}%%NOP%%TMPL:P{outputoneliner}% %POS:BEFORE%%TMPL:END%See rendered template after actionAction added to action table directly above comment box (requires TWiki:Plugins/ActionTrackerPlugin)%TMPL:DEF{PROMPT:action}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="action_who">Action for</label>| <input class="twikiInputField" name="action_who" id="action_who" type="text" size="50" value="%URLPARAM{"who"}%" /> | | <label for="action_due">Due date</label>| <input class="twikiInputField" name="action_due" id="action_due" type="text" size="30" value="%URLPARAM{"due"}%" /> | | <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> | || <input %DISABLED% type="submit" class="twikiButton" value="Add action" /> | %TMPL:END% %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% %TMPL:END%See rendered template action tableTablerows adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:table}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_date">Date</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_date" id="comment_date" /> | | <label for="comment_city">City</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_city" id="comment_city" value="" /> | || <input %DISABLED% type="submit" class="twikiButton" value="%button|Add entry%" /> | %TMPL:END% %TMPL:DEF{OUTPUT:table}%%POS:BEFORE%| %URLPARAM{"comment_date"}% | %WIKIUSERNAME% | %URLPARAM{"comment_city" }% | %TMPL:END%See rendered template table toctalkTalk using TOC adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:toctalk}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_summary">Summary</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_summary" id="comment_summary" /> | | <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> | || <input %DISABLED% type="submit" value="%button|Add%" class="twikiButton" /> | %TMPL:END% %TMPL:DEF{OUTPUT:toctalk}% %POS:BEFORE%---++++ %SERVERTIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary"}% %POS:BEFORE%%URLPARAM{"toctalk_comment_text" }% %POS:BEFORE% %TMPL:END%See rendered template toctalk bookmark | ||||||||
Changed: | ||||||||
< < | Talk using TOC adding on end - TWiki:Main/FranzJosefSilli | |||||||
> > | Create a list of annotated bookmarks - TWiki:Main/FranzJosefSilli | |||||||
%TMPL:DEF{PROMPT:bookmark}% %TABLE{databg="#ffffff" tableborder="0" cellborder="0"}% | <label for="comment_url">Url</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_url" id="comment_url" value="http://" /> | | <label for="comment_link">Link label</label>| <input class="twikiInputField" %DISABLED% type="text" size="40" name="comment_link" id="comment_link" /> | | <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%" /> | || <input %DISABLED% type="submit" value="%button|Add bookmark%" class="twikiButton" /> | %TMPL:END% %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"}% %TMPL:END%See rendered template bookmark returnPost to a different topic and return to here. The commenttarget is set in the PROMPT . In the form below the redirectto is set to the current (including) topic. Available with TWiki 4.1.
%TMPL:DEF{returnpromptbox}% <input type="hidden" name="redirectto" value="%BASEWEB%.%BASETOPIC%" /> %TMPL:P{promptbox}% %TMPL:END% %TMPL:DEF{PROMPT:return}%%TMPL:P{returnpromptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:return}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%See rendered template return Include UserCommentsIncluding UserComments: %TMPL:INCLUDE{"UserComments"}% |
Added: | ||||||||||
> > |
| |||||||||
Changed: | ||||||||||
< < | Templates for CommentPlugin - See CommentPlugin#Customisation for help. | |||||||||
> > | Templates for CommentPlugin | |||||||||
Added: | ||||||||||
> > | See CommentPlugin: Customisation for help. | |||||||||
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. | ||||||||||
Changed: | ||||||||||
< < | WARNING: THIS FILE WILL BE OVERWRITTEN WHEN YOU UPGRADE THE COMMENT PLUGIN | |||||||||
> > | See CommentPluginExamples to view rendered templates | |||||||||
Changed: | ||||||||||
< < | Put your local templates into UserCommentsTemplate. | |||||||||
> > | WARNING: THIS FILE WILL BE OVERWRITTEN WHEN YOU UPGRADE THE COMMENT PLUGIN | |||||||||
Deleted: | ||||||||||
< < | LOCAL TEMPLATES WILL OVERRIDE TEMPLATES DEFINED IN THIS FILE | |||||||||
Changed: | ||||||||||
< < | ||||||||||
> > | Put your local templates into UserCommentsTemplate (create if it does not exist yet). Local templates defined in that topic will override templates defined below. | |||||||||
Changed: | ||||||||||
< < | Template definitionsTemplates used in rest of file | |||||||||
> > | ||||||||||
Added: | ||||||||||
> > | Template definitionsTemplates used in rest of file | |||||||||
Generic prompt box used by other templates | ||||||||||
Changed: | ||||||||||
< < | %TMPL:DEF{promptbox}% | |||||||||
> > | %TMPL:DEF{promptbox}%<--/commentPlugin-->%TMPL:END% | |||||||||
Deleted: | ||||||||||
< < | <--/commentPlugin-->%TMPL:END% | |||||||||
Short comment, signed and dated | ||||||||||
Changed: | ||||||||||
< < | %TMPL:DEF{outputoneliner}% * -- TWikiGuest - 2024-05-15 - 03:56%TMPL:END% | |||||||||
> > | %TMPL:DEF{outputoneliner}% * -- TWikiGuest - 15 May 2024%TMPL:END% | |||||||||
Changed: | ||||||||||
< < | User templatestop | |||||||||
> > | See rendered template Default | |||||||||
Added: | ||||||||||
> > |
User templatestop | |||||||||
Comments, signed and dated, added at top of file
%TMPL:DEF{PROMPT:top}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:top}%%TMPL:P{outputoneliner}%%POS:TOP% %TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | bottom | |||||||||
> > | See rendered template top | |||||||||
Added: | ||||||||||
> > |
bottom | |||||||||
Comments, signed and dated, added at end of file
%TMPL:DEF{PROMPT:bottom}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:bottom}%%POS:BOTTOM%%TMPL:P{outputoneliner}%%TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | above | |||||||||
> > | See rendered template bottom | |||||||||
Added: | ||||||||||
> > |
above | |||||||||
Comments, signed and dated, added immediately before anchor
%TMPL:DEF{PROMPT:above}%%TMPL:P{promptbox}%%TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | %TMPL:DEF{OUTPUT:above}%%POS:BEFORE% | |||||||||
> > | %TMPL:DEF{OUTPUT:above}%%POS:BEFORE%%TMPL:END% | |||||||||
Added: | ||||||||||
> > |
See rendered template above
bulletaboveBullet item added immediately before anchor. The input field width is passed with variableinputsize , for example:
%COMMENT{type="bulletabove" inputsize="20"}% %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"}%" /> <input %DISABLED% type="submit" value="%button|Add item%" class="twikiButton" />%TMPL:END% %TMPL:DEF{OUTPUT:bulletabove}% * %URLPARAM{"bullet_above_item"}%%POS:BEFORE% | |||||||||
%TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | threadmode | |||||||||
> > | See rendered template bulletabove | |||||||||
Added: | ||||||||||
> > |
threadmode | |||||||||
Wiki thread mode comment, signed and dated
%TMPL:DEF{PROMPT:threadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:threadmode}%%POS:BEFORE% %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %DATE% %TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | below | |||||||||
> > | See rendered template threadmode | |||||||||
Added: | ||||||||||
> > |
belowthreadmodeComments, signed and dated, added recurse after comment box.%TMPL:DEF{PROMPT:belowthreadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:belowthreadmode}%%POS:AFTER% ---++++ %WIKIUSERNAME% - %SERVERTIME% %URLPARAM{"comment"}% %TMPL:END%See rendered template belowthreadmode below | |||||||||
Comments, signed and dated, added immediately below anchor
%TMPL:DEF{PROMPT:below}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:below}%%POS:AFTER%%TMPL:P{outputoneliner}% %TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | tableprepend | |||||||||
> > | See rendered template below | |||||||||
Added: | ||||||||||
> > |
tableprepend | |||||||||
Comments, signed and dated, added at top of table below the
anchor/location/COMMENT
%TMPL:DEF{PROMPT:tableprepend}%%TMPL:P{promptbox}%%TMPL:END% | ||||||||||
Changed: | ||||||||||
< < |
| |||||||||
> > | %TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| | TWikiGuest | 2024-05-15 - 03:56 | | |||||||||
%TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | tableappend | |||||||||
> > | See rendered template tableprepend | |||||||||
Added: | ||||||||||
> > |
tableappend | |||||||||
Comments, signed and dated, added at end of table above the anchor/location/COMMENT
%TMPL:DEF{PROMPT:tableappend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| %URLPARAM{"comment" newline="<br />"}% | %WIKIUSERNAME% | %SERVERTIME% | %TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | after: Add before the comment box, after the last comment | |||||||||
> > | See rendered template tableappend | |||||||||
Added: | ||||||||||
> > |
after: Add before the comment box, after the last comment | |||||||||
%TMPL:DEF{PROMPT:after}%%TMPL:P{promptbox}%%TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | %TMPL:DEF{OUTPUT:after}% %POS:BEFORE%%TMPL:END% | |||||||||
> > | %TMPL:DEF{OUTPUT:after}% %POS:BEFORE%%TMPL:END% | |||||||||
Changed: | ||||||||||
< < | action | |||||||||
> > | See rendered template after | |||||||||
Added: | ||||||||||
> > |
action | |||||||||
Action added to action table directly above comment box | ||||||||||
Added: | ||||||||||
> > | (requires TWiki:Plugins/ActionTrackerPlugin) | |||||||||
%TMPL:DEF{PROMPT:action}% | ||||||||||
Changed: | ||||||||||
< < |
| |||||||||
> > |
| |||||||||
Deleted: | ||||||||||
< < |
| |||||||||
%TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | %TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%ACTION{who="" due=""}% - Created by TWikiGuest, 2024-05-15 - 03:56 | |||||||||
> > | %TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%ACTION{who="" due=""}% - Created by TWikiGuest, 2024-05-15 - 03:56 | |||||||||
%TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | table | |||||||||
> > | See rendered template action | |||||||||
Added: | ||||||||||
> > |
table | |||||||||
Tablerows adding on end - TWiki:Main/FranzJosefSilli
%TMPL:DEF{PROMPT:table}% | ||||||||||
Changed: | ||||||||||
< < | Date: City: entry | |||||||||
> > | ||||||||||
Added: | ||||||||||
> > |
| |||||||||
%TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | %TMPL:DEF{OUTPUT:table}% | |||||||||
> > | %TMPL:DEF{OUTPUT:table}%%POS:BEFORE%| | TWikiGuest | | | |||||||||
Deleted: | ||||||||||
< < | %POS:BEFORE%| | TWikiGuest | | | |||||||||
%TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | toctalk | |||||||||
> > | See rendered template table | |||||||||
Added: | ||||||||||
> > |
toctalk | |||||||||
Talk using TOC adding on end - TWiki:Main/FranzJosefSilli
%TMPL:DEF{PROMPT:toctalk}% | ||||||||||
Changed: | ||||||||||
< < | Summary: | |||||||||
> > | ||||||||||
Added: | ||||||||||
> > |
| |||||||||
%TMPL:END%
%TMPL:DEF{OUTPUT:toctalk}% | ||||||||||
Changed: | ||||||||||
< < | %POS:BEFORE%---+++ 2024-05-15 - 03:56 TWikiGuest: %POS:BEFORE% | |||||||||
> > | %POS:BEFORE%---++++ 2024-05-15 - 03:56 TWikiGuest: %POS:BEFORE% | |||||||||
%POS:BEFORE% %TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | bookmark | |||||||||
> > | See rendered template toctalk | |||||||||
Added: | ||||||||||
> > |
bookmark | |||||||||
Talk using TOC adding on end - TWiki:Main/FranzJosefSilli
%TMPL:DEF{PROMPT:bookmark}% | ||||||||||
Changed: | ||||||||||
< < | URL: Link: Text: bookmark | |||||||||
> > | ||||||||||
Added: | ||||||||||
> > |
| |||||||||
%TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | %TMPL:DEF{OUTPUT:bookmark}% | |||||||||
> > | %TMPL:DEF{OUTPUT:bookmark}%%POS:BEFORE% * [[][]] | |||||||||
Deleted: | ||||||||||
< < | %POS:BEFORE% * [[][]] - | |||||||||
%TMPL:END% | ||||||||||
Changed: | ||||||||||
< < | Include UserCommentsTemplate | |||||||||
> > | See rendered template bookmark | |||||||||
Deleted: | ||||||||||
< < | Including UserCommentsTemplate: | |||||||||
Deleted: | ||||||||||
< < | %TMPL:INCLUDE{"UserComments"}% | |||||||||
Changed: | ||||||||||
< < | <-- Do not attempt to edit this topic; it is auto-generated. Please add comments/questions/remarks to the Dev topic instead. --> | |||||||||
> > | ||||||||||
Added: | ||||||||||
> > | returnPost to a different topic and return to here. The commenttarget is set in the PROMPT . In the form below the redirectto is set to the current (including) topic. Available with TWiki 4.1.
%TMPL:DEF{returnpromptbox}% <input type="hidden" name="redirectto" value="%BASEWEB%.%BASETOPIC%" /> %TMPL:P{promptbox}% %TMPL:END% %TMPL:DEF{PROMPT:return}%%TMPL:P{returnpromptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:return}%%POS:BEFORE%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%See rendered template return Include UserCommentsIncluding UserComments: %TMPL:INCLUDE{"UserComments"}% | |||||||||
Templates for CommentPlugin - See CommentPlugin#Customisation for help.
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.
WARNING: THIS FILE WILL BE OVERWRITTEN WHEN YOU UPGRADE THE COMMENT PLUGIN
Put your local templates into UserCommentsTemplate.
LOCAL TEMPLATES WILL OVERRIDE TEMPLATES DEFINED IN THIS FILE
On this page:
Template definitionsTemplates used in rest of fileGeneric prompt box used by other templates%TMPL:DEF{promptbox}% <div class="commentPlugin commentPluginPromptBox"> <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> </div><!--/commentPlugin--> %TMPL:END%Short comment, signed and dated | ||||||||
Changed: | ||||||||
< < | %TMPL:DEF{outputoneliner}% * -- TWikiGuest - 2024-05-15 - 03:56<--/commentPlugin-->%TMPL:END% | |||||||
> > | %TMPL:DEF{outputoneliner}% * -- TWikiGuest - 2024-05-15 - 03:56%TMPL:END% | |||||||
User templatestopComments, signed and dated, added at top of file%TMPL:DEF{PROMPT:top}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:top}%%TMPL:P{outputoneliner}%%POS:TOP% %TMPL:END% bottomComments, signed and dated, added at end of file%TMPL:DEF{PROMPT:bottom}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:bottom}%%POS:BOTTOM%%TMPL:P{outputoneliner}%%TMPL:END% aboveComments, signed and dated, added immediately before anchor%TMPL:DEF{PROMPT:above}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:above}%%POS:BEFORE%%TMPL:P{outputoneliner}% %TMPL:END% threadmodeWiki thread mode comment, signed and dated%TMPL:DEF{PROMPT:threadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:threadmode}%%POS:BEFORE% %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %DATE% %TMPL:END% belowComments, signed and dated, added immediately below anchor%TMPL:DEF{PROMPT:below}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:below}%%POS:AFTER%%TMPL:P{outputoneliner}% %TMPL:END% tableprependComments, signed and dated, added at top of table below the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableprepend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| %URLPARAM{"comment" newline="<br />"}% </td><td> %WIKIUSERNAME% </td><td> %SERVERTIME% | %TMPL:END% tableappendComments, signed and dated, added at end of table above the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableappend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| %URLPARAM{"comment" newline="<br />"}% | %WIKIUSERNAME% | %SERVERTIME% | %TMPL:END% after: Add before the comment box, after the last comment%TMPL:DEF{PROMPT:after}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:after}%%NOP% %TMPL:P{outputoneliner}% %POS:BEFORE%%TMPL:END% actionAction added to action table directly above comment box%TMPL:DEF{PROMPT:action}% <table> <tr> <td align="right">Action for (%TWIKIWEB%.WikiName):</td> <td><input name="who" type="text" size="50" value="%URLPARAM{"who"}%" /></td> </tr> <tr> <td align="right">Due date:</td> <td> <input name="due" id="idDue" type="text" size="30" value="%URLPARAM{"due"}%" /> </td> </tr> <tr> <td colspan="2"> <textarea %DISABLED% rows="5" cols="120" name="comment" wrap="soft"></textarea> </td> </tr> <tr> <td colspan=2 align=middle><input %DISABLED% type="submit" value="Add action" /></td> </tr> </table> %TMPL:END% %TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%AC%NOP%TION{who="%URLPARAM{"who"}%" due="%URLPARAM{"due"}%"}% %URLPARAM{"comment" newline="<br />"}%<br />- Created by %WIKIUSERNAME%, %SERVERTIME% %TMPL:END% tableTablerows adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:table}% <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%" /> %TMPL:END% %TMPL:DEF{OUTPUT:table}% %POS:BEFORE%| %URLPARAM{"comment_date"}% | %WIKIUSERNAME% | %URLPARAM{"comment_city" }% | %TMPL:END% toctalkTalk using TOC adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:toctalk}% <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%" /> %TMPL:END% %TMPL:DEF{OUTPUT:toctalk}% %POS:BEFORE%---+++ %SERVERTIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary"}% %POS:BEFORE%%URLPARAM{"comment_text" }% %POS:BEFORE% %TMPL:END% bookmarkTalk using TOC adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:bookmark}% <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%" /> %TMPL:END% %TMPL:DEF{OUTPUT:bookmark}% %POS:BEFORE% * [[%URLPARAM{"comment_url"}%][%URLPARAM{"comment_link"}%]] - %URLPARAM{"comment_text" }% %TMPL:END% Include UserCommentsTemplateIncluding UserCommentsTemplate: %TMPL:INCLUDE{"UserComments"}%<-- Do not attempt to edit this topic; it is auto-generated. Please add comments/questions/remarks to the Dev topic instead. --> |
Templates for CommentPlugin - See CommentPlugin#Customisation for help.
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.
WARNING: THIS FILE WILL BE OVERWRITTEN WHEN YOU UPGRADE THE COMMENT PLUGIN
Put your local templates into UserCommentsTemplate.
LOCAL TEMPLATES WILL OVERRIDE TEMPLATES DEFINED IN THIS FILE
On this page:
Template definitionsTemplates used in rest of fileGeneric prompt box used by other templates%TMPL:DEF{promptbox}% <div class="commentPlugin commentPluginPromptBox"> <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> </div><!--/commentPlugin--> %TMPL:END%Short comment, signed and dated %TMPL:DEF{outputoneliner}%<span class="commentPlugin commentPluginOutputOneliner"> * %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %SERVERTIME%</span></span><!--/commentPlugin-->%TMPL:END% User templatestopComments, signed and dated, added at top of file%TMPL:DEF{PROMPT:top}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:top}%%TMPL:P{outputoneliner}%%POS:TOP% %TMPL:END% bottomComments, signed and dated, added at end of file%TMPL:DEF{PROMPT:bottom}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:bottom}%%POS:BOTTOM%%TMPL:P{outputoneliner}%%TMPL:END% aboveComments, signed and dated, added immediately before anchor%TMPL:DEF{PROMPT:above}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:above}%%POS:BEFORE%%TMPL:P{outputoneliner}% %TMPL:END% threadmodeWiki thread mode comment, signed and dated%TMPL:DEF{PROMPT:threadmode}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:threadmode}%%POS:BEFORE% %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %DATE% %TMPL:END% belowComments, signed and dated, added immediately below anchor%TMPL:DEF{PROMPT:below}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:below}%%POS:AFTER%%TMPL:P{outputoneliner}% %TMPL:END% tableprependComments, signed and dated, added at top of table below the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableprepend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| %URLPARAM{"comment" newline="<br />"}% </td><td> %WIKIUSERNAME% </td><td> %SERVERTIME% | %TMPL:END% tableappendComments, signed and dated, added at end of table above the anchor/location/COMMENT%TMPL:DEF{PROMPT:tableappend}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| %URLPARAM{"comment" newline="<br />"}% | %WIKIUSERNAME% | %SERVERTIME% | %TMPL:END% after: Add before the comment box, after the last comment%TMPL:DEF{PROMPT:after}%%TMPL:P{promptbox}%%TMPL:END% %TMPL:DEF{OUTPUT:after}%%NOP% %TMPL:P{outputoneliner}% %POS:BEFORE%%TMPL:END% actionAction added to action table directly above comment box%TMPL:DEF{PROMPT:action}% <table> <tr> <td align="right">Action for (%TWIKIWEB%.WikiName):</td> <td><input name="who" type="text" size="50" value="%URLPARAM{"who"}%" /></td> </tr> <tr> <td align="right">Due date:</td> <td> <input name="due" id="idDue" type="text" size="30" value="%URLPARAM{"due"}%" /> </td> </tr> <tr> <td colspan="2"> <textarea %DISABLED% rows="5" cols="120" name="comment" wrap="soft"></textarea> </td> </tr> <tr> <td colspan=2 align=middle><input %DISABLED% type="submit" value="Add action" /></td> </tr> </table> %TMPL:END% %TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%AC%NOP%TION{who="%URLPARAM{"who"}%" due="%URLPARAM{"due"}%"}% %URLPARAM{"comment" newline="<br />"}%<br />- Created by %WIKIUSERNAME%, %SERVERTIME% %TMPL:END% tableTablerows adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:table}% <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%" /> %TMPL:END% %TMPL:DEF{OUTPUT:table}% %POS:BEFORE%| %URLPARAM{"comment_date"}% | %WIKIUSERNAME% | %URLPARAM{"comment_city" }% | %TMPL:END% toctalkTalk using TOC adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:toctalk}% <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%" /> %TMPL:END% %TMPL:DEF{OUTPUT:toctalk}% %POS:BEFORE%---+++ %SERVERTIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary"}% %POS:BEFORE%%URLPARAM{"comment_text" }% %POS:BEFORE% %TMPL:END% bookmarkTalk using TOC adding on end - TWiki:Main/FranzJosefSilli%TMPL:DEF{PROMPT:bookmark}% <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%" /> %TMPL:END% %TMPL:DEF{OUTPUT:bookmark}% %POS:BEFORE% * [[%URLPARAM{"comment_url"}%][%URLPARAM{"comment_link"}%]] - %URLPARAM{"comment_text" }% %TMPL:END% Include UserCommentsTemplateIncluding UserCommentsTemplate: %TMPL:INCLUDE{"UserComments"}%<-- Do not attempt to edit this topic; it is auto-generated. Please add comments/questions/remarks to the Dev topic instead. --> |