Difference: CommentPluginTemplate (2 vs. 3)

Revision 32006-12-16 - TWikiContributor

Added:
>
>
META TOPICPARENT name="CommentPlugin"
 
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
>
>
Pointing hand 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 definitions

Templates used in rest of file

>
>
Added:
>
>

Template definitions

Templates 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 - 2022-07-07 - 08:07%TMPL:END%
>
>
%TMPL:DEF{outputoneliner}% * -- TWikiGuest - 07 Jul 2022%TMPL:END%
 
Changed:
<
<

User templates

top

>
>
Pointing hand See rendered template Default
Added:
>
>

User templates

top

 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

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

>
>
Pointing hand 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:
>
>

Pointing 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

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

>
>
Pointing hand See rendered template threadmode
Added:
>
>

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%

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

>
>
Pointing hand 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 2022-07-07 - 08:07 |
>
>
%TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| | TWikiGuest | 2022-07-07 - 08:07 |
 %TMPL:END%
Changed:
<
<

tableappend

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

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

>
>
Pointing hand 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:
<
<
Action for (WikiName):
>
>
Deleted:
<
<
Due date:
 %TMPL:END%
Changed:
<
<
%TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%ACTION{who="" due=""}%
- Created by TWikiGuest, 2022-07-07 - 08:07
>
>
%TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%ACTION{who="" due=""}%
- Created by TWikiGuest, 2022-07-07 - 08:07
 %TMPL:END%
Changed:
<
<

table

>
>
Pointing hand See rendered template action
Added:
>
>

table

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

Date:
City: entry
>
>
Added:
>
>
<input %DISABLED% type="submit" class="twikiButton" value="%button Add entry%" />
 %TMPL:END%
Changed:
<
<
%TMPL:DEF{OUTPUT:table}%
>
>
%TMPL:DEF{OUTPUT:table}%%POS:BEFORE%| | TWikiGuest | |
Deleted:
<
<
%POS:BEFORE%| | TWikiGuest | |
 %TMPL:END%
Changed:
<
<

toctalk

>
>
Pointing hand See rendered template table
Added:
>
>

toctalk

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

Summary:


>
>
Added:
>
>
<input %DISABLED% type="submit" value="%button Add%" class="twikiButton" />
 %TMPL:END%
%TMPL:DEF{OUTPUT:toctalk}%
Changed:
<
<
%POS:BEFORE%---+++ 2022-07-07 - 08:07 TWikiGuest: %POS:BEFORE%
>
>
%POS:BEFORE%---++++ 2022-07-07 - 08:07 TWikiGuest: %POS:BEFORE%
 %POS:BEFORE% %TMPL:END%
Changed:
<
<

bookmark

>
>
Pointing hand 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:
>
>
<input %DISABLED% type="submit" value="%button Add bookmark%" class="twikiButton" />
 %TMPL:END%
Changed:
<
<
%TMPL:DEF{OUTPUT:bookmark}%
>
>
%TMPL:DEF{OUTPUT:bookmark}%%POS:BEFORE% * [[][]]
Deleted:
<
<
%POS:BEFORE% * [[][]] -
 %TMPL:END%
Changed:
<
<

Include UserCommentsTemplate

>
>
Pointing 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. -->
>
>
Added:
>
>

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%

Pointing hand See rendered template return

Include UserComments

Including UserComments?:

%TMPL:INCLUDE{"UserComments"}%

 
 
This site is powered by the TWiki collaboration platform Powered by Perl 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 KoreaCmsWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.CommentPluginTemplate