%META:TOPICINFO{author="PeterMasiar" date="1065118260" format="1.0" version="1.33"}%
%META:TOPICPARENT{name="CommentPlugin"}%
%TOC%

----
---+ Parameters
see CommentPlugin#Templates for info about special fields like {COMMENT}{URL}{LINK}, {USERNAME}{DATE}, {DISABLED} and {GROWHEAD}

In short:
	* copy-paste :-)
	* in INPUT section, use HTML tags, but use {} instead of &lt;> 
	* in OUTPUT section, use wiki markup.

---+ before
traditional comments, adding on top
---++ !!before:INPUT
{textarea {DISABLED} rows=3 cols=50 name=comment wrap=soft
onfocus="if (this.value=='{LOCKMSG}') this.value=''" onblur="if (this.value=='') this.value='{LOCKMSG}'" }{LOCKMSG}{/textarea}{br /}
Comments on top &nbsp;																														 
{input {DISABLED} type=submit value='Add' /}{br /}
---++ !!before:OUTPUT
 ----\n\n{COMMENT}\n\n--{USERNAME} - (tmpl) - {DATE}\n {GROWHEAD}
---++ !!before:END

---+ after
traditional comments, adding on end
---++ !!after:INPUT
{textarea {DISABLED} rows=3 cols=50 name=comment wrap=soft}{LOCKMSG}{/textarea}{br /}
Comments [{ID}] at end &nbsp;																														 
{input {DISABLED} type=submit value='Add' /}{br /}
---++ !!after:OUTPUT
----
{COMMENT}

-- {USERNAME} - (tmpl=after) - {DATE} {GROWTAIL}
---++ !!after:END

---+ newontop
same as [[#before]]
---++ !!newontop:INPUT
{textarea {DISABLED} rows=3 cols=50 name=comment wrap=soft 
onfocus="if (this.value=='{LOCKMSG}') this.value=''" onblur="if (this.value=='') this.value='{LOCKMSG}'" 
}{LOCKMSG}{/textarea}{br /}
Comments [{ID}] on top &nbsp;																														 {input {DISABLED} type=submit value='Add' /}{br /}
---++ !!newontop:OUTPUT
----
{COMMENT}

-- {USERNAME} - (tmpl=newontop) - {DATE} {GROWHEAD}
---++ !!newontop:END

---+ bookmark
bookmarks adding on end
---++ !!bookmark:INPUT
{hr width="60%"/}
URL: {input {DISABLED} type=text size=40 name=comment_url value='http://'} {br /}
Link: {input {DISABLED} type=text size=40 name=comment_link} {br /}
Text: {input {DISABLED} type=text size = 40 name=comment value="{LOCKMSG}"}
{input {DISABLED} type=submit value='Add' /} &nbsp; bookmark																														  
{hr width="90%"/}
---++ !!bookmark:OUTPUT [[{URL}][{LINK}]]  &nbsp; {COMMENT} --
---++ !!bookmark:END

---+ toctalk
talk using TOC adding on end
---++ !!toctalk:INPUT
{hr width="60%"/}
Summary: {input {DISABLED} type=text size=40 name=comment_link} {br /}
{textarea {DISABLED} rows=3 cols=50 name=comment wrap=soft}{LOCKMSG}{/textarea}{br /}
{input {DISABLED} type=submit value='Add' /}{br /}
{hr width="90%"/}
---++ !!toctalk:OUTPUT
---+++ {DATE} {USERNAME}: {LINK}
{COMMENT}
---++ !!toctalk:END

---+ empty
empty output
---++ !!empty:INPUT
URL: {input {DISABLED} type=text size=40 name=comment_url value='http://'} {br /}
Link: {input {DISABLED} type=text size=40 name=comment_link} {br /}
Text: {input {DISABLED} type=text size = 40 name=comment value="{LOCKMSG}"}{br /}
empty &nbsp;																														 
{input {DISABLED} type=submit value='Add' /}{br /}
---++ !!empty:OUTPUT
---++ !!empty:END

---+ empty
empty output
---++ !!empty:INPUT
URL: {input {DISABLED} type=text size=40 name=comment_url value='http://'} {br /}
Link: {input {DISABLED} type=text size=40 name=comment_link} {br /}
Text: {input {DISABLED} type=text size = 40 name=comment value="{LOCKMSG}"}{br /}
empty &nbsp;																														 
{input {DISABLED} type=submit value='Add' /}{br /}
---++ !!empty:OUTPUT
---++ !!empty:END

---+ wikilink
wikipage and comment
---++ !!wikilink:INPUT
{input {DISABLED} type=text size = 15 name=comment value="{LOCKMSG}"} {input {DISABLED} type=submit value='Add' /}
---++ !!wikilink:OUTPUT
{COMMENT} - 
---++ !!wikilink:END

---+ table
Tablerows adding on end
---++ !!table:INPUT
{hr width="60%"/}
Date: {input {DISABLED} type=text size=40 name=comment_link} {br /}
City: {input {DISABLED} type=text size = 40 name=comment value=""}
{input {DISABLED} type=submit value='Add' /} &nbsp; entry																														  
{hr width="90%"/}
---++ !!table:OUTPUT| {LINK} | {USERNAME} | {COMMENT} |
---++ !!table:END


