Custom local templates for
CommentPlugin. See
CommentPluginTemplate for default templates.
feature_article
Form to add feature articles to list. See
%WIKITOOLNAME% Featured Articles.
%TMPL:DEF{PROMPT:feature_article}%<input class="twikiInputField" name="article" type="text" size="50" value="%URLPARAM{article}%" /> <input type="submit" value="Add article to list" />%TMPL:END%
%TMPL:DEF{OUTPUT:feature_article}%%POS:BEFORE%| %URLPARAM{"article" }% | %SERVERTIME{"$day $month $year"}% |
%TMPL:END%
feature_article_button
Button to add article to list of feature articles. See
Top-Rated Articles.
%TMPL:DEF{PROMPT:feature_article_button}%<form action='%SCRIPTURL{save}%/Home/FeaturedArticles' meathod='post'><input type='hidden' name='comment_anchor' value='#AddFeatureArticle' /><input type='hidden' name='redirectto' value='%BASEWEB%.%BASETOPIC%' /><input name='article' type='hidden' value='%THE_TOPIC%'/> <input type='submit' value='Feature article' /></form>%TMPL:END%
%TMPL:DEF{OUTPUT:feature_article_button}%%POS:BEFORE%| %URLPARAM{"article" }% | %SERVERTIME{"$day $month $year"}% |
%TMPL:END%
styled_comment
Stylized comment box. Depends on styles defined in
Discussion topic CSS.
%TMPL:DEF{PROMPT:styled_comment}%
<div style="background: #f9f9f9;border-bottom: 1px solid #efefef;margin: 0 0 5px 0;clear: left;color: #333;padding: 5px;">
<table border="0" cellpadding="0" cellspacing="0"><tr valign="middle"><td>%ICON{bubble}% <span style="margin: 0 0 10px 0;font-size: .9em;color: #666;padding: 3px 0;font-weight: normal;"> *%SPACEOUT{%WIKINAME%}% said...* </span> %BR%<textarea %DISABLED% rows="%rows|7%" cols="%cols|80%" name="comment" class="twikiInputField" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'">%MESSAGE%</textarea></td></tr><tr><td><input %DISABLED% type="submit" value="%button|Post this comment%" class="twikiButton" /></td></tr></table></div>
%TMPL:END%
%TMPL:DEF{OUTPUT:styled_comment}%%POS:BEFORE% <div class="commentBlock"><span class="commentHead"><!-- COMMENT_TAG --> %ICON{bubble}% %GMTIME{"$day $month $hour:$min"}% | *%SPACEOUT{%WIKINAME%}% said...* </span> <p />
%URLPARAM{"comment" }%
</div>
%TMPL:END%
propose_article
Form to add feature articles to list. See
%WIKITOOLNAME% Featured Articles.
%TMPL:DEF{PROMPT:propose_article}%
| *Tentative Title:* | <input class="twikiInputField" name="article" type="text" size="50" value="%URLPARAM{article}%" /> |
| *Summary:* | <textarea name="summary" rows="5" cols="48" /></textarea> |
| *Category:* | <select name="category" ><option value=''>Select...</option>%DBRECURSE{"Home.FunctionCategory" include=".*Category" format="<option value='$topic'>$indent(-)$expand(TopicTitle)</option>" separator=" "}% %DBRECURSE{"Home.ThemeCategory" include=".*Category" format="<option value='$topic'>$indent(-)$expand(TopicTitle)</option>" separator=" "}%</select> |
||<input type="submit" value="Submit article proposal" />||
%TMPL:END%
%TMPL:DEF{OUTPUT:propose_article}%%POS:BEFORE%| <b>%URLPARAM{"article" }%%BR%<em> %URLPARAM{"category" }%</b> </em> | %URLPARAM{"summary" newline="<br />"}% | %WIKIUSERNAME%%BR%%SERVERTIME{"$day $month $year"}% |
%TMPL:END%
%TMPL:INCLUDE{"TCAO.TCAOComments"}%