User Comments Template

ATTENTION: The templates defined below override anything defined in CommentPluginTemplate.

See also:

Usage:

  • %COMMENT{type="XYZ"}%
  • %COMMENT{type="XYZ" rows="10" cols="80"}%
  • %COMMENT{type="XYZ" target="Main.PersonalRemarks#InsertHere"}%

Sample

%TMPL:DEF{PROMPT:sample}%
%TMPL:P{promptbox}%
%TMPL:END%

%TMPL:DEF{OUTPUT:sample}%
%TMPL:P{outputoneliner}%%POS:TOP%
%TMPL:END%

Signature only (signme)

No comment text; just signed and dated

%TMPL:DEF{PROMPT:signme}%<input %DISABLED% type="submit" value="%button|Sign here%" class="twikiButton" />%TMPL:END%
%TMPL:DEF{OUTPUT:signme}%%POS:BOTTOM%
   * Signed -- %WIKIUSERNAME% - %SERVERTIME{"$day $month $year - $hou:$min"}%%TMPL:END%

One-liner (oneliner)

Based on distributed CommentPluginTemplate template. This is a single-line comment, signed and dated. The results are appended to a table.

| Date - Time | Wiki User | Comment text |

PROMPT: oneliner

%TMPL:DEF{PROMPT:oneliner}%
Your response will be "signed" with your Wiki name and dated with today's date.  %BR%
<input class="twikiInputField" %DISABLED% type="text" size="100" name="comment_text" id="comment_text" value="" /> %BR%
<input %DISABLED% type="submit" class="twikiButton" value="%button|Submit%" /> 
%TMPL:END%

---+++!! OUTPUT: oneliner
%TMPL:DEF{OUTPUT:oneliner}%%POS:AFTER%
| %SERVERTIME{"$day $month $year - $hou:$min"}% | %WIKIUSERNAME% | %URLPARAM{"comment_text" }% | %TMPL:END%


Topic Comment (topiccomment)

A one-liner that includes the name of the topic from which it came. Useful for cases where the comment is stored in another page.

   %COMMENT{type="topiccomment" target="SomeOtherPage"}%

Output format:
| Topic | Comment Date | Commenter | Comment text | Rev Info |

PROMPT: topiccomment

%TMPL:DEF{PROMPT:topiccomment}%
Comments: <input class="twikiInputField" %DISABLED% type="text" size="80" name="comment_text" id="comment_text" value="" /> %BR%
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
(<i><b>Please tell us how this topic provides value.</b></i>)  %BR%
%MAROON% <b>Your response will be logged with your Wiki name and dated with today's date.</b> %ENDCOLOR% 
<input %DISABLED% type="submit" class="twikiButton" value="%button|Submit%" /> &nbsp; &nbsp; &nbsp;
<input %DISABLED% type="hidden" name="base_topic"  value="%TOPIC%" /> 
%TMPL:END%

OUTPUT: topiccomment

%TMPL:DEF{OUTPUT:topiccomment}%%POS:BEFORE%| [[%URLPARAM{"base_topic"}%]] | %DATE% | %WIKIUSERNAME% | %URLPARAM{"comment_text" }% | %REVINFO{topic="%URLPARAM{"base_topic"}%" "$date - $wikiusername"}%  |
%TMPL:END%


Stale Topic Update (staletopicupdate)

Update the date stamp of the current page with a comment.
   %COMMENT{type="staletopicupdate"}%

PROMPT: staletopicupdate

%TMPL:DEF{PROMPT:staletopicupdate}%
<input %DISABLED% type="hidden" name="revinfo" value='%REVINFO{"$date (<nop>$wikiname; r1.$rev)"}%' />
<input %DISABLED% type="hidden" name="base_topic"  value="%TOPIC%" />
<i><b>Please tell us if this topic still provides value.</b> %GRAY% [[Help.WikiTutMoldyOldies][What is this?]] %ENDCOLOR% %BR%
<input class="twikiInputField" %DISABLED% type="text" size="80" name="comment_text" id="comment_text" value="" /> %BR%
Valuable topics will have their datestamps updated and this notice will disappear.</i>  %BR%
<input %DISABLED% type="submit" class="twikiButton" value="%button|Submit%" />
<hr>
%TMPL:END%

OUTPUT: staletopicupdate

%TMPL:DEF{OUTPUT:staletopicupdate}%%POS:TOP%
------
%TWISTY{showlink="datestamp updated %DATE%"}%
<noautolink>
*content last modified*: %URLPARAM{"revinfo" }%
</noautolink>

This topic is still useful. ([[Help.WikiTutMoldyOldies][What's this?]])

Timestamp updated. %BR%
-- %WIKIUSERNAME% - %DATE% %BR%
%URLPARAM{"comment_text" }%

%ENDTWISTY%

%TMPL:END%


So Basic Comment

No header/title. No signature. No date. Just one or more lines of text, separated by horizontal rules. Comments are posted before the Anchor.

PROMPT: sobasic

%TMPL:DEF{PROMPT:sobasic}%

<textarea %DISABLED% rows="%rows|6%" cols="%cols|70%" name="sobasic_comment" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'"></textarea>

<input type="submit" value="Post" />
%TMPL:END%

OUTPUT: sobasic

%TMPL:DEF{OUTPUT:sobasic}%

%POS:BEFORE% 

%URLPARAM{"sobasic_comment"}%
---


%TMPL:END% 


A Simple daily log template (postlog)

This template automatically includes the date and signs the entry.

PROMPT: postlog

%TMPL:DEF{PROMPT:postlog}%
<table  valign="top">
<tr>
<td><b>Enter your message</b>.<br />HTML and [[%SYSTEMWEB%.TextFormattingRules][Wiki markup]] can be used.
The date is used as the subject header.
Entry will be signed automatically.</td></tr>
<tr>
<td>
<textarea %DISABLED% rows="%rows|6%" cols="%cols|70%" name="postlog_summary" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'"></textarea>
</TD>
</tr>
<TR>
<TD colspan="2" align="center">
   <input type="submit" value="Post Comment" />
</td>
</tr>
</table>%TMPL:END%

OUTPUT: postlog

%TMPL:DEF{OUTPUT:postlog}%

%POS:AFTER% 

---+++ %SERVERTIME%

%URLPARAM{"postlog_summary"}%

 -- %WIKIUSERNAME%
---

%TMPL:END% 


A Note, with subject (notation)

Notes are added BEFORE the Anchor box. The entry form appears at the end of the set of added notes.

PROMPT: notation

%TMPL:DEF{PROMPT:notation}%
<table  valign="top">
<tr>
<td><h3>Subject</h3>(max chars: 60)</td></tr>
<tr>
<td>
   <input %DISABLED% type="text" maxlength="60" size="61" name="notation_headline" />
</td>
</tr>
<tr>
<td><b>Enter your text</b>.<br />HTML and [[%SYSTEMWEB%.TextFormattingRules][Wiki markup]] can be used. <br>
</td></tr>
<tr>
<td>
<textarea %DISABLED% rows="%rows|6%" cols="%cols|70%" name="notation_content" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'"></textarea>
</TD>
</tr>
<TR>
<TD colspan="2" align="center">
   <input type="submit" value="Post" />
</td>
</tr>
</table>
<hr>
%TMPL:END%

PROMPT: notation

%TMPL:DEF{OUTPUT:notation}%

%POS:BEFORE% 

---+++ %URLPARAM{"notation_headline"}% 

%URLPARAM{"notation_content"}%

 -- %WIKIUSERNAME% %DATE%
---

%TMPL:END% 


Variation on simple note entry template

Notes are added AFTER the Anchor. The entry form appears at the top of the set of added notes. The entry will be signed and dated.

PROMPT: noteafter

%TMPL:DEF{PROMPT:noteafter}%
<table  valign="top">
<tr>
<td><h3>Subject</h3>(max chars: 60)</td></tr>
<tr>
<td>
   <input %DISABLED% type="text" maxlength="60" size="61" name="noteafter_headline" />
</td>
</tr>
<tr>
<td><b>Content</b><br />HTML and [[%SYSTEMWEB%.TextFormattingRules][Wiki markup]]<br>
</td></tr>
<tr>
<td>
<textarea %DISABLED% rows="%rows|6%" cols="%cols|70%" name="noteafter_content" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'"></textarea>
</TD>
</tr>
<TR>
<TD colspan="2" align="center">
   <input type="submit" value="Post" />
</td>
</tr>
</table>
<hr>
%TMPL:END%

OUTPUT: noteafter

%TMPL:DEF{OUTPUT:noteafter}%

%POS:AFTER% 

---+++ %URLPARAM{"noteafter_headline"}% 

%URLPARAM{"noteafter_content"}%

 -- %WIKIUSERNAME% %DATE%
---

%TMPL:END% 


3rd Variation on simple note entry template (noteend)

Notes are appended to the BOTTOM of the page. The entry form appears at the top of the set of added notes. The entry will be signed and dated.

PROMPT: noteend

%TMPL:DEF{PROMPT:noteend}%
<table  valign="top">
<tr>
<td><h3>Subject</h3>(max chars: 60)</td></tr>
<tr>
<td>
   <input %DISABLED% type="text" maxlength="60" size="61" name="noteend_headline" />
</td>
</tr>
<tr>
<td><b>Content</b><br />HTML and [[%SYSTEMWEB%.TextFormattingRules][Wiki markup]]<br>
</td></tr>
<tr>
<td>
<textarea %DISABLED% rows="%rows|6%" cols="%cols|70%" name="noteend_content" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'"></textarea>
</TD>
</tr>
<TR>
<TD colspan="2" align="center">
   <input type="submit" value="Post" />
</td>
</tr>
</table>
<hr>
%TMPL:END%

---+++!! OUTPUT: noteend
%TMPL:DEF{OUTPUT:noteend}%

%POS:BOTTOM% 

---+++ %URLPARAM{"noteend_headline"}% 

%URLPARAM{"noteend_content"}%

 -- %WIKIUSERNAME% %DATE%
---

%TMPL:END% 


A Guestbook comment, with optional name (guestbook)

Notes are added BEFORE the Anchor box. The entry form appears at the end of the set of added notes.

PROMPT: guestbook

%TMPL:DEF{PROMPT:guestbook}%
<table  valign="top">
<tr>
<td><b>Comments</b>.<br /> 
</td></tr>
<tr>
<td>
<textarea %DISABLED% rows="%rows|6%" cols="%cols|70%" name="guestbook_content" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'"></textarea>
</TD>
</tr>
<tr>
<td><b>Your name</b> (optional)
   <input %DISABLED% type="text" maxlength="60" size="61" name="guestbook_name" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
   <input type="submit" value="Post" />
</td>
</tr>
</table>
<hr>
%TMPL:END%

PROMPT: guestbook

%TMPL:DEF{OUTPUT:guestbook}%
%POS:BEFORE% 
%URLPARAM{"guestbook_content"}%

 -- %URLPARAM{"guestbook_name"}% (%WIKINAME%)  %DATE%
---
%TMPL:END% 


Form to add info about a person (newperson)

Based on noteafter. Entries are added AFTER the Anchor. The entry form appears at the top of the set of added notes. The entry is not signed.

PROMPT: newperson

%TMPL:DEF{PROMPT:newperson}%
<!-- JSCALENDAR -->
%INCLUDE{"%SYSTEMWEB%/JSCalendarContribInline"}%

<table  valign="top">
<tr>
<td><b>Name</b></td>
</tr><tr>
<td>
   <input %DISABLED% type="text" maxlength="60" size="61" name="newperson_name" />
</td>
<tr>
<td><b>User ID</b></td>
</tr><tr>
<td>
   <input %DISABLED% type="text" maxlength="15" size="12" name="newperson_uid" value="%USERNAME%"/>  %RED%&lt;== change if this isn't you!%ENDCOLOR%
</td>
</tr><tr>
  <td align="left"><b>Start Date</b></td>
</tr><tr>
  <td>
   <input name="newperson_date" id="idDue" type="text" size="20" />
   <input type="image" src="%PUBURL%/%SYSTEMWEB%/JSCalendarContrib/img.gif"  alt="Calendar" onclick="javascript: return showCalendar('idDue','%b %d, %Y')" />
  </td>
</tr><tr>
<td><b>Group</b></td>
</tr><tr>
<td>
   <input %DISABLED% type="text" maxlength="60" size="61" name="newperson_group" />
</tr><tr>
</td><td><b>Location</b></td>
</tr><tr>
<td>
   <input %DISABLED% type="text" maxlength="60" size="61" name="newperson_loc" />
</td>
</tr><tr>
<td><b>Tell us about yourself</b><br />(simple HTML and [[%SYSTEMWEB%.TextFormattingRules][Wiki markup]] can be used; blank lines separate paragraphs.)<br>
</td></tr>
<tr>
<td>
<textarea %DISABLED% rows="20" cols="70" name="newperson_content" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'"></textarea>
</TD>
</tr>
<TR>
<TD colspan="2" align="center">
   <input type="submit" value="Post" />
</td>
</tr>
</table>
<hr>
%TMPL:END%

OUTPUT: newperson

%TMPL:DEF{OUTPUT:newperson}%

%POS:AFTER% 

%S%NOP%TARTSECTION{"%URLPARAM{"newperson_uid"}%"}%

---+++ %URLPARAM{"newperson_name"}% 

<img src="%BYPIX%%URLPARAM{"newperson_uid"}%%ENDBYPIX%" align="left" hspace="5" /> 

%URLPARAM{"newperson_date"}%  -- %URLPARAM{"newperson_group"}% %URLPARAM{"newperson_loc"}%

%URLPARAM{"newperson_content"}%

%E%NOP%NDSECTION{"%URLPARAM{"newperson_uid"}%"}%

---------------

%TMPL:END% 


Add Calendar Event

PROMPT:AddCalendarEvent

%TMPL:DEF{PROMPT:AddCalendarEvent}%
%INCLUDE{"%WEB%.UserCommentsAddCalendarEventTemplate"}%
%TMPL:END%

OUTPUT:AddCalendarEvent

%TMPL:DEF{OUTPUT:AddCalendarEvent}%
%POS:AFTER%   
   * %URLPARAM{"calendar_entry"}% - %URLPARAM{"ttcm"}%  %URLPARAM{"appt_subject"}% %URLPARAM{"appt_more"}%
%TMPL:END%


Action Tracker (action)

Form to create action for ActionTrackerPlugin Action added to action table at end of topic

PROMPT:action

%TMPL:DEF{PROMPT:action}%
<!-- JSCALENDAR -->
%INCLUDE{"%SYSTEMWEB%/JSCalendarContribInline"}%

<table>
<tr bgcolor="orange"><td colspan="2"><b>Create Action Item</b></td></tr>
 <tr>
  <td align="left">Action for (%SYSTEMWEB%.WikiName):</td>
  <td><input name="who" type="text" size="20" value="%URLPARAM{"who"}%" /></td>
 </tr>
 <tr>
  <td align="left">Due date:</td>
  <td>
   <input name="due" id="idDue" type="text" size="20" value="%URLPARAM{"due"}%" />
   <input type="image" src="%PUBURL%/%SYSTEMWEB%/JSCalendarContrib/img.gif"  alt="Calendar" onclick="javascript: return showCalendar('idDue','%Y-%m-%d, %A')" />
  </td>
 </tr>
 <tr>
  <td colspan="2">
   *Description:* %BR%
   <textarea %DISABLED% rows="5" cols="80" 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%

OUTPUT:action

%TMPL:DEF{OUTPUT:action}%%POS:BOTTOM%%A%NOP%CTION{who="%URLPARAM{"who"}%" due="%URLPARAM{"due"}%"}% %URLPARAM{"comment" newline="<br />"}%
%TMPL:END%

spec: Project Specification form

%TMPL:DEF{PROMPT:spec}%

---+++ Project Summary
<input %DISABLED% type="text" maxlength="60" size="61" name="summary" />

---++++ Client
<input %DISABLED% type="text" maxlength="30" size="31" name="client" />

---++++ Scope of Work
<table width="80%" border=1 bordercolor="purple">
   <tr>      
      <td align=left><input type="radio" name="scope" value="Maint & Ops">Maint & Ops</td>
      <td align=left><input type="radio" name="scope" value="Growth &amp; Expansion">Growth &amp; Expansion</td>
      <td align=left><input type="radio" name="scope" value="Improvements">Improvements</td>
    </tr>
</table>

---++++ Project Area
<table width="80%" border=1 bordercolor="purple">
   <tr>
      <td align=left><input type="radio" name="area" value="Introductory">Introductory</td>
      <td align=left><input type="radio" name="area" value="Process, Policy">Process, Policy</td>
      <td align=left><input type="radio" name="area" value="Illustrative">Illustrative</td>
  </tr><tr>
      <td align=left><input type="radio" name="area" value="Organization">Organization</td>
      <td align=left><input type="radio" name="area" value="Assistive">Assistive</td>
      <td align=left><input type="radio" name="area" value="Investigative">Investigative</td>
  </tr><tr>
      <td align=left><input type="radio" name="area" value="Training">Training</td>
      <td align=left><input type="radio" name="area" value="Archival">Archival</td>
      <td align=left>&nbsp;</td>
   </tr>
</table>

---++++ Job Type
 <table width="80%" border=1 bordercolor="purple">
   <tr>
      <td align=left><input type="checkbox" name="type" value="Brainstorming">Brainstorming</td>
      <td align=left><input type="checkbox" name="type" value="Babble &amp; Scribble">Babble &amp; Scribble</td>
      <td align=left><input type="checkbox" name="type" value="Strategy &amp; Planning">Strategy &amp; Planning</td>
  </tr><tr>
      <td align=left><input type="checkbox" name="type" value="Design">Design</td>
      <td align=left><input type="checkbox" name="type" value="Framework">Framework</td>
      <td align=left><input type="checkbox" name="type" value="Implementation">Implementation</td>
  </tr><tr>
      <td align=left><input type="checkbox" name="type" value="Composition">Composition</td>
      <td align=left><input type="checkbox" name="type" value="Revise, Rewrite">Revise, Rewrite</td>
      <td align=left><input type="checkbox" name="type" value="Review, Edit">Review, Edit</td>
  </tr><tr>
      <td align=left><input type="checkbox" name="type" value="Diagram">Diagram</td>
      <td align=left><input type="checkbox" name="type" value="Improve/Enhance">Improve/Enhance</td>
      <td align=left><input type="checkbox" nametype" value="Minor requests">Minor requests</td>
    </tr>
</table>

---++++ Project Description
   <textarea %DISABLED% rows="6" cols="80" name="descrip" wrap="soft"></textarea>

   <input %DISABLED% type="submit" value="Submit" />     

%TMPL:DEF{OUTPUT:spec}%
%POS:BOTTOM% 
---++ %URLPARAM{"summary"}%  

%TABLE{tableborder="1"databg="#FFFFFF"}%
| *Date*: %DATE% | *Client*: %URLPARAM{"client"}% |
| *Scope*: %URLPARAM{"scope"}% | *Area*: %URLPARAM{"area"}% |  
| *Job Type*:<br />%URLPARAM{"type" multiple="on"  separator=", " }% ||


%EDITTABLE{format="|label|select, 1, New, Not Scoped, Not Started, Ramping Up, Under Investigation, In Progress, Ramping Down, Pending Approval, On Hold, New Owner, Completed| changerows="off""}%
| *Status* | New |

---+++ Description
%URLPARAM{"descrip"}% 

---+++ Comments
%COM%NOP%MENT{type="postlog"}%

-------------
%TMPL:END%

%TMPL:INCLUDE{"System.CommentPlugin"}%
Topic revision: r2 - 21 Mar 2014, VickiBrown
This site is powered by Foswiki Copyright © by the contributing authors. All material on this wiki is the property of the contributing authors.
Foswiki version v2.1.6, Release Foswiki-2.1.6, Plugin API version 2.4
Ideas, requests, problems regarding CFCL Wiki? Send us email