Edit
Attach
Printable
topic end
User Templates for CommentPlugin - See %TWIKIWEB%.CommentPlugin#Customisation for help %TOC% ---+ Template definitions ---++ Templates used in rest of file Generic prompt box used by other templates <verbatim> %TMPL:DEF{promptbox}% <table><tr valign="middle"><td><textarea %DISABLED% rows="%rows|3%" cols="%cols|50%" name="comment" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'">%MESSAGE%</textarea></td><td><font size="-1"><input %DISABLED% type="submit" value="%button|Add comment%" /></font> <br><font size="-2"><i>When asked for a TWiki account, use your own or the default Main.TWikiGuest account.</i></font></td></tr></table> %TMPL:END% </verbatim> Standard comment, preserving formatting, signed and dated <verbatim> %TMPL:DEF{outputstandard}% %URLPARAM{"comment" encode="entity"}% -- %WIKIUSERNAME% - %DATE% %TMPL:END% </verbatim> Short comment, signed and dated <verbatim> %TMPL:DEF{outputoneliner}% * %URLPARAM{"comment" encode="entity"}% -- %WIKIUSERNAME% - %DATE% %TIME%%TMPL:END% </verbatim> --------------------------------------------------------------------------- ---++ User templates ---+++ top Comments, signed and dated, added at top of file <verbatim> %TMPL:DEF{PROMPT:top}%%TMPL:P{promptbox}%%TMPL:END% </verbatim> <verbatim> %TMPL:DEF{OUTPUT:top}%%TMPL:P{outputoneliner}%%POS:TOP% %TMPL:END% </verbatim> --------------------------------------------------------------------------- ---+++ bottom Comments, signed and dated, added at end of file <verbatim> %TMPL:DEF{PROMPT:bottom}%%TMPL:P{promptbox}%%TMPL:END% </verbatim> <verbatim> %TMPL:DEF{OUTPUT:bottom}%%POS:BOTTOM%%TMPL:P{outputoneliner}%%TMPL:END% </verbatim> --------------------------------------------------------------------------- ---+++ above Comments, signed and dated, added immediately before anchor <verbatim> %TMPL:DEF{PROMPT:above}%%TMPL:P{promptbox}%%TMPL:END% </verbatim> <verbatim> %TMPL:DEF{OUTPUT:above}%%POS:BEFORE%%TMPL:P{outputstandard}% %TMPL:END% </verbatim> --------------------------------------------------------------------------- ---+++ below Comments, signed and dated, added immediately below anchor <verbatim> %TMPL:DEF{PROMPT:below}%%TMPL:P{promptbox}%%TMPL:END% </verbatim> <verbatim> %TMPL:DEF{OUTPUT:below}%%POS:AFTER%%TMPL:P{outputstandard}% %TMPL:END% </verbatim> --------------------------------------------------------------------------- ---+++ tableprepend Comments, signed and dated, added at top of table below the anchor/location/COMMENT <verbatim> %TMPL:DEF{PROMPT:tableprepend}%%TMPL:P{promptbox}%%TMPL:END% </verbatim> <verbatim> %TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| %URLPARAM{"comment" newline="<br />" encode="entity"}% </td><td> %WIKIUSERNAME% </td><td> %DATE% %TIME% | %TMPL:END% </verbatim> --------------------------------------------------------------------------- ---+++ tableappend Comments, signed and dated, added at end of table above the anchor/location/COMMENT <verbatim> %TMPL:DEF{PROMPT:tableappend}%%TMPL:P{promptbox}%%TMPL:END% </verbatim> <verbatim> %TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| %URLPARAM{"comment" newline="<br />" encode="entity"}% | %WIKIUSERNAME% | %DATE% %TIME% | %TMPL:END% </verbatim> --------------------------------------------------------------------------- ---+++ after: Add before the comment box <verbatim> %TMPL:DEF{PROMPT:after}%%TMPL:P{promptbox}%%TMPL:END% </verbatim> <verbatim> %TMPL:DEF{OUTPUT:after}%%TMPL:P{outputoneliner}% %POS:BEFORE%%TMPL:END% </verbatim> ---------------------------------------------------------------------------- ---+++ action Action added to action table directly above comment box <verbatim> %TMPL:DEF{PROMPT:action}% <table> <tr> <td align="right">Action for (TWiki.WikiName):</td> <td><input name="who" type="text" size="50" value="%URLPARAM{"who" encode="entity"}%" /></td> </tr> <tr> <td align="right">Due date:</td> <td> <input name="due" id="idDue" type="text" size="30" value="%URLPARAM{"due" encode="entity"}%" /> </td> </tr> <tr> <td colspan="2"> <textarea %DISABLED% rows="5" cols="120" name="comment" wrap="soft"></textarea> </td> </tr> <tr> <td colspan=2 align=middle><input %DISABLED% type="submit" value="Add action" /></td> </tr> </table> %TMPL:END% </verbatim> <verbatim> %TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%ACTION{who="%URLPARAM{"who" encode="entity"}%" due="%URLPARAM{"due" encode="entity"}%"}% %URLPARAM{"comment" newline="<br />" encode="entity"}%<br />- Created by %WIKIUSERNAME%, %DATE% %TIME% %TMPL:END% </verbatim> ---------------------------------------------------------------------------- ---+++ poll TWiki table that collects results from a poll on plugin usage <verbatim> %TMPL:DEF{PROMPT:poll}% <table valign="middle"> <tr> <td align=right>Number of sites?</td> <td align=left><input %DISABLED% type="text" name="sites" size="3" value="1"></td> <td align=right>Plugin hacked?</td> <td align=left> <select %DISABLED% name="pluginhacked"> <option>no</option> <option>yes</option> </select> </td> <td align=right>TWiki hacked?</td> <td align=left> <select %DISABLED% name="twikihacked"> <option>no</option> <option>yes</option> </select> </td> <td align=right>Remarks</td> <td align=left><input %DISABLED% type="text" name="remarks" size="30" value=""></td> <td> <input %DISABLED% type="submit" value="Yes, I use it" /> </td> </tr> </table> %TMPL:END% </verbatim> <verbatim> %TMPL:DEF{OUTPUT:poll}%%POS:BEFORE%| %WIKIUSERNAME% | %URLPARAM{"sites" encode="entity"}% | %URLPARAM{"pluginhacked" encode="entity"}% | %URLPARAM{"twikihacked" encode="entity"}% | %URLPARAM{"remarks" encode="entity"}% | %TMPL:END% </verbatim> --------------------------------------------------------------------------- ---+++ table Tablerows adding on end - TWiki:Main/FranzJosefSilli <verbatim> %TMPL:DEF{PROMPT:table}% <hr width="60%"/> Date: <input %DISABLED% type="text" size="40" name="comment_date" /> <br /> City: <input %DISABLED% type="text" size="40" name="comment_city" value="" /> <input %DISABLED% type="submit" value="%button|Add%" /> entry <hr width="90%"/> %TMPL:END% </verbatim> <verbatim> %TMPL:DEF{OUTPUT:table}% %POS:BEFORE%| %URLPARAM{"comment_date" encode="entity"}% | %WIKIUSERNAME% | %URLPARAM{"comment_city" encode="entity"}% | %TMPL:END% </verbatim> --------------------------------------------------------------------------- ---+++ toctalk Talk using TOC adding on end - TWiki:Main/FranzJosefSilli <verbatim> %TMPL:DEF{PROMPT:toctalk}% <hr width="60%"/> Summary: <input %DISABLED% type="text" size="40" name="comment_summary" /> <br /> <textarea %DISABLED% rows="%rows|3%" cols="%cols|50%" name="comment_text" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'">%MESSAGE%</textarea> <br /> <input %DISABLED% type="submit" value="%button|Add%" /> <hr width="90%"/> %TMPL:END% </verbatim> <verbatim> %TMPL:DEF{OUTPUT:toctalk}% %POS:BEFORE%---+++ %DATE% %TIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary"}% %POS:BEFORE%%URLPARAM{"comment_text" }% %POS:BEFORE% %TMPL:END% </verbatim> --------------------------------------------------------------------------- ---+++ bookmark Add bookmark - TWiki:Main/FranzJosefSilli <verbatim> %TMPL:DEF{PROMPT:bookmark}% <hr width="60%"/> <table border="0"> <tr> <td><font size="-1">URL:</font></td> <td><font size="-1"><input %DISABLED% type="text" size="40" name="comment_url" value="http://" /></font> </td> </tr> <tr> <td><font size="-1">Link text:</font></td> <td><font size="-1"><input %DISABLED% type="text" size="40" name="comment_link" /></font> </td> </tr> <tr> <td><font size="-1">Description:</font></td> <td><font size="-1"><input %DISABLED% type="text" size="40" name="comment_text" value="%MESSAGE%" /> <input %DISABLED% type="submit" value="%button|Add%" /> bookmark </font></td> </tr> </table><hr width="90%"/> %TMPL:END% </verbatim> <verbatim> %TMPL:DEF{OUTPUT:bookmark}% %POS:BEFORE% * [[%URLPARAM{"comment_url"}%][%URLPARAM{"comment_link"}%]] - %URLPARAM{"comment_text" }% %TMPL:END% </verbatim>
to top
End of topic
Skip to action links
|
Back to top
Edit
|
Attach image or document
|
Printable version
|
Raw text
|
Refresh
|
More topic actions
Revisions: | r1.5 |
>
|
r1.4
|
>
|
r1.3
|
Total page history
|
Backlinks
You are here:
TWiki
>
UserTemplates
r1.5 - 04 Dec 2008 - 12:14 -
ClausBrod
to top
TWiki
Welcome
Register
?
TWiki Web
TWiki Web Home
Changes
Topics
Index
Search
TWiki Webs
Atari
Blog
Claus
CoCreateModeling
Klassentreffen
Main
Sandbox
Sommelier
TWiki
Xplm
My links
edit
TWiki
Welcome
TWiki Web TWiki Web Home Changes Topics Index Search
TWiki Webs Atari Blog Main
OneSpaceModeling
?
Sandbox TWiki TWiki Webs Atari Blog Main
OneSpaceModeling
?
Sandbox TWiki
Jump:
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback