Sandbox:CommentPluginTemplateExample: Difference between revisions
m 1 revision imported |
m 1 revision imported |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<code> !! Template Example </code> | <code> !! Template Example </code> | ||
Example template topic for [[%SANDBOXWEB%.[[CommentPluginExamples]]#[[TemplateTopic]]|[[CommentPluginExamples]]:templatetopic]]. | Example template topic for [[%SANDBOXWEB%.[[Sandbox:CommentPluginExamples]]#[[Sandbox:TemplateTopic]]|[[Sandbox:CommentPluginExamples]]:templatetopic]]. | ||
<verbatim> | <verbatim> | ||
| Line 9: | Line 9: | ||
<verbatim> | <verbatim> | ||
%TMPL:DEF{FORM:example}% | %TMPL:DEF{FORM:example}% | ||
#[[TemplateTopicPrompt]] | #[[Sandbox:TemplateTopicPrompt]] | ||
<form method<code>"post" action</code>"%SCRIPTURL{rest}%/[[CommentPlugin]]/comment" enctype<code>"application/x-www-form-urlencoded" name</code>"examplecomment" id="examplecomment"> | <form method<code>"post" action</code>"%SCRIPTURL{rest}%/[[Sandbox:CommentPlugin]]/comment" enctype<code>"application/x-www-form-urlencoded" name</code>"examplecomment" id="examplecomment"> | ||
<input type<code>"hidden" name</code>"endPoint" value="%BASEWEB%.%BASETOPIC%#[[TemplateTopic]]" /> | <input type<code>"hidden" name</code>"endPoint" value="%BASEWEB%.%BASETOPIC%#[[Sandbox:TemplateTopic]]" /> | ||
<input type<code>"hidden" name</code>"topic" value="%BASEWEB%.%BASETOPIC%" /> | <input type<code>"hidden" name</code>"topic" value="%BASEWEB%.%BASETOPIC%" /> | ||
%COMMENTPROMPT% | %COMMENTPROMPT% | ||
| Line 24: | Line 24: | ||
<verbatim> | <verbatim> | ||
%TMPL:DEF{OUTPUT:examplethreadmode}%%POS:BEFORE% | %TMPL:DEF{OUTPUT:examplethreadmode}%%POS:BEFORE% | ||
%GMTIME{"#[[CommentDate]]$epoch"}% | %GMTIME{"#[[Sandbox:CommentDate]]$epoch"}% | ||
%WIKIUSERNAME% - {{CURRENTDATE}}: | %WIKIUSERNAME% - {{CURRENTDATE}}: | ||
| Line 33: | Line 33: | ||
Include generic comment templates: | Include generic comment templates: | ||
<verbatim> | <verbatim> | ||
%TMPL:INCLUDE{"%SYSTEMWEB%.[[CommentPlugin]]"}% | %TMPL:INCLUDE{"%SYSTEMWEB%.[[Sandbox:CommentPlugin]]"}% | ||
</verbatim> | </verbatim> | ||
Latest revision as of 12:29, 28 November 2025
!! 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}%
<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>