Template Example

Example template topic for CommentPluginExamples:templatetopic.

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

%TMPL:DEF{FORM:example}%
#TemplateTopicPrompt
<form method="post" action="%SCRIPTURL{rest}%/CommentPlugin/comment" enctype="application/x-www-form-urlencoded" name="examplecomment" id="examplecomment">
<input type="hidden" name="endPoint" value="%BASEWEB%.%BASETOPIC%#TemplateTopic" />
<input type="hidden" name="topic" value="%BASEWEB%.%BASETOPIC%" />
%COMMENTPROMPT%
</form>
%TMPL:END%

%TMPL:DEF{OUTPUT:example}%%POS:BEFORE%%TMPL:P{OUTPUT:examplethreadmode}%%TMPL:END%

%TMPL:DEF{OUTPUT:examplethreadmode}%%POS:BEFORE%
%GMTIME{"#CommentDate$epoch"}%
%WIKIUSERNAME% - %DATE%:

%URLPARAM{"comment" encode="$encodeguest"}%

--- 
%TMPL:END%

Include generic comment templates:
<div class='tmplInclude'>
<h2><span class='foswikiGrayText'>INCLUDE - </span>[[System.CommentPlugin]]</h2><verbatim class='tml'>%TMPL:INCLUDE{"%SYSTEMWEB%.CommentPlugin"}%</verbatim>
</div>
Topic revision: r1 - 01 Oct 2026, UnknownUser - This page was cached on 04 Nov 2026 - 14:59.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback