Sandbox:CommentPluginTemplateExample

From Tenetti
Revision as of 12:29, 28 November 2025 by WikiAdmin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

 !! Template Example

Example template topic for [[%SANDBOXWEB%.Sandbox:CommentPluginExamples#Sandbox:TemplateTopic|Sandbox:CommentPluginExamples:templatetopic]].

<verbatim> %TMPL:DEF{PROMPT:example}%%TMPL:P{promptbox}%%TMPL:END% </verbatim>

<verbatim> %TMPL:DEF{FORM:example}%

  1. Sandbox:TemplateTopicPrompt

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

<verbatim> %TMPL:DEF{OUTPUT:example}%%POS:BEFORE%%TMPL:P{OUTPUT:examplethreadmode}%%TMPL:END% </verbatim>

<verbatim> %TMPL:DEF{OUTPUT:examplethreadmode}%%POS:BEFORE% %GMTIME{"#Sandbox:CommentDate$epoch"}% %WIKIUSERNAME% - Template:CURRENTDATE:

--- %TMPL:END% </verbatim>

Include generic comment templates: <verbatim> %TMPL:INCLUDE{"%SYSTEMWEB%.Sandbox:CommentPlugin"}% </verbatim>