Skip to topic | Skip to bottom
Home
TWiki
TWiki.CommentTemplatesr1.1 - 20 Nov 2004 - 17:51 - TWikiGuesttopic end

Start of topic | Skip to actions


Parameters

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

In short:

  • copy-paste smile
  • in INPUT section, use HTML tags, but use {} instead of <>
  • 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   {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   {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   {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' /}   bookmark {hr width="90%"/}

bookmark:OUTPUT {LINK}?   {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   {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   {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' /}   entry {hr width="90%"/}

table:OUTPUT| {LINK} | {USERNAME} | {COMMENT} |

table:END


to top

You are here: TWiki > CommentPlugin > CommentTemplates

to top

Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Open-org? Send feedback