Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...
View   r3  >  r2  >  r1
CommentPluginTemplate 3 - 16 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 - 19 Apr 2024 - 01:01%TMPL:END%
>
>
%TMPL:DEF{outputoneliner}% * -- TWikiGuest - 19 Apr 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 - 19 Apr 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 19 Apr 2024 - 01:01 |
>
>
%TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| | TWikiGuest | 19 Apr 2024 - 01: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 | 19 Apr 2024 - 01: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, 19 Apr 2024 - 01:01
>
>
%TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%ACTION{who="" due=""}%
- Created by TWikiGuest, 19 Apr 2024 - 01: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
>
>
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:


>
>
Add%" class="twikiButton" />
 %TMPL:END%
%TMPL:DEF{OUTPUT:toctalk}%
Changed:
<
<
%POS:BEFORE%---+++ 19 Apr 2024 - 01:01 TWikiGuest: %POS:BEFORE%
>
>
%POS:BEFORE%---++++ 19 Apr 2024 - 01: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
>
>
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"}%


CommentPluginTemplate 2 - 27 Mar 2005 - Main.TWikiContributor
Line: 1 to 1
 Templates for CommentPlugin - See CommentPlugin#Customisation for help.
Line: 23 to 23
  Short comment, signed and dated
Changed:
<
<
%TMPL:DEF{outputoneliner}% * -- TWikiGuest - 19 Apr 2024 - 01:01
<--/commentPlugin-->
%TMPL:END%
>
>
%TMPL:DEF{outputoneliner}% * -- TWikiGuest - 19 Apr 2024 - 01:01%TMPL:END%
 

User templates


CommentPluginTemplate 1 - 27 Mar 2005 - Main.TWikiContributor
Line: 1 to 1
Added:
>
>
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

Template definitions

Templates used in rest of file

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

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%

above

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

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%

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%

tableprepend

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

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%

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%

action

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

table

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

toctalk

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

bookmark

Talk 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 UserCommentsTemplate

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

Revision 3r3 - 16 Dec 2006 - 23:01:48 - TWikiContributor
Revision 2r2 - 27 Mar 2005 - 13:14:15 - TWikiContributor
Revision 1r1 - 27 Mar 2005 - 13:14:15 - TWikiContributor
This site is powered by the TWiki collaboration platform.
All material on this collaboration platform is the property of the contributing authors.
All material marked as authored by Eben Moglen is available under the license terms CC-BY-SA version 4.
Syndicate this site RSSATOM