Difference: CommentPluginTemplate (2 vs. 3)

Revision 316 Dec 2006 - Main.TWikiContributor

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CommentPlugin"
 
Changed:
<
<
Templates for CommentPlugin - See CommentPlugin#Customisation for help.
>
>

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.
Changed:
<
<
WARNING: THIS FILE WILL BE OVERWRITTEN WHEN YOU UPGRADE THE COMMENT PLUGIN
>
>
hand See CommentPluginExamples to view rendered templates

WARNING: THIS FILE WILL BE OVERWRITTEN WHEN YOU UPGRADE THE COMMENT PLUGIN
 
Changed:
<
<
Put your local templates into UserCommentsTemplate? . LOCAL TEMPLATES WILL OVERRIDE TEMPLATES DEFINED IN THIS FILE
>
>
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:
<
<
>
>
 
Changed:
<
<

Template definitions

Templates used in rest of file

>
>

Template definitions

Templates used in rest of file

 Generic prompt box used by other templates
Changed:
<
<
%TMPL:DEF{promptbox}%
<--/commentPlugin-->
%TMPL:END%
>
>
%TMPL:DEF{promptbox}%
 
<--/commentPlugin-->
%TMPL:END%
  Short comment, signed and dated
Changed:
<
<
%TMPL:DEF{outputoneliner}% * -- TWikiGuest - 31 Oct 2024 - 20:01%TMPL:END%
>
>
%TMPL:DEF{outputoneliner}% * -- TWikiGuest - 31 Oct 2024%TMPL:END%
 
Changed:
<
<

User templates

top

>
>
hand See rendered template Default

User templates

top

 Comments, signed and dated, added at top of file
%TMPL:DEF{PROMPT:top}%%TMPL:P{promptbox}%%TMPL:END%
Line: 37 to 42
 %TMPL:DEF{OUTPUT:top}%%POS:TOP% %TMPL:END%
Changed:
<
<

bottom

>
>
hand See rendered template top

bottom

 Comments, signed and dated, added at end of file
%TMPL:DEF{PROMPT:bottom}%%TMPL:P{promptbox}%%TMPL:END%
Line: 46 to 56
 
%TMPL:DEF{OUTPUT:bottom}%%POS:BOTTOM%%TMPL:P{outputoneliner}%%TMPL:END%
Changed:
<
<

above

>
>
hand See rendered template bottom

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%

hand See rendered template above

bulletabove

Bullet item added immediately before anchor. The input field width is passed with variable inputsize, 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"}%" />&nbsp;<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

>
>
hand See rendered template bulletabove

threadmode

 Wiki thread mode comment, signed and dated
%TMPL:DEF{PROMPT:threadmode}%%TMPL:P{promptbox}%%TMPL:END%
Line: 70 to 108
 -- TWikiGuest - 31 Oct 2024 %TMPL:END%
Changed:
<
<

below

>
>
hand See rendered template threadmode

belowthreadmode

Comments, 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%

hand See rendered template belowthreadmode

below

 Comments, signed and dated, added immediately below anchor
%TMPL:DEF{PROMPT:below}%%TMPL:P{promptbox}%%TMPL:END%
Line: 80 to 143
 %TMPL:DEF{OUTPUT:below}%%POS:AFTER% %TMPL:END%
Changed:
<
<

tableprepend

>
>
hand See rendered template below

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 31 Oct 2024 - 20:01 |
>
>
%TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| | TWikiGuest | 31 Oct 2024 - 20:01 |
 %TMPL:END%
Changed:
<
<

tableappend

>
>
hand See rendered template tableprepend

tableappend

 Comments, signed and dated, added at end of table above the anchor/location/COMMENT
%TMPL:DEF{PROMPT:tableappend}%%TMPL:P{promptbox}%%TMPL:END%
Line: 101 to 174
 %TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| | TWikiGuest | 31 Oct 2024 - 20:01 | %TMPL:END%
Changed:
<
<

after: Add before the comment box, after the last comment

>
>
hand See rendered template tableappend

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

>
>
hand See rendered template after

action

 Action added to action table directly above comment box
Added:
>
>
(requires TWiki:Plugins/ActionTrackerPlugin)
 
%TMPL:DEF{PROMPT:action}%
Changed:
<
<
Action for (WikiName):
Due date:
>
>
 %TMPL:END%
Changed:
<
<
%TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%ACTION{who="" due=""}%
- Created by TWikiGuest, 31 Oct 2024 - 20:01
>
>
%TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%ACTION{who="" due=""}%
- Created by TWikiGuest, 31 Oct 2024 - 20:01
 %TMPL:END%
Changed:
<
<

table

>
>
hand See rendered template action

table

 Tablerows adding on end - TWiki:Main/FranzJosefSilli
%TMPL:DEF{PROMPT:table}%
Changed:
<
<

Date:
City: entry
>
>
<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%
Changed:
<
<

toctalk

>
>
hand See rendered template table

toctalk

 Talk using TOC adding on end - TWiki:Main/FranzJosefSilli
%TMPL:DEF{PROMPT:toctalk}%
Changed:
<
<

Summary:


>
>
<input %DISABLED% type="submit" value="%button Add%" class="twikiButton" />
 %TMPL:END%
%TMPL:DEF{OUTPUT:toctalk}%
Changed:
<
<
%POS:BEFORE%---+++ 31 Oct 2024 - 20:01 TWikiGuest: %POS:BEFORE%
>
>
%POS:BEFORE%---++++ 31 Oct 2024 - 20:01 TWikiGuest: %POS:BEFORE%
 %POS:BEFORE% %TMPL:END%
Changed:
<
<

bookmark

>
>
hand See rendered template toctalk

bookmark

 Talk using TOC adding on end - TWiki:Main/FranzJosefSilli
%TMPL:DEF{PROMPT:bookmark}%
Changed:
<
<

URL:
Link:
Text: bookmark
>
>
<input %DISABLED% type="submit" value="%button Add bookmark%" class="twikiButton" />
 %TMPL:END%
Changed:
<
<
%TMPL:DEF{OUTPUT:bookmark}% %POS:BEFORE% * [[][]] -
>
>
%TMPL:DEF{OUTPUT:bookmark}%%POS:BEFORE% * [[][]]
 %TMPL:END%
Changed:
<
<

Include UserCommentsTemplate

>
>
hand 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. -->
>
>

return

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. 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%

hand See rendered template return

Include UserComments

Including UserComments? :

%TMPL:INCLUDE{"UserComments"}%

 
This site is powered by the TWiki collaboration platformCopyright � by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.CommentPluginTemplate