Daya Bay Reactor Neutrino Experiment
Sandbox > CommentPluginTemplateExample (r1)
Daya Bay webs: Public | 中文 | Internal | Help   Log In or Register

Users | Groups | Changes | Index | Search | Go

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{save}%/%BASEWEB%/%BASETOPIC%" enctype="application/x-www-form-urlencoded" name="examplecomment" id="examplecomment">
<input type="hidden" name="redirectto" 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"}%

--- 
%TMPL:END%

Include generic comment templates:

%TMPL:INCLUDE{"%TWIKIWEB%.CommentPlugin"}%
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...

This site is powered by the TWiki collaboration platform Powered by Perl Powered by the TWiki collaboration platform Copyright © by the contributing authors, 2007-2026.
Ideas, requests, problems regarding Daya Bay? Send feedback