data/TWiki/CommentPluginExamples.txt,v
changeset 0 414e01d06fd5
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/data/TWiki/CommentPluginExamples.txt,v	Sat Jan 26 15:50:53 2008 +0100
     1.3 @@ -0,0 +1,289 @@
     1.4 +head	1.2;
     1.5 +access;
     1.6 +symbols;
     1.7 +locks; strict;
     1.8 +comment	@# @;
     1.9 +
    1.10 +
    1.11 +1.2
    1.12 +date	2008.01.22.03.21.34;	author TWikiContributor;	state Exp;
    1.13 +branches;
    1.14 +next	1.1;
    1.15 +
    1.16 +1.1
    1.17 +date	2007.01.16.04.11.59;	author TWikiContributor;	state Exp;
    1.18 +branches;
    1.19 +next	;
    1.20 +
    1.21 +
    1.22 +desc
    1.23 +@buildrelease
    1.24 +@
    1.25 +
    1.26 +
    1.27 +1.2
    1.28 +log
    1.29 +@buildrelease
    1.30 +@
    1.31 +text
    1.32 +@%META:TOPICINFO{author="TWikiContributor" date="1176025210" format="1.1" reprev="1.1" version="2"}%
    1.33 +%META:TOPICPARENT{name="CommentPluginTemplate"}%
    1.34 +   * Top comment output 2 -- Main.TWikiContributor - 26 Nov 2006
    1.35 +   * Top comment output 1 -- Main.TWikiContributor - 26 Nov 2006
    1.36 +
    1.37 +---+!! CommentPlugin examples
    1.38 +
    1.39 +%TOC%
    1.40 +
    1.41 +---++ !CommentPlugin templates
    1.42 +
    1.43 +---+++ Default
    1.44 +
    1.45 +
    1.46 +
    1.47 +Default comment output 1
    1.48 +
    1.49 +-- Main.TWikiContributor - 26 Nov 2006
    1.50 +
    1.51 +
    1.52 +
    1.53 +Default comment output 2
    1.54 +
    1.55 +-- Main.TWikiContributor - 26 Nov 2006
    1.56 +
    1.57 +%COMMENT{}%
    1.58 +
    1.59 +
    1.60 +
    1.61 +
    1.62 +---+++ =top=
    1.63 +
    1.64 +%COMMENT{type="top"}%
    1.65 +
    1.66 +
    1.67 +
    1.68 +
    1.69 +---+++ =bottom=
    1.70 +
    1.71 +%COMMENT{type="bottom"}%
    1.72 +
    1.73 +
    1.74 +
    1.75 +
    1.76 +---+++ =above=
    1.77 +
    1.78 +
    1.79 +
    1.80 +Above comment output 1
    1.81 +
    1.82 +-- Main.TWikiContributor - 26 Nov 2006
    1.83 +
    1.84 +
    1.85 +Above comment output 2
    1.86 +
    1.87 +-- Main.TWikiContributor - 26 Nov 2006
    1.88 +%COMMENT{type="above"}%
    1.89 +
    1.90 +
    1.91 +
    1.92 +
    1.93 +---+++ =below=
    1.94 +
    1.95 +%COMMENT{type="below"}%
    1.96 +   * Below comment output 2 -- Main.TWikiContributor - 26 Nov 2006
    1.97 +   * Below comment output 1 -- Main.TWikiContributor - 26 Nov 2006
    1.98 +
    1.99 +
   1.100 +
   1.101 +
   1.102 +---+++ =bulletabove=
   1.103 +Example with =inputsize="20"=:
   1.104 +
   1.105 +   * Bullet above comment output 1
   1.106 +   * Bullet above comment output 2
   1.107 +%COMMENT{type="bulletabove" inputsize="20"}%
   1.108 +
   1.109 +
   1.110 +
   1.111 +
   1.112 +---+++ =threadmode=
   1.113 +
   1.114 +
   1.115 +
   1.116 +Threadmode comment output 1
   1.117 +
   1.118 +-- Main.TWikiContributor - 26 Nov 2006
   1.119 +
   1.120 +
   1.121 +Threadmode comment output 2
   1.122 +
   1.123 +-- Main.TWikiContributor - 26 Nov 2006
   1.124 +%COMMENT{type="threadmode"}%
   1.125 +
   1.126 +
   1.127 +
   1.128 +
   1.129 +---+++ =belowthreadmode=
   1.130 +
   1.131 +%COMMENT{type="belowthreadmode"}%
   1.132 +
   1.133 +---++++ Main.TWikiContributor - 26 Nov 2006 - 12:09
   1.134 +
   1.135 +Belowthreadmode comment output 2
   1.136 +
   1.137 +
   1.138 +---++++ Main.TWikiContributor - 26 Nov 2006 - 12:09
   1.139 +
   1.140 +Belowthreadmode comment output 1
   1.141 +
   1.142 +
   1.143 +
   1.144 +
   1.145 +---+++ =tableprepend=
   1.146 +
   1.147 +%COMMENT{type="tableprepend"}%
   1.148 +| Tablepreprend comment output 2 | Main.TWikiContributor | 26 Nov 2006 - 11:03 |
   1.149 +| Tablepreprend comment output 1 | Main.TWikiContributor | 26 Nov 2006 - 11:02 |
   1.150 +
   1.151 +
   1.152 +
   1.153 +
   1.154 +---+++ =tableappend=
   1.155 +
   1.156 +| Tableappend comment output 1 | Main.TWikiContributor | 26 Nov 2006 - 10:38 |
   1.157 +| Tableappend comment output 2 | Main.TWikiContributor | 26 Nov 2006 - 10:39 |
   1.158 +%COMMENT{type="tableappend"}%
   1.159 +
   1.160 +
   1.161 +
   1.162 +
   1.163 +---+++ =after=
   1.164 +
   1.165 +   * After comment output 1 -- Main.TWikiContributor - 26 Nov 2006
   1.166 +   * After comment output 2 -- Main.TWikiContributor - 26 Nov 2006
   1.167 +%COMMENT{type="after"}%
   1.168 +
   1.169 +
   1.170 +
   1.171 +
   1.172 +---+++ =action=
   1.173 +
   1.174 +(requires TWiki:Plugins/ActionTrackerPlugin)
   1.175 +
   1.176 +%ACTION{ due="1-Dec-2007" creator="Main.TWikiContributor" uid="000001" state="open" created="26-Nov-2006" who="Main.TWikiContributor" }% <<EOF
   1.177 +Action comment output 1
   1.178 +- Created by Main.TWikiContributor, 26 Nov 2006 - 10:58
   1.179 +EOF
   1.180 +%ACTION{ due="1-Jan-2008" creator="Main.TWikiContributor" uid="000003" state="open" created="26-Nov-2006" who="Main.TWikiContributor" }% <<EOF
   1.181 +Action comment output 2
   1.182 +- Created by Main.TWikiContributor, 26 Nov 2006 - 10:58
   1.183 +EOF
   1.184 +%COMMENT{type="action"}%
   1.185 +
   1.186 +
   1.187 +
   1.188 +
   1.189 +---+++ =table=
   1.190 +
   1.191 +| 1 Dec 2007 | Main.TWikiContributor | Athens |
   1.192 +| 1 Jan 2008 | Main.TWikiContributor | Beijing |
   1.193 +%COMMENT{type="table"}%
   1.194 +
   1.195 +
   1.196 +
   1.197 +
   1.198 +---+++ =toctalk=
   1.199 +
   1.200 +
   1.201 +---++++ 26 Nov 2006 - 00:45 Main.TWikiContributor: Toctalk output summary 1
   1.202 +Toctalk output message 1
   1.203 +
   1.204 +
   1.205 +---++++ 26 Nov 2006 - 11:09 Main.TWikiContributor: Toctalk output summary 2
   1.206 +Toctalk output message 2
   1.207 +
   1.208 +%COMMENT{type="toctalk"}%
   1.209 +
   1.210 +
   1.211 +
   1.212 +
   1.213 +---+++ =bookmark=
   1.214 +
   1.215 +   * [[http://twiki.org][Bookmark output link label]] %IF{" '' = '' " then="" else="- "}%
   1.216 +   * [[http://twiki.org][TWiki]] %IF{" 'Bookmark output comment' = '' " then="" else="- "}%Bookmark output comment
   1.217 +%COMMENT{type="bookmark"}%
   1.218 +
   1.219 +
   1.220 +
   1.221 +
   1.222 +---+++ =return=
   1.223 +Post to a different topic and return to here. In this example comments are written to [[%COMMENT_TOPIC%]]. %RED% Available with TWiki 4.1. %ENDCOLOR%
   1.224 +
   1.225 +<!--
   1.226 +   * Set COMMENT_TOPIC = Sandbox.CommentPluginExampleComments
   1.227 +-->
   1.228 +
   1.229 +_Comments:_
   1.230 +<blockquote>
   1.231 +%INCLUDE{%COMMENT_TOPIC%}%
   1.232 +</blockquote>
   1.233 +
   1.234 +---
   1.235 +%COMMENT{type="return" target="%COMMENT_TOPIC%"}% %BR%
   1.236 +
   1.237 +
   1.238 +
   1.239 +
   1.240 +
   1.241 +---+++ =noform=
   1.242 +Example of a custom form to save a comment to a new topic. When the topic is created the parent will be our Sandbox [[Sandbox.CommentPluginExampleComments][example topic]].
   1.243 +
   1.244 +<form method="post" action="%SCRIPTURL{save}%/Sandbox/" enctype="application/x-www-form-urlencoded" name="noformcomment0" id="noformcomment0">
   1.245 +<input type="hidden" name="topicparent" value="CommentPluginExampleComments" />
   1.246 +<input type="hidden" name="comment_action" value="save" />
   1.247 +<input type="hidden" name="nonwikiword" value="off" />
   1.248 +<input type="hidden" name="onlywikiname" value="on" />
   1.249 +<div class="twikiFormSteps">
   1.250 +<div class="twikiFormStep">
   1.251 +*New topic name:* %BR%
   1.252 +<input class="twikiInputField" %DISABLED% type="text" size="40" name="topic" id="topic" value="" /> <span class="twikiGrayText">Enter a !WikiWord topic name</span>
   1.253 +</div>
   1.254 +<div class="twikiFormStep twikiLast">
   1.255 +*Topic text:* %BR%
   1.256 +%COMMENT{noform="on" button="Save"}%
   1.257 +</div>
   1.258 +</div>
   1.259 +</form>
   1.260 +
   1.261 +
   1.262 +
   1.263 +
   1.264 +#TemplateTopic
   1.265 +---+++ =templatetopic=
   1.266 +Example of a form definition in a topic. The comment template is located in Sandbox.CommentPluginTemplateExample.
   1.267 +
   1.268 +
   1.269 +#CommentDate1176024819
   1.270 +Main.TWikiContributor - 08 Apr 2007:
   1.271 +
   1.272 +templatetopic example comment output 1
   1.273 +
   1.274 +---
   1.275 +%COMMENT{noform="on" type="example" templatetopic="Sandbox.CommentPluginTemplateExample" target="%TOPIC%" button="Add comment" }%
   1.276 +
   1.277 +---
   1.278 +   * Bottom comment output 1 -- Main.TWikiContributor - 26 Nov 2006
   1.279 +   * Bottom comment output 2 -- Main.TWikiContributor - 26 Nov 2006
   1.280 +@
   1.281 +
   1.282 +
   1.283 +1.1
   1.284 +log
   1.285 +@buildrelease
   1.286 +@
   1.287 +text
   1.288 +@d1 1
   1.289 +a1 1
   1.290 +%META:TOPICINFO{author="TWikiContributor" date="1165787937" format="1.1" reprev="1.4" version="1"}%
   1.291 +d232 14
   1.292 +@