| ![]() |
| ![]() |
| r1.6 > r1.5 > r1.4 |
| ![]() |
| MyCo.MyTopic |
Webs: Myco | Main | TWiki | Sandbox |
| Changes | Index | Search | Go | ||
| MyCo.MyTopic |
Webs: Myco | Main | TWiki | Sandbox |
| Changes | Index | Search | Go | ||
| Edit | Attach | Diffs | r1.2 > r1.1 | More | |
| Revision r1.2 - 13 Feb 2004 - 09:09 GMT - TWikiPresenter |
Copyright © 1999-2013 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding UAIWiki? Send feedback |
the world is an OblateSpheroid
_Everyone_ *knows* that =the world= is an OblateSpheroid
Actually it is perfectly and absolutely flat_Actually_ it is *perfectly* and __absolutely__ flat| You type | You see |
|---|---|
---+ This is a heading | This is a heading |
---++ And so is this | And so is this |
like this | You type | You see |
|---|---|
* Bullet * Sub-bullet |
|
1
| Cat | Feline |
| Bear | Ursine |
| Wolf | Vulpine |
| Cat | Feline |
| Bear | Ursine |
| Wolf | Vulpine |
[[BumpyWords][bumpy words]] appears as bumpy words
[[http://www..google.com][google]] appears as google
<nop>
<nop>_word_ appears as _word_
Attachment ![]() |
Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|
|
|
manage | 9.6 K | 13 Feb 2004 - 18:41 | MushroomMagicMan | Attached image file |
%ATTACHURL%/myco.gif to see this: /twiki/pub/TWiki/ATasteOfTWiki/myco.gif
%SEARCH{"CategoryWeather" nosearch="on" nosummary="on"}%
%ACTION...
%CALENDAR...%
%COMMENT...
%CHART...
%EDITTABLE...
%RENDERLIST...
%SLIDESHOWSTART...
%CALC...
%TABLE...
%DRAWING...
| %SLIDETITLE% | |
|
|
%SLIDETEXT% |
|
%SLIDENAVFIRST% %SLIDENAVPREV%
Slide %SLIDENUM% of %SLIDEMAX%
%SLIDENAVNEXT% %SLIDENAVLAST% Copyright © 2013 by the contributing authors |
|
configure, make, etc. This is often not necessary on Linux or Windows.
mc -ac and ESC 1 to get help.
-- TWiki:Main.RichardDonkin - 27 Apr 2002 | Web | Tools | Use to... |
|---|---|---|
| Main | | UAI researchers can use to colaborate and inform each other about ongoing research. |
| Sandbox | | ...experiment in an unrestricted hands-on web. |
| TWiki | | ...discover TWiki details, and how to start your own site. |
| This table is updated automatically based on WebPreferences settings of the individual webs. | ||
| Legend: |
|
|
|
|
|
|
|
|
|
|
*_text_* as bold italic text.
"$SUM( $ABOVE() )" to tables located in UAIWiki topics.
ExternalSite:Page text to external sites based on aliases defined in the InterWikis topic
:-) for
or :cool: for
$siteLocale setting in TWiki.cfg - this enables you to have a slightly different spelling of the character set in the server locale (e.g. 'eucjp') and the HTTP header sent to the browser (e.g. 'euc-jp').
This feature should also support use of Mozilla Browser with TWiki:Codev.TWikiOnMainframe (as long as mainframe web server can convert or pass through UTF-8 URLs) - however, this specific combination is not tested. Other browser-server combinations should not have any problems.
Please note that use of UTF-8 as the site character set is not yet supported - see Phase 2 of TWiki:Codev.ProposedUTF8SupportForI18N for plans and work to date in this area.
This feature is complete in TWiki releases newer than February 2004.
Note for skin developers: %INTURLENCODE% is no longer required (TWiki:Plugins.InternationalisingYourSkin).
$siteCharset (from the TWiki.cfg locale setting), using modules such as CPAN:Encode if needed.
TWiki generates the whole page in the site charset, e.g. ISO-8859-1 or EUC-JP, but the browser dynamically UTF-8 encodes the attachment's URL when it's used. Since Apache serves attachment downloads without TWiki being involved, TWiki's code can't do its UTF-8 decoding trick, so TWiki URL-encodes such URLs in ISO-8859-1 or whatever when generating the page, to bypass this URL encoding, ensuring that the URLs and filenames seen by Apache remain in the site charset.
TWiki:Codev.TWikiOnMainframe uses EBCDIC web servers that typically translate their output to ASCII, UTF-8 or ISO-8859-1 (and URLs in the other direction) since there are so few EBCDIC web browsers. Such web servers don't work with even ISO-8859-1 URLs if they are URL encoded, since the automated translation is bypassed for URL-encoded characters. For TWiki on Mainframe, TWiki assumes that the web server will automatically translate UTF-8 URLs into EBCDIC URLs, as long as URL encoding is turned off in TWiki pages.
twiki - to whatever you like by changing it in the TWiki.cfg configuration file. However, to keep the current installation and future upgrades simple, you should leave the five main subdirectories intact:
| Directory: | Files: | Used for: |
|---|---|---|
twiki | #TWikiFileslist | Start-up info |
twiki/bin | #BinFileslist | Perl scripts |
twiki/lib | #LibFileslist | Configuration file, main library, Perl system modules, Plugins directory |
twiki/pub | #PubFileslist | Public files (eg: images) and FileAttachments and their RCS histories |
twiki/data | #DataFileslist | Individual topics (page content) and their RCS histories |
twiki/templates | #TemplatesFileslist | HTML templates, used by TWiki scripts |
twiki | File | Used for |
|---|---|
index.html | Links to launch TWiki after install and for files in this directory |
license.txt | GNU General Public License and TWiki-specific info |
readme.txt | General TWiki start-up info with relevant URLs |
TWikiDocumentation.html | All documentation packaged as a single page |
TWikiHistory.html | TWiki development timeline: versions, features, developers |
TwikiUpgrade | TWiki upgrade script (Beta state) |
twiki/bin | File: | Used for: |
|---|---|
.htaccess.txt | Authentication. Rename to .htaccess and customize if used |
attach | Shows the attach file page (FileAttachment) |
changes | a simple WebChanges query |
edit | Edit a topic |
geturl | Fetch URL data |
installpasswd | Install new password by admin |
mailnotify | Script called by cron job to notify users of changes |
manage | Manage script to create new webs |
oops | Shows an OK or oops dialog |
passwd | Reset and change password |
preview | Preview topic after edit |
rdiff | See differences of topics |
rdiffauth | Copy of rdiff script (ideally a link). The .htaccess file sets this as requiring authorisation |
register | Register new users |
rename | Rename/move topics and move attachments |
save | Saves a topic, called by preview |
search | Displays search results |
setlib.cfg | Location of the TWiki libraries. Customize if needed |
statistics | Create statistics topic |
testenv | Test CGI environment variables |
upload | Does file upload (FileAttachment) |
view | View a topic (the script) |
viewauth | Copy of view script (ideally a link). The .htaccess file sets this as requiring authorisation |
viewfile | View a file attachment |
twiki/lib lib/TWiki/Plugins directories contain configuration, library and function files, and TWikiPlugins. Full file list:
| File: | Used for: |
|---|---|
TWiki.cfg | Main configuration, used by TWiki.pm |
TWiki.pm | Main TWiki library |
Algorithm/Diff.pm | Diff library |
Text/Diff.pm | Diff library, used by TwikiUpgrade script |
TWiki/Access.pm | Access control |
TWiki/Attach.pm | Attachment handling |
TWiki/Form.pm | Form handling |
TWiki/Func.pm | Public functions that Plugins may use |
TWiki/Meta.pm | Meta data in topics |
TWiki/Net.pm | SMTP mail handling |
TWiki/Plugins.pm | Plugin handling |
TWiki/Plugins/CommentPlugin.pm | Plugin handling a comment box |
TWiki/Plugins/CommentPlugin/Attrs.pm | Supporting module for Comment Plugin |
TWiki/Plugins/CommentPlugin/Comment.pm | Supporting module for Comment Plugin |
TWiki/Plugins/CommentPlugin/Templates.pm | Supporting module for Comment Plugin |
TWiki/Plugins/DefaultPlugin.pm | Handles some legacy rules |
TWiki/Plugins/EditTablePlugin.pm | Plugin to edit tables |
TWiki/Plugins/EmptyPlugin.pm | Empty plugin, use to create your own |
TWiki/Plugins/InterwikiPlugin.pm | Use aliases as links for predefined URLs |
TWiki/Plugins/RenderListPlugin.pm | Plugin to render lists as nice trees |
TWiki/Plugins/SlideShowPlugin.pm | Plugin turning headings into slides |
TWiki/Plugins/SmiliesPlugin.pm | Plugin rendering smilies like :-) |
TWiki/Plugins/SpreadSheetPlugin.pm | Plugin resolving spreadsheet formulae |
TWiki/Plugins/TablePlugin.pm | Plugin to render tables nicely |
TWiki/Prefs.pm | Preferences handling |
TWiki/Render.pm | TWiki markup to HTML rendering |
TWiki/Search.pm | Search engine, used by TWiki.pm |
TWiki/Store.pm | Back-end storage, *.txt text file and *.txt,v RCS repository file handling |
TWiki/Store/RcsFile.pm | Generic file handling code, a class |
TWiki/Store/RcsWrap.pm | Wrappers around RCS executables, a class that inherits from RcsFile |
TWiki/Store/RcsLite.pm | A Perl RCS implemention, a class that inherits from RcsFile |
TWiki/UI.pm | User interface handling |
TWiki/UI/Changes.pm | Functionality of changes script |
TWiki/UI/Edit.pm | Functionality of edit script |
TWiki/UI/Manage.pm | Functionality of manage script |
TWiki/UI/Oops.pm | Functionality of oops script |
TWiki/UI/Preview.pm | Functionality of preview script |
TWiki/UI/RDiff.pm | Functionality of rdiff script |
TWiki/UI/Save.pm | Functionality of save script |
TWiki/UI/Search.pm | Functionality of search script |
TWiki/UI/Statistics.pm | Functionality of statistics script |
TWiki/UI/Upload.pm | Functionality of upload script |
TWiki/UI/View.pm | Functionality of view script |
TWiki/UI/Viewfile.pm | Functionality of viewfile script |
TWiki/Upgrade/TWikiCfg.pm | Supporting module of TwikiUpgrade script |
TWiki/Upgrade/UpdateTopics.pm | Supporting module of TwikiUpgrade script |
TWiki/Upgrade/UpdateTopicsManualSymlinks.pm | Supporting module of TwikiUpgrade script |
TWiki/User.pm | Abstraction package to allow plugable user authentication systems |
TWiki/User/HtPasswdUser.pm | Apache Htpasswd file implementation (the default) |
TWiki/User/NoPasswdUser.pm | simple, no users authentication (totally wiki) |
twiki/pub pub directory stores topic-related files, including images used by TWiki and FileAttachments. Attachments are stored in subdirectories created with the related topic name. You can also upload files directly for and link manually (but not through Attach) Partial file list:
| File: | Used for: |
|---|---|
favicon.ico | ICO file |
wikiHome.gif | GIF file |
icn/_filetypes.txt | Lookup table to translate file extension to file type |
icn/bat.gif | GIF file for file type |
icn/bmp.gif | GIF file for file type |
| ... | ... |
TWiki/FileAttachment/Sample.txt | TEXT file: sample |
TWiki/FileAttachment/Smile.gif | GIF image: sample |
TWiki/FileAttachment/Smile.gif,v | RCS repository for GIF file |
TWiki/PreviewBackground/blankltgraybg.gif | GIF image |
TWiki/PreviewBackground/blankwhitebg.gif | GIF image |
TWiki/PreviewBackground/previewbg.gif | GIF image: Preview view background |
TWiki/PreviewBackground/preview2bg.gif | GIF image: Alternate preview view background |
TWiki/TWikiLogos/twikiRobot121x54.gif | GIF image: TWiki logo |
| ... | ... |
TWiki/TWikiTemplates/testscreen.gif | GIF image: Screen shot |
TWiki/WabiSabi/wabisabi.gif | GIF image: illustration |
twiki/data Main, TWiki, and Sandbox - with documentation and demo content, a Trash web for browser-based, recoverable topic deletion, and a _default directory containing a core topic set required to start a new web. Partial file list:
| File: | Used for: |
|---|---|
.htpasswd | Basic Authentication (htaccess) users file with username and encrypted password pairs |
debug.txt | Program-generated messages useful for debugging |
mime.types | Recognized file formats |
warning.txt | Diagnostic messages for identifying problems |
_default/.changes | Per web record of topic changes |
_default/.mailnotify | Per web timestamp of most recent email notification |
_default/WebChanges.txt | Display most recent topic changes in web |
_default/WebChanges.txt,v | Revisions history (RCS) |
_default/WebHome.txt | Default web home page |
_default/WebHome.txt,v | Revisions history (RCS) |
_default/WebIndex.txt | Lists all topics in a web |
_default/WebIndex.txt,v | Revisions history (RCS) |
_default/WebLeftBar.txt | Left navigation bar for PatternSkin |
_default/WebLeftBar.txt,v | Revisions history (RCS) |
_default/WebNotify.txt | Subscribe/unsubscribe to web changes email alert |
_default/WebNotify.txt,v | Revisions history (RCS) |
_default/WebPreferences.txt | Per web Preference Settings |
_default/WebPreferences.txt,v | Revisions history (RCS) |
_default/WebSearch.txt | Per web search options |
_default/WebSearch.txt,v | Revisions history (RCS) |
_default/WebStatistics.txt | Generates web usage statistics |
_default/WebStatistics.txt,v | Revisions history (RCS) |
_default/WebTopicList.txt | Lists all topics in a web in compact format |
_default/WebTopicList.txt,v | Revisions history (RCS) |
| ... | ... |
twiki/templates | File: | Used for: |
|---|---|
attach.tmpl | Attachment (FileAttachments) control screen |
attachagain.tmpl | Attachment control screen for updating an existing attachment |
attachnew.tmpl | Attachment control screen for adding a new attachment |
attachtables.tmpl | Macros for definition of attachment tables |
changeform.tmpl | Control screen to change the form in edit mode |
changes.tmpl | Displays list of recently changed topics |
edit.iejs.tmpl | Edit window with IE-specific JavaScript |
edit.tmpl | Main edit window |
mailnotify.tmpl | Email notification |
moveattachment.tmpl | Move attachment control screen |
oopsaccesschange.tmpl | Error message |
oopsaccessgroup.tmpl | Error message |
oopsaccessmanage.tmpl | Error message |
oopsaccessrename.tmpl | Error message |
oopsaccessview.tmpl | Error message |
oopsattachnotopic.tmpl | Error message |
oopsauth.tmpl | Error message |
oopsbadcharset.tmpl | Error message |
oopsbadpwformat.tmpl | Error message |
oopschangepasswd.tmpl | Error message |
oopscreatenewtopic.tmpl | Error message |
oopsempty.tmpl | Error message |
oopslocked.tmpl | Error message |
oopslockedrename.tmpl | Error message |
oopsmanage.tmpl | Error message |
oopsmissing.tmpl | Error message |
oopsmngcreateweb.tmpl | Error message |
oopsmore.tmpl | More topic actions message |
oopsmoveerr.tmpl | Error message |
oopsnoformdef.tmpl | Error message |
oopsnotwikiuser.tmpl | Error message |
oopsnoweb.tmpl | Error message |
oopspreview.tmpl | Error message |
oopsregemail.tmpl | Error message |
oopsregexist.tmpl | Error message |
oopsregpasswd.tmpl | Error message |
oopsregrequ.tmpl | Error message |
oopsregthanks.tmpl | Error message |
oopsregwiki.tmpl | Error message |
oopsremoveuserdone.tmpl | Error message |
oopsrenameerr.tmpl | Error message |
oopsrenamenotwikiword.tmpl | Error message |
oopsresetpasswd.tmpl | Error message |
oopsrev.tmpl | Error message |
oopssave.tmpl | Error message |
oopssaveerr.tmpl | Error message |
oopssendmailerr.tmpl | Error message |
oopstopicexists.tmpl | Error message |
oopsupload.tmpl | Error message |
oopsuploadlimit.tmpl | Error message |
oopswrongpassword.tmpl | Error message |
preview.tmpl | Preview Changes screen |
rdiff.tmpl | Displays text changes before & after Diffs |
registernotify.tmpl | Registration notification |
rename.tmpl | Rename/move control screen (choose web & new topic tile |
renamebase.tmpl | Used by other rename templates |
renameconfirm.tmpl | Confirms a pre-specified rename, ex: undoing a rename |
renamedelete.tmpl | Confirms a delete |
renamerefs.tmpl | Display if rename done, but some references not changed (topics were locked) |
search.tmpl | Search screen |
searchbookview.tmpl | Search results with full topic content |
searchformat.tmpl | Search screen for formatted search |
searchmeta.tmpl | Search screen |
searchrenameview.tmpl | Used by rename to list references to topic being renamed |
twiki.tmpl | Master template: definitions are used by other templates |
view.plain.tmpl | Skin for bare bone topic view without header/footer but with HTML head and body tags |
view.print.tmpl | Skin for printable topic view with a simple header/footer |
view.rss.tmpl | Skin for topic view in RDF XML format |
view.text.tmpl | Skin for topic text only, without HTML head and body tags, and no form and attachments |
view.tmpl | Main topic view - the standard regular Web page |
twiki twiki - will probably be your domain or login name, eg: yourdomain yourdomain and can"t be changed; same for nobody nobody files further down. Also, in the bin directory, scripts might need a .cgi (sometimes .pl) extension.
twiki/bin:
drwxrwxr-x 2 twiki twiki 4096 May 9 00:08 . drwxrwxr-x 5 twiki twiki 4096 Nov 18 2002 .. -rw-rw-r-- 1 twiki twiki 3145 Jul 25 00:31 .htaccess.txt -rwxrwxr-x 1 twiki twiki 1459 May 28 23:51 attach -rwxrwxr-x 1 twiki twiki 1721 May 28 23:51 changes -rwxrwxr-x 1 twiki twiki 1994 May 28 23:51 edit -rwxrwxr-x 1 twiki twiki 1878 May 28 23:51 geturl -rwxrwxr-x 1 twiki twiki 6689 May 28 23:51 installpasswd -rwxrwxr-x 1 twiki twiki 7313 May 28 23:51 mailnotify -rwxrwxr-x 1 twiki twiki 3557 Jul 25 15:00 manage -rwxrwxr-x 1 twiki twiki 1448 May 28 23:51 oops -rwxrwxr-x 1 twiki twiki 4062 May 28 23:51 passwd -rwxrwxr-x 1 twiki twiki 1506 May 28 23:51 preview -rwxrwxr-x 2 twiki twiki 1490 May 28 23:51 rdiff -rwxrwxr-x 2 twiki twiki 1490 May 28 23:51 rdiffauth -rwxrwxr-x 1 twiki twiki 7635 May 28 23:51 register -rwxrwxr-x 1 twiki twiki 1774 May 28 23:51 rename -rwxrwxr-x 1 twiki twiki 1654 Jul 25 00:31 save -rwxrwxr-x 1 twiki twiki 1728 May 28 23:51 search -rw-rw-r-- 1 twiki twiki 2131 Aug 7 21:13 setlib.cfg -rwxrwxr-x 1 twiki twiki 2596 May 28 23:51 statistics -rwxrwxr-x 1 twiki twiki 39926 Jul 25 15:00 testenv -rwxrwxr-x 1 twiki twiki 1478 May 28 23:51 upload -rwxrwxr-x 2 twiki twiki 1689 May 28 23:51 view -rwxrwxr-x 2 twiki twiki 1689 May 28 23:51 viewauth -rwxrwxr-x 1 twiki twiki 1438 May 28 23:51 viewfileDirectory
twiki/templates/:
drwxrwxr-x 2 twiki twiki 4096 Aug 7 19:09 . drwxrwxr-x 4 twiki twiki 4096 Aug 7 21:13 .. -rw-rw-r-- 1 twiki users 2077 Aug 13 22:21 attachagain.pattern.tmpl -rw-rw-r-- 1 twiki users 1650 Aug 13 22:21 attachagain.tmpl -rw-rw-r-- 1 twiki twiki 2556 Jul 27 10:47 attach.dragon.tmpl -rw-rw-r-- 1 twiki users 567 Jul 28 19:52 attachnew.pattern.tmpl -rw-rw-r-- 1 twiki users 470 Jul 28 19:52 attachnew.tmpl -rw-rw-r-- 1 twiki users 2855 Aug 8 03:40 attach.pattern.tmpl -rw-rw-r-- 1 twiki users 1991 Aug 3 13:09 attachtables.pattern.tmpl -rw-rw-r-- 1 twiki users 1869 Jul 27 22:03 attachtables.tmpl -rw-rw-r-- 1 twiki users 2355 Jul 28 19:52 attach.tmpl -rw-rw-r-- 1 twiki twiki 1324 Jul 27 10:47 changeform.dragon.tmpl -rw-rw-r-- 1 twiki twiki 1441 Aug 6 11:47 changeform.pattern.tmpl -rw-rw-r-- 1 twiki twiki 1032 Jul 28 19:52 changeform.tmpl -rw-rw-r-- 1 twiki twiki 1870 Jul 27 10:47 changes.dragon.tmpl -rw-rw-r-- 1 twiki twiki 433 Jul 31 12:39 changes.pattern.tmpl -rw-rw-r-- 1 twiki twiki 1196 May 28 23:51 changes.tmpl -rw-rw-r-- 1 twiki twiki 35 May 21 03:56 comments.tmpl -rw-rw-r-- 1 twiki twiki 526 Jul 27 10:47 dragoncssvars.dragon.tmpl -rw-rw-r-- 1 twiki twiki 1645 Jul 31 00:57 dragonmenu.dragon.tmpl -rw-rw-r-- 1 twiki twiki 4207 Jul 27 10:47 edit.dragon.tmpl -rw-rw-r-- 1 twiki twiki 12608 Jul 28 19:52 edit.iejs.tmpl -rw-rw-r-- 1 twiki twiki 4904 Aug 7 17:48 edit.pattern.tmpl -rw-rw-r-- 1 twiki twiki 3975 Aug 8 03:40 edit.tmpl -rw-rw-r-- 1 twiki twiki 993 May 28 23:51 mailnotify.tmpl -rw-rw-r-- 1 twiki twiki 1640 Jul 27 10:47 moveattachment.dragon.tmpl -rw-rw-r-- 1 twiki twiki 1968 Aug 7 17:48 moveattachment.pattern.tmpl -rw-rw-r-- 1 twiki twiki 1342 Jul 28 19:52 moveattachment.tmpl -rw-rw-r-- 1 twiki twiki 571 May 28 23:51 oopsaccesschange.tmpl -rw-rw-r-- 1 twiki twiki 587 May 28 23:51 oopsaccessgroup.tmpl -rw-rw-r-- 1 twiki twiki 597 Aug 2 11:10 oopsaccessmanage.tmpl -rw-rw-r-- 1 twiki twiki 572 May 28 23:51 oopsaccessrename.tmpl -rw-rw-r-- 1 twiki twiki 574 May 28 23:51 oopsaccessview.tmpl -rw-rw-r-- 1 twiki twiki 571 Aug 2 11:10 oopsattachnotopic.tmpl -rw-rw-r-- 1 twiki twiki 998 May 28 23:51 oopsauth.tmpl -rw-rw-r-- 1 twiki twiki 646 May 28 23:51 oopsbadcharset.tmpl -rw-rw-r-- 1 twiki twiki 406 May 28 23:51 oopsbadpwformat.tmpl -rw-rw-r-- 1 twiki twiki 345 May 28 23:51 oopschangepasswd.tmpl -rw-rw-r-- 1 twiki twiki 382 May 28 23:51 oopscreatenewtopic.tmpl -rw-rw-r-- 1 twiki twiki 627 Jul 7 23:11 oopsempty.tmpl -rw-rw-r-- 1 twiki twiki 927 Aug 3 13:09 oopslocked.pattern.tmpl -rw-rw-r-- 1 twiki twiki 612 Aug 2 11:10 oopslockedrename.pattern.tmpl -rw-rw-r-- 1 twiki twiki 596 Aug 2 11:10 oopslockedrename.tmpl -rw-rw-r-- 1 twiki twiki 910 Aug 3 13:09 oopslocked.tmpl -rw-rw-r-- 1 twiki twiki 679 May 28 23:51 oopsmanage.tmpl -rw-rw-r-- 1 twiki twiki 329 May 28 23:51 oopsmissing.tmpl -rw-rw-r-- 1 twiki twiki 2353 May 28 23:51 oopsmngcreateweb.tmpl -rw-rw-r-- 1 twiki twiki 2987 Aug 3 13:09 oopsmore.tmpl -rw-rw-r-- 1 twiki twiki 418 May 28 23:51 oopsmoveerr.tmpl -rw-rw-r-- 1 twiki twiki 1133 May 28 23:51 oopsnoformdef.tmpl -rw-rw-r-- 1 twiki twiki 521 May 28 23:51 oopsnotwikiuser.tmpl -rw-rw-r-- 1 twiki twiki 1516 Jul 28 19:52 oopsnoweb.tmpl -rw-rw-r-- 1 twiki twiki 394 May 28 23:51 oopspreview.tmpl -rw-rw-r-- 1 twiki twiki 341 May 28 23:51 oopsregemail.tmpl -rw-rw-r-- 1 twiki twiki 411 May 28 23:51 oopsregerr.tmpl -rw-rw-r-- 1 twiki twiki 476 May 28 23:51 oopsregexist.tmpl -rw-rw-r-- 1 twiki twiki 346 May 28 23:51 oopsregpasswd.tmpl -rw-rw-r-- 1 twiki twiki 357 May 28 23:51 oopsregrequ.tmpl -rw-rw-r-- 1 twiki twiki 541 May 28 23:51 oopsregthanks.tmpl -rw-rw-r-- 1 twiki twiki 680 May 28 23:51 oopsregwiki.tmpl -rw-rw-r-- 1 twiki twiki 587 May 28 23:51 oopsremoveuserdone.tmpl -rw-rw-r-- 1 twiki twiki 503 May 28 23:51 oopsrenameerr.tmpl -rw-rw-r-- 1 twiki twiki 434 May 28 23:51 oopsrenamenotwikiword.tmpl -rw-rw-r-- 1 twiki twiki 507 May 28 23:51 oopsresetpasswd.tmpl -rw-rw-r-- 1 twiki twiki 962 Jul 28 19:52 oopsrev.tmpl -rw-rw-r-- 1 twiki twiki 483 May 28 23:51 oopssaveerr.tmpl -rw-rw-r-- 1 twiki twiki 777 Jul 7 23:11 oopssave.tmpl -rw-rw-r-- 1 twiki twiki 466 May 28 23:51 oopssendmailerr.tmpl -rw-rw-r-- 1 twiki twiki 385 May 28 23:51 oopstopicexists.tmpl -rw-rw-r-- 1 twiki twiki 344 May 28 23:51 oopsuploadlimit.tmpl -rw-rw-r-- 1 twiki twiki 343 May 28 23:51 oopsupload.tmpl -rw-rw-r-- 1 twiki twiki 365 May 28 23:51 oopswrongpassword.tmpl -rw-rw-r-- 1 twiki twiki 3590 Jul 27 10:47 preview.dragon.tmpl -rw-rw-r-- 1 twiki twiki 2855 Aug 6 11:47 preview.pattern.tmpl -rw-rw-r-- 1 twiki twiki 2253 Aug 8 03:40 preview.tmpl -rw-rw-r-- 1 twiki twiki 1739 Jul 27 10:47 rdiff.dragon.tmpl -rw-rw-r-- 1 twiki users 1529 Aug 13 22:21 rdiff.pattern.tmpl -rw-rw-r-- 1 twiki users 1299 May 28 23:51 rdiff.tmpl -rw-rw-r-- 1 twiki twiki 1159 Jul 31 12:39 registernotify.pattern.tmpl -rw-rw-r-- 1 twiki twiki 1160 May 28 23:51 registernotify.tmpl -rw-rw-r-- 1 twiki twiki 2561 Jul 27 10:47 renamebase.dragon.tmpl -rw-rw-r-- 1 twiki twiki 3363 Aug 8 03:40 renamebase.pattern.tmpl -rw-rw-r-- 1 twiki twiki 2279 Jul 28 20:54 renamebase.tmpl -rw-rw-r-- 1 twiki twiki 718 Jul 31 12:39 renameconfirm.pattern.tmpl -rw-rw-r-- 1 twiki twiki 570 Jul 28 19:52 renameconfirm.tmpl -rw-rw-r-- 1 twiki twiki 1046 Jul 31 12:39 renamedelete.pattern.tmpl -rw-rw-r-- 1 twiki twiki 932 Jul 28 19:52 renamedelete.tmpl -rw-rw-r-- 1 twiki twiki 1147 Jul 31 12:39 rename.pattern.tmpl -rw-rw-r-- 1 twiki twiki 766 Jul 28 19:52 renamerefs.pattern.tmpl -rw-rw-r-- 1 twiki twiki 616 Jul 28 19:52 renamerefs.tmpl -rw-rw-r-- 1 twiki twiki 1041 Jul 28 19:52 rename.tmpl -rw-rw-r-- 1 twiki twiki 1397 Jul 27 10:47 searchbookview.dragon.tmpl -rw-rw-r-- 1 twiki twiki 723 Jul 31 12:39 searchbookview.pattern.tmpl -rw-rw-r-- 1 twiki twiki 1230 May 28 23:51 searchbookview.tmpl -rw-rw-r-- 1 twiki twiki 1705 Jul 27 10:47 search.dragon.tmpl -rw-rw-r-- 1 twiki twiki 722 Jul 27 10:47 searchformat.dragon.tmpl -rw-rw-r-- 1 twiki twiki 157 Jul 31 12:39 searchformat.pattern.tmpl -rw-rw-r-- 1 twiki twiki 529 May 28 23:51 searchformat.tmpl -rw-rw-r-- 1 twiki twiki 149 Jul 7 23:03 searchmeta.pattern.tmpl -rw-rw-r-- 1 twiki twiki 149 May 28 23:51 searchmeta.tmpl -rw-rw-r-- 1 twiki twiki 1638 Aug 7 17:48 search.pattern.tmpl -rw-rw-r-- 1 twiki twiki 1892 Jul 27 10:47 searchrenameview.dragon.tmpl -rw-rw-r-- 1 twiki twiki 1208 Aug 3 13:09 searchrenameview.pattern.tmpl -rw-rw-r-- 1 twiki twiki 1615 May 28 23:51 searchrenameview.tmpl -rw-rw-r-- 1 twiki twiki 1364 May 28 23:51 search.tmpl -rw-rw-r-- 1 twiki twiki 3836 Jul 27 10:47 twiki.dragon.tmpl -rw-rw-r-- 1 twiki twiki 3175 Aug 7 17:48 twiki.pattern.tmpl -rw-rw-r-- 1 twiki twiki 2798 Jul 27 22:57 twiki.tmpl -rw-rw-r-- 1 twiki twiki 1324 Jul 27 10:47 view.dragon.tmpl -rw-rw-r-- 1 twiki twiki 3577 Aug 8 03:40 view.pattern.tmpl -rw-rw-r-- 1 twiki twiki 425 May 28 23:51 view.plain.tmpl -rw-rw-r-- 1 twiki twiki 1056 Jul 31 12:39 view.print.pattern.tmpl -rw-rw-r-- 1 twiki twiki 845 May 28 23:51 view.print.tmpl -rw-rw-r-- 1 twiki twiki 300 May 28 23:51 view.rss.tmpl -rw-rw-r-- 1 twiki twiki 8 May 28 23:51 view.text.tmpl -rw-rw-r-- 1 twiki twiki 1281 Jul 31 12:39 view.tmplDirectory
twiki/data/:
drwxrwxr-x 7 nobody twiki 4096 Aug 7 21:13 . drwxrwxr-x 4 twiki twiki 4096 Aug 7 21:13 .. -rw-rw-rw- 1 twiki twiki 0 Feb 1 2003 debug.txt drwxrwxr-x 2 nobody twiki 4096 Jul 16 00:36 _default -rw-rw-r-- 1 twiki twiki 25 Dec 16 2003 .htpasswd.txt -rw-rw-r-- 1 nobody nobody 11811 Aug 13 23:10 log200408.txt drwxrwxr-x 2 nobody twiki 4096 Aug 4 21:03 Main -rw-rw-r-- 1 twiki twiki 3419 Aug 13 2001 mime.types drwxrwxr-x 2 nobody twiki 4096 Aug 7 21:03 Sandbox drwxrwxr-x 2 nobody twiki 4096 Jul 20 18:15 Trash drwxrwxr-x 2 nobody twiki 12288 Aug 13 23:10 TWiki -rw-rw-rw- 1 twiki twiki 0 Aug 7 18:03 warning.txtPartial file list for
twiki/data/Main:
.txt,v.
drwxrwxr-x 2 nobody twiki 4096 Aug 4 21:03 . drwxrwxr-x 7 nobody twiki 4096 Aug 7 21:13 .. -rw-rw-rw- 1 twiki twiki 3743 Aug 4 21:03 .changes -rw-rw-rw- 1 twiki twiki 9 Oct 25 2001 .mailnotify -rw-r--r-- 1 nobody nobody 518 Dec 16 2003 TWikiAdminGroup.txt -r--r--r-- 1 nobody nobody 2453 Dec 16 2003 TWikiAdminGroup.txt,v -rw-r--r-- 1 nobody nobody 1668 Aug 4 21:03 TWikiGroups.txt -r--r--r-- 1 nobody nobody 3421 Aug 4 21:03 TWikiGroups.txt,v -rw-r--r-- 1 nobody nobody 686 Dec 13 2000 TWikiGuest.txt -rw-r--r-- 1 nobody nobody 1995 Dec 13 2000 TWikiGuest.txt,v -rw-r--r-- 1 nobody nobody 319 Dec 20 2003 TWikiPreferences.txt -r--r--r-- 1 nobody nobody 508 Dec 20 2003 TWikiPreferences.txt,v -rw-r--r-- 1 nobody nobody 1812 Feb 20 13:54 TWikiUsers.txt -r--r--r-- 1 nobody nobody 9222 Feb 20 13:54 TWikiUsers.txt,v -rw-r--r-- 1 nobody nobody 119 Jan 11 2003 TWikiVariables.txt -r--r--r-- 1 nobody nobody 742 Jan 11 2003 TWikiVariables.txt,v -rw-r--r-- 1 nobody nobody 124 Aug 16 2001 WebChanges.txt -r--r--r-- 1 nobody nobody 526 Aug 16 2001 WebChanges.txt,v -rw-r--r-- 1 nobody nobody 1842 Feb 1 2003 WebHome.txt -r--r--r-- 1 nobody nobody 11862 Feb 1 2003 WebHome.txt,v -rw-r--r-- 1 nobody nobody 176 Nov 24 2001 WebIndex.txt -r--r--r-- 1 nobody nobody 483 Nov 24 2001 WebIndex.txt,v -rw-r--r-- 1 nobody nobody 922 Feb 3 2003 WebNotify.txt -r--r--r-- 1 nobody nobody 4303 Feb 3 2003 WebNotify.txt,v -rw-r--r-- 1 nobody nobody 3738 Dec 25 2003 WebPreferences.txt -r--r--r-- 1 nobody nobody 10697 Dec 25 2003 WebPreferences.txt,v -rw-r--r-- 1 nobody nobody 416 Jan 30 2003 WebRss.txt -r--r--r-- 1 nobody nobody 605 Jan 30 2003 WebRss.txt,v -rw-r--r-- 1 nobody nobody 164 Jan 18 2004 WebSearchAdvanced.txt -r--r--r-- 1 nobody nobody 353 Jan 18 2004 WebSearchAdvanced.txt,v -rw-r--r-- 1 nobody nobody 158 Aug 7 2001 WebSearch.txt -r--r--r-- 1 nobody nobody 18332 Aug 7 2001 WebSearch.txt,v -rw-r--r-- 1 nobody nobody 825 Jul 16 00:32 WebStatistics.txt -r--r--r-- 1 nobody nobody 4226 Jul 16 00:32 WebStatistics.txt,v -rw-r--r-- 1 nobody nobody 182 Nov 24 2001 WebTopicList.txt -r--r--r-- 1 nobody nobody 371 Nov 24 2001 WebTopicList.txt,vDirectory
twiki/pub/:
drwxrwxr-x 8 nobody nobody 4096 Nov 18 12:31 . drwxrwxr-x 3 twiki twiki 4096 Nov 18 12:31 .. drwxrwxr-x 2 nobody nobody 4096 Apr 7 2002 Main drwxrwxr-x 2 nobody nobody 4096 Apr 20 2002 Sandbox drwxrwxr-x 8 nobody nobody 4096 Nov 18 12:31 TWiki drwxrwxr-x 2 nobody nobody 4096 Dec 3 2001 Trash -rw-rw-r-- 1 twiki twiki 1078 Jan 14 2000 favicon.ico drwxrwxr-x 2 twiki twiki 4096 Nov 18 12:31 icn -rw-rw-r-- 1 twiki twiki 2877 Jun 7 1999 wikiHome.gifPartial file list for
twiki/pub/icn/:
drwxrwxr-x 2 twiki twiki 4096 Nov 18 12:31 . drwxrwxr-x 8 nobody nobody 4096 Nov 18 12:31 .. -rw-rw-r-- 1 twiki twiki 801 Mar 26 1999 _filetypes.txt -rw-rw-r-- 1 twiki twiki 143 Mar 9 1999 bat.gif -rw-rw-r-- 1 twiki twiki 926 Mar 9 1999 bmp.gif -rw-rw-r-- 1 twiki twiki 141 Mar 25 1999 c.gif -rw-rw-r-- 1 twiki twiki 144 Mar 9 1999 dll.gif -rw-rw-r-- 1 twiki twiki 152 Mar 9 1999 doc.gifDirectory
twiki/pub/TWiki:
drwxrwx--x 8 nobody nobody 4096 Nov 18 12:31 . drwxrwxr-x 8 nobody nobody 4096 Nov 18 12:31 .. drwxrwxr-x 2 nobody nobody 4096 Nov 18 12:31 FileAttachment drwxrwxr-x 2 nobody nobody 4096 Nov 18 12:31 PreviewBackground drwxrwxr-x 2 nobody nobody 4096 Nov 18 12:31 TWikiDocGraphics drwxrwxr-x 2 nobody nobody 4096 Nov 18 12:31 TWikiLogos drwxrwxr-x 2 nobody nobody 4096 Nov 18 12:31 TWikiTemplates drwxrwxr-x 2 nobody nobody 4096 Nov 18 12:31 WabiSabiDirectory
twiki/pub/TWiki/FileAttachment:
drwxrwxr-x 2 nobody nobody 4096 Nov 18 12:31 . drwxrwx--x 8 nobody nobody 4096 Nov 18 12:31 .. -rw-rw-r-- 1 nobody nobody 30 Jul 22 1999 Sample.txt -rw-rw-r-- 1 nobody nobody 94 Jun 7 1999 Smile.gif -r--r--r-- 1 nobody nobody 81 Aug 15 10:14 Smile.gif,v-- TWiki:Main.PeterThoeny - 29 Aug 2004
| Description: | The classic TWiki skin, bare bone and functional, for any browser, with a minimum of graphics |
| Screenshot: | |
| Base Name: | classic |
| Skin Author: | TWiki:Main/PeterThoeny |
| Skin Version: | 25 Jul 2004 (v1.000) |
| Change History: | |
| 25 Jul 2004: | Initial version (v1.000) |
| Dependencies: | |
| Skin Home: | http://TWiki.org/cgi-bin/view/Plugins/ClassicSkin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/ClassicSkinDev |
%COMMENT{ attributes }% anywhere in a TWiki topic. %COMMENT% is also legal.
The following attributes are #MoreAttrsrecognised
| Name | Description |
|---|---|
type | (Required) This is the name of the template to use for this comment. Comment templates are defined in a TWiki template - see #TemPlatesCustomisation, below. If this attribute is not defined, the type is whatever is defined by COMMENTPLUGIN_DEFAULT_TYPE, either in this topic or in your WebPreferences. By default this is "below". |
target | Name of the topic to add the comment to. Defaults to the current topic. |
location | Regular expression specifying the comment location in the target topic. Read carefully below! |
mode | For compatability with older versions only, synonymous with type |
nonotify | Set to "on" to disable change notification for target topics |
%COMMENT supports several ways to specify where a comment should be inserted in the target topic. This is referred to as the location of the comment.
%COMMENT tag %COMMENT tag itself. For example:
%COMMENT{type="below"}%
will add comments in the current topic, directly below the %COMMENT tag.
target attribute may specify a web, and may also specify an anchor within the target topic; for example,
%COMMENT{type="above" target="%MAINWEB%.PersonalRemarks#InsertHere"}%
This uses a standard TWiki in-topic anchor as the insertion location. See TextFormattingRules for more about TWiki anchors.
location parameter. The target topic is searched for the regular expression, and the comment inserted relative to the string that the search matched. For example,
%COMMENT{type="above" location="Flights of Fancy"}%
will place comments above the first occurence of the string Flights of Fancy in the current topic.
Warning of course, if a user"s comment contains the string "Flights of Fancy" they may and up changing the location for the next comment! Also, if you use a tag in the location, then you"ve just inserted another tag in the page that contains the %COMMENT! So be very careful how you specify the RE for location. Note that the RE is matched using perl "multiple line" mode, so ^ and $ match the start of a line and the end of a line respectively.
If you specify an anchor and a location, the anchor will be ignored.
| Template type | Description |
|---|---|
top | Comments, signed and dated, added at top of the topic (the anchor is ignored) |
bottom | Comments, signed and dated, added at end of the target topic (the anchor is ignored) |
above | Comments, signed and dated, added immediately before the target anchor, or the %COMMENT if no anchor is specified |
below | Comments, signed and dated, added immediately below the target anchor, or the %COMMENT if no anchor is specified |
tableprepend | Comments, signed and dated, formatted as an HTML table row, added below the anchor (which must be in an HTML <table>) |
tableappend | Comments, signed and dated, formatted as an HTML table row, added above the anchor (which must be in an HTML <table>) |
%TMPL:INCLUDE described in the documentation). The shipped plugin defines default templates in comments.tmpl and then includes the topic CommentsTmpl. If you want to define your own templates, add them to UserTemplates?. Note that you can use %TMPL:INCLUDE in this file to include other files of templates. Note also that if you want to override any of the default templates shipped with the plugin, you can simply do so by defining them in UserTemplates?, and they will replace the installed versions.
To define a comment type, you have to provide two simple template definitions in the template file; one for the prompt box, and one for the generated output. If we have a template type "mytype", these are named PROMPT:mytype and OUTPUT:mytype respectively. See comments.tmpl in the templates directory for examples.
PROMPT template PROMPT template defines the contents of an HTML form that is used to capture the comment. This form invokes the comment generator when submitted. Parameters to the comment generator are defined using standard HTML input fields, such as input, textarea and select. The user enters values for these parameters, and these are then available when the OUTPUT template is expanded, in the form of %URLPARAM%s.
Only the input fields of the form need be defined. The plugin automatically generates the >form< and >:/form< tags. Note that you must define a "submit" button if you want the form to work!
If an attribute is given to the %COMMENT tag that is not one of the #StandardAttrsstandard attributes, then that attribute is taken as the name of a parameter to be expanded in the PROMPT template. Expressions in the template of the form %param|default% (e.g. %rows|3%, %button|Push me%) are expanded to the values given in the %COMMENT. For example, if the PROMPT template "example" contains:
<textarea rows=%rows|3% cols="%cols|50%" value="%tval|Rubbish%">and the %COMMENT tag is:
%COMMENT{type="example" rows="5" cols="20"}%
then the template will be expanded as
<textarea rows=5 cols="20" value="Rubbish">As well as support for all the usual TWiki variables in templates, the following special variables are supported in the
PROMPT definition:
| Variable | Description |
|---|---|
%MESSAGE% | A helpful generated message, either a lock message or a reminder to refresh. |
%DISABLED% | Set to "disabled" when you cannot comment (see #HandlingPageLockImportant Note regarding Locks, below). |
OUTPUT template OUTPUT template defines the format for the text that actually gets embedded into the topic. All the usual TWiki variables are available in the PROMPT definition, but note that they get expanded when the comment is inserted in the text, so time, date and username will refer to the time and date when the comment was made and the user who made it.
There are also four position tags that are used to indicate where the comment should be placed, relative to the location defined in the %COMMENT tag:
%POS:TOP% | If present, comments will be inserted at the top of the topic i.e. before any other text |
%POS:BOTTOM% | If present, comments will be inserted at the end of the topic i.e. after all existing text |
%POS:BEFORE% | If present, comments will be inserted immediately before the %COMMENT% tag |
%POS:AFTER% | If present, comments will be inserted immediately after the %COMMENT% tag |
DEFAULT_TYPE
%COMMENT. When the target page is known to be locked, the PROMPT form is automatically disabled.
CommentPlugin.zip in your twiki installation directory. Content:
| File: | Description: |
|---|---|
data/TWiki/CommentPlugin.txt | Plugin doc page (this page) |
data/TWiki/CommentsTmpl.txt | Example user templates |
templates/comments.tmpl | Master comment templates |
lib/TWiki/Plugins/CommentPlugin.pm | Plugin Perl module |
lib/TWiki/Plugins/CommentPlugin/Comment.pm | Plugin Perl module |
lib/TWiki/Plugins/CommentPlugin/Templates.pm | Plugin Perl module |
lib/TWiki/Plugins/CommentPlugin/test.zip | Tests |
lib/TWiki/Plugins/CommentPlugin/build.pl | Build file |
viewauth script to authenticate the user. As described in TWikiAccessControl, copy the view script to viewauth (or better, create a symbolic link) and add viewauth to the list of authenticated scripts in the .htaccess file.
%COMMENT edit box below here.
| Plugin Author: | v1.0 TWiki:Main/DavidWeller v2.0 TWiki:Main/PeterMasiar v3.0 TWiki:Main/CrawfordCurrie |
| Plugin Version: | 3.0 |
| Change History: | 3.003 11 Apr 2004: Minor line termination problem fixed, and "security" hyphen on standard comment removed and replaced with a bulleted list. |
| 3.002 6 April 2004: Applied patches (thanks Peter Thoeny) for multiple comment adding, BOTTOM and TOP inside meta-data, and moved example to Sandbox. | |
| 3.001 13 March 2004: Modified to use viewauth save technique (safer), add nonotify parameter, move templates fully into topics, with a hook for site-specifics, support %COMMENT%, internationalisation fixes | |
| 3.000 18 Feb 2004: TWiki:Main/CrawfordCurrie rewrote for standard templates and other user requests. Recognition to Patrice Fournier and Sam Abrams for terrific testing and patch support. | |
| 7 Feb 2004: TWiki:Main/CrawfordCurrie rewrote this page and CommentTemplates? in an effort to make the plugin more user friendly. Added {TIME} variable. Also updated CVS. | |
| 23 Sep 2003 TWiki:Main/PeterMasiar: 80% rewrite/refactor, adding templates | |
| 15 July 2003: TWiki:Main/PeterMasiar added "reminder" parameter and feature to pass comments to oopslockedcomments.tmpl template to copy-paste later | |
| 5 March 2002 Bug fixes, TWiki:Main/JonLambert created oopslockedcomments.tmpl template | |
| 24 Feb 2002 added a few more user requests, made "English" text configurable | |
| 4 Dec 2001: 1.01 release, changed name to CommentPlugin, added $button var, changed textarea WRAP setting to "soft" | |
| 30 Nov 2001: Initial version | |
| Dependencies: | |
| Perl Version: | 5.0 |
| Plugin Home: | TWiki:Plugins/CommentPlugin |
| Feedback: | TWiki:Plugins/CommentPluginDev |
%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><input %DISABLED% type="submit" value="%button|Add comment%" /></td></tr></table>
%TMPL:END%
Standard comment, preserving formatting, signed and dated
%TMPL:DEF{outputstandard}%
%URLPARAM{"comment"}%
-- %WIKIUSERNAME% - %DATE%
%TMPL:END%
Short comment, signed and dated
%TMPL:DEF{outputoneliner}% * %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %DATE% %TIME%%TMPL:END%
%TMPL:DEF{PROMPT:top}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:top}%%TMPL:P{outputoneliner}%%POS:TOP%
%TMPL:END%
%TMPL:DEF{PROMPT:bottom}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:bottom}%%POS:BOTTOM%%TMPL:P{outputoneliner}%%TMPL:END%
%TMPL:DEF{PROMPT:above}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:above}%%POS:BEFORE%%TMPL:P{outputstandard}%
%TMPL:END%
%TMPL:DEF{PROMPT:below}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:below}%%POS:AFTER%%TMPL:P{outputstandard}%
%TMPL:END%
%TMPL:DEF{PROMPT:tableprepend}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| %URLPARAM{"comment" newline="<br />"}% </td><td> %WIKIUSERNAME% </td><td> %DATE% %TIME% |
%TMPL:END%
%TMPL:DEF{PROMPT:tableappend}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| %URLPARAM{"comment" newline="<br />"}% | %WIKIUSERNAME% | %DATE% %TIME% |
%TMPL:END%
%TMPL:DEF{PROMPT:after}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:after}%%TMPL:P{outputoneliner}% %POS:BEFORE%%TMPL:END%
%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"}%" /></td>
</tr>
<tr>
<td align="right">Due date:</td>
<td>
<input name="due" id="idDue" type="text" size="30" value="%URLPARAM{"due"}%" />
</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%
%TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%ACTION{who="%URLPARAM{"who"}%" due="%URLPARAM{"due"}%"}% %URLPARAM{"comment" newline="<br />"}%<br />- Created by %WIKIUSERNAME%, %DATE% %TIME%
%TMPL:END%
%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%
%TMPL:DEF{OUTPUT:poll}%%POS:BEFORE%| %WIKIUSERNAME% | %URLPARAM{"sites"}% | %URLPARAM{"pluginhacked"}% | %URLPARAM{"twikihacked"}% | %URLPARAM{"remarks"}% |
%TMPL:END%
%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%
%TMPL:DEF{OUTPUT:table}%
%POS:BEFORE%| %URLPARAM{"comment_date"}% | %WIKIUSERNAME% | %URLPARAM{"comment_city" }% |
%TMPL:END%
%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%
%TMPL:DEF{OUTPUT:toctalk}%
%POS:BEFORE%---+++ %DATE% %TIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary"}%
%POS:BEFORE%%URLPARAM{"comment_text" }%
%POS:BEFORE%
%TMPL:END%
%TMPL:DEF{PROMPT:bookmark}%
<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_text" value="%MESSAGE%" /> <input %DISABLED% type="submit" value="%button|Add%" /> bookmark <hr width="90%"/>
%TMPL:END%
%TMPL:DEF{OUTPUT:bookmark}%
%POS:BEFORE% * [[%URLPARAM{"comment_url"}%][%URLPARAM{"comment_link"}%]] - %URLPARAM{"comment_text" }%
%TMPL:END%
%TMPL:INCLUDE{"TWiki.UserTemplates"}% %INCLUDE:"TopicName"% ) if Plugin Preferences variable OLDINCLUDE is set to 1
*_text_* as bold italic text. Test if installed: This is bold italic
TWiki/Plugins/DefaultPlugin.pm to add your own rules or to enable JosWiki rules.
%<plugin>_<setting>%, i.e. %DEFAULTPLUGIN_SHORTDESCRIPTION%
*_text_* as bold italic text.
%INCLUDE:"TopicName"% syntax:
data/debug.txt)
| Plugin Author: | TWiki:Main.AndreaSterbini, TWiki:Main.PeterThoeny |
| Plugin Version: | 21 Mar 2004 |
| Change History: | |
| 21 Mar 2004: | Added afterSaveHandler |
| 14 Jul 2001: | Changed to plug&play |
| 27 Feb 2001: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.0 |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/DefaultPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/DefaultPluginDev |
Trash web, where it's hidden but can be "undeleted" with system administrator access.
Click [More] on the control bar at the bottom of the page you want to change, then choose [Rename/move], and make your changes to that screen. There's a link that launches to the ManagingTopics reference page in a pop-up window.
NOTE: The configuration of your site and your own access permissions determine whether you can access these functions.
Note for site administrators: To remove a topic permanently move it to the Trash web, then with file-level access, delete the .txt and .txt,v files manually from /twiki/data/Trash.
Back to: TWikiFAQ
-- PeterThoeny - 09 May 2003TrashAttachment topic in the Trash web, where it's hidden but can be "undeleted" with system administrator access. Please note that you cannot rename an attachment in the current TWiki release.
Click on action on the file in the FileAttachment table, then in the Update attachment screen choose [Move attachment], and make your changes to that screen.
NOTE: The configuration of your site and your own access permissions determine whether you can access these functions.
Note for system administrators: To remove an attachment permanently move it to the Trash.TrashAttachment topic, then with file-level access, delete the file attachment and its ,v repository file manually from twiki/pub/Trash/TrashAttachment.
Back to: TWikiFAQ
-- PeterThoeny - 09 May 2003DONTNOTIFYCHECKBOX preferences variable. See TWikiPreferences for more.
DragonSkin.zip in your twiki installation directory
| Description: | Prosaic but relatively organized look-and-feel, while providing easy access to TWiki tools |
| Screenshot: | |
| Base Name: | dragon |
| Skin Author: | TWiki:Main/ClaussStrauch |
| Skin Version: | 27 Jul 2004 (v1.000) |
| Change History: | |
| 27 Jul 2004: | Initial version (v1.000) |
| Dependencies: | |
| Skin Home: | http://TWiki.org/cgi-bin/view/Plugins/DragonSkin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/DragonSkinDev |
| Web | UAIWiki Site Map | Use to... |
|---|---|---|
| Main |
The UAIWiki, be sure to see ... | UAI researchers can use to colaborate and inform each other about ongoing research. |
| TWiki |
Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs... | ...discover TWiki details, and how to start your own site. |
| Sandbox |
Sandbox test area with all features enabled. | ...experiment in an unrestricted hands-on web. |
| You can use color coding by web for identification and reference. This table is updated automatically based on WebPreferences settings of the individual webs. Contact uaiwebmaster@gmail.com if you need a separate collaboration web for your team. | ||
| Legend of icons: |
|
|
%EDITTABLE{...}% variable. Each column can be a text field, a drop down box, a date field, etc. Multiple tables per topic are editable, but only one at a time can be edited.
%EDITTABLE{...}% variable just before an existing table to make it editable, or add the variable anywhere in a topic to start a new table. Parameters:
| Parameter | Comment | Default |
|---|---|---|
header | Specify the header format of a new table like "|*Food*|*Drink*|". Useful to start a table with only a button | (no header) |
format | The format of one column when editing the table. A cell can be a text input field, or any of these edit field types: - Text input field (1 line): | text, <size>, <initial value> | - Textarea input field: | textarea, <rows>x<columns>, <initial value> | - Drop down box: | select, <size>, <option 1>, <option 2>, etc | - Fixed label: | label, 0, <label text> | - Row number: | row, <offset> | - Date: | date, <size>, <initial value>, <DHTML date format> | | "text, 16" for all cells |
changerows | Rows can be added and removed if "on";Rows can be added but not removed if "add" | CHANGEROWS Plugin setting |
quietsave | Quiet Save button is shown if "on", hidden if "off" | QUIETSAVE Plugin setting |
include | Other topic defining the EDITTABLE parameters. The first %EDITTABLE% in the topic is used. This is useful if you have many topics with the same table format and you want to update the format in one place. | (none) |
helptopic | Topic name containing help text shown below the table when editing a table. The %STARTINCLUDE% and %STOPINCLUDE% variables can be used in the topic to specify what is shown. | (no help text) |
headerislabel | Table header cells are read-only (labels) if "on"; header cells can be edited if "off" or "0" | "on" |
editbutton | Set edit button text, e.g. "Edit this table"; set button image with alt text, e.g. "Edit table, %PUBURL%/%TWIKIWEB%/TWikiDocGraphics/edittopic.gif"; hide edit button at the end of the table with "hide" (Note: Button is automatically hidden if an edit button is present in a cell) | EDITBUTTON Plugin setting |
<initial value> (of text input field) and <label text> (of fixed label) get expanded when a new row is added. This can be used for example to add a timestamp to a label. You can escape characters if you do not want that:
| Text: | To Escape: |
|---|---|
$quot | Double quote ("). Alternatively write \" to escape it |
$percnt | Percent sign (%) |
$dollar | Dollar sign ($) |
$nop or $nop() | Is a "no operation" |
The date field type allows one to choose a date with a popup calendar. Popup calendar works for Netscape 6.0 or better, all other Gecko-based browsers, Internet Explorer 5.0 or better for Windows, Opera 7 and Konqueror 3.1.2. The ... button is inactive if the browser cannot support the popup calendar. It uses the nice http://dynarch.com/mishoo/calendar.eplMishoo DHTML calendar, see also TWiki:Codev/JavaScriptDatePickerForForm %EDITCELL{ "type, ..." }% variable at the end of the cell content. This is useful to override the per column %EDITTABLE{ format="..." }% settings, or to create tables with key/value rows. All edit field types of the format="..." parameter are supported. For example, to define a text field, type: | cell content %EDITCELL{ "text, 20" }% |
It is also possible to place the edit button inside a cell instead of default location below the table. Type | %EDITCELL{ "editbutton, 1, Edit this table" }% | to show a button, or | %EDITCELL{ "editbutton, 1, Edit table, Image-URL" }% | to show a button image with alternate text.
Note: The %EDITCELL{ }%=variable cannot be used by itself; place an =%EDITTABLE{ }%=variable at the beginning of a table where you want to use =%EDITCELL{ }% variables.
%EDITTABLE{ header="|*Nr*|*Text field sandbox*|*Drop down sandbox*|*Timestamp*|" format="| row, -1 | text, 20, init | select, 1, one, two, three, four | label, 0, %SERVERTIME{"$day $mon $year $hour:$min"}% |" changerows="on" }%
Note: Please use TWiki:Sandbox.EditTablePluginTesting if you want to try out this Plugin
If this plugin is installed you will see an [ Edit table ] button above; if you were to click on it (please don"t, use TWiki:Sandbox.EditTablePluginTesting for testing) you get this form:
The following example shows a simple table with key/value rows. The default edit field type for the value column is a text field. This is overloaded by a selector for the Gender, and a date picker for the DOB. This is typically used by TWiki applications where new topics with tables are created based on a template topic.
You type:
%EDITTABLE{ format="| label | text, 40 |" }%
|*Key*|*Value*|
| Name: | John Smith |
| Gender: | M %EDITCELL{select, 1, , F, M}% |
| DOB: | 1999/12/31 %EDITCELL{date, 10}% |
| City: | New York |
|
Screenshot:
|
Screenshot in edit mode:
|
%<plugin>_<setting>%, for example, %EDITTABLEPLUGIN_SHORTDESCRIPTION%
data/debug.txt. Default: 0
on, off, add
on to show the Quiet Save button, off to hide
button text, or specify alternate text, image URL
calendar-<code>.js language file: en, af, br, ca, cs-win, da, de, du, el, es, fr, hr, hr-utf8, hu, it, jp, nl, no, pl, pt, ro, ru, sk, sp, sv, tr, zh
JSCALENDAR* settings first in the TWiki Preferences, then in above Plugin settings
| ... ||) and cell justification (e.g. | centered | right |)
%ATTACHURL% get expanded unless they are in a label
%EDITTABLE{}% statements on the same line in the source
select,1,%<nop>X%,%<nop>Y%
EditTablePlugin.zip in your twiki installation directory. Content:
| File: | Description: |
|---|---|
data/TWiki/EditTablePlugin.txt | Plugin topic |
data/TWiki/EditTablePlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/EditTablePlugin.pm | Plugin Perl module |
pub/TWiki/EditTablePlugin/edittable.gif | Edit table button image |
pub/TWiki/EditTablePlugin/*.gif | Screenshots and Mishoo DHTML calendar images |
pub/TWiki/EditTablePlugin/README | Mishoo DHTML calendar README |
pub/TWiki/EditTablePlugin/release-notes.html | Mishoo DHTML calendar release notes |
pub/TWiki/EditTablePlugin/*.js | Mishoo DHTML calendar JavaScript files |
pub/TWiki/EditTablePlugin/calendar-system.css | Mishoo DHTML calendar stylesheet |
viewauth script to authenticate the user. As described in TWikiAccessControl, copy the view script to viewauth (or better, create a symbolic link) and add viewauth to the list of authenticated scripts in the .htaccess file.
| Plugin Author: | TWiki:Main/PeterThoeny |
| Plugin Version: | 01 Aug 2004 |
| Change History: | |
| 01 Aug 2004: | Fixed bug where edittable did not work if at the end of a topic |
| 07 Apr 2004: | Fixed bug where two tables got updated when you edit and save a table included into a topic containing other edit tables |
| 02 Mar 2004: | Default for %EDITCELL{editbutton}% is EDITBUTTON preference |
| 27 Feb 2004: | Added QUIETSAVE setting and quietsave parameter; image for Edit button |
| 18 Feb 2004: | Doc fixes; allow edit button anywhere in a cell not just at the end of a cell |
| 17 Feb 2004: | Added per cell definition of edit field types with %EDITCELL{}% variable; added headerislabel and editbutton parameters |
| 20 Dec 2003: | Fixed bug where calendar did not work after adding a row (TWiki:Main/PaulineCheung); added all language files of Mishoo DHTML calendar 0.9.5 |
| 13 Dec 2003: | Added CHANGEROWS, JSCALENDARDATEFORMAT, JSCALENDARLANGUAGE, JSCALENDAROPTIONS settings |
| 16 Oct 2003: | small typo fixed (garbled if ---+ header on top) |
| 15 Oct 2003: | new date field type with javascript calendar - CN |
| 14 Oct 2003: | docfix: the documentation page was an old one - CN |
| 13 Oct 2003: | bugfix: %-vars in select were resetted to first on add/del row - CN |
| 18 Sep 2003: | incompatibility: changed default of changerows to on; support for %-vars, Quiet save for saving without notification; all other fixes in Dev topic integrated - CN |
| 08 Nov 2002: | Prevent variable expansion in label text; added escape characters |
| 27 Jun 2002: | New helptopic parameter |
| 26 Jun 2002: | Support for variables in included EDITTABLE parameters; fixed problem with HTML in cells |
| 21 May 2002: | Added fixed label format; new changerows="add" parameter |
| 27 Apr 2002: | Fixed bug where text after a double quote in a cell disappeared |
| 18 Apr 2002: | Fixed bug where table was breaking when pasting multiple lines into an edit field using Netscape on Unix |
| 08 Apr 2002: | Check for change permission and edit lock of topic |
| 05 Apr 2002: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | http://dynarch.com/mishoo/calendar.eplMishoo DHTML calendar (version 0.9.5 preinstalled); TWiki version 01 Feb 2003 or later |
| Perl Version: | 5.0 |
| TWiki:Plugins/Benchmark: | GoodStyle 98%, FormattedSearch 98%, EditTablePlugin 95% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/EditTablePlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/EditTablePluginDev |
TWiki/Plugins/EmptyPlugin.pm to <name>Plugin.pm and customize the plugin.
<name>Plugin topic in the TWiki web. Do so by visiting http://TWiki.org/cgi-bin/view/Plugins/ and starting a new topic to get the default plugin topic text (don't save the topic). Customize your plugin topic to your needs.
%<plugin>_<setting>%, i.e. %EMPTYPLUGIN_SHORTDESCRIPTION%
data/debug.txt)
| Plugin Author: | TWiki:Main.AndreaSterbini, TWiki:Main.PeterThoeny |
| Plugin Version: | 21 Mar 2003 |
| Change History: | |
| 21 Mar 2004: | Added afterSaveHandler |
| 14 Jul 2001: | Changed to plug&play |
| 27 Feb 2001: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.0 |
| TWiki:Plugins/Benchmark: | GoodStyle 99%, FormattedSearch 99%, EmptyPlugin 99% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/EmptyPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/EmptyPluginDev |
Attach link at the bottom of the page. The Attach screen lets you browse for a file, add a comment, and upload it. The uploaded file will show up in the #FileAttachmentTableFile Attachment table.
*.php files are renamed to *.php.txt so that no one can place code that would be read in a .php file.
%ATTACHFILESIZELIMIT% variable of the TWikiPreferences, currently set at 10000 KB.
Manage on the Attachment to be moved.
Move. The attachment and its version history are moved. The original location is stored as TWikiDocumentation#Meta_Data_Definitiontopic Meta Data.
Trash, topic TrashAttachment.
Attach file: Sample.txt
Edit topic and enter: %ATTACHURL%/Sample.txt
Preview: %ATTACHURL%/Sample.txt text appears as: http://www.auai.org/twiki/pub/TWiki/FileAttachment/Sample.txt, a link to the text file.
%PUBURL%/%WEB%/OtherTopic/Sample.txt (if it"s within the same web)
%PUBURL%/Otherweb/OtherTopic/Sample.txt (if it"s in a different web)
Attach file: Sample.txt
Edit topic and write text: %INCLUDE{"%ATTACHURL%/Sample.txt"}%
Attach file: Smile.gif
Edit topic and write text: %ATTACHURL%/Smile.gif
Preview: text appears as
, an image.
Attachment Action Size Date Who Comment Sample.txt
manage 0.1 K 22 Jul 2000 - 19:37 PeterThoeny Just a sample Smile.gif
manage 0.1 K 22 Jul 2000 - 19:38 PeterThoeny Smiley face
Manage link takes you to a new page that looks like this:
h means the attachment is hidden, it isn"t listed when viewing a topic.
Hide file checkbox, then click Change properties.
%SEARCH{...}% variable documented in TWikiVariables has a fixed format for the search result, that is, a table consisting of topic names and topic summaries. Use the format="..." parameter to specify a customized format of the search result. The string of the format parameter is typically a bullet list or table row containing variables (such as %SEARCH{ "food" format="| $topic | $summary |" }%).
header="..." parameter
Use the header parameter to specify the header of a search result. It should correspond to the format of the format parameter. This parameter is optional. header="| *Topic:* | *Summary:* |"
2. format="..." parameter
Use the format parameter to specify the format of one search hit.
format="| $topic | $summary |"
Variables that can be used in the format string:
| Name: | Expands To: |
|---|---|
$web | Name of the web |
$topic | Topic name |
$topic(20) | Topic name, "- " hyphenated each 20 characters |
$topic(30, -<br />) | Topic name, hyphenated each 30 characters with separator "-<br />" |
$topic(40, ...) | Topic name, shortended to 40 characters with "..." indication |
$parent | Name of parent topic; empty if not set |
$parent(20) | Name of parent topic, same hyphenation/shortening like $topic() |
$text | Formatted topic text. In case of a multiple="on" search, it is the line found for each search hit. |
$locked | LOCKED flag (if any) |
$date | Time stamp of last topic update, e.g. 12 Aug 2013 - 20:57 |
$isodate | Time stamp of last topic update, e.g. 2013-08-12T20:57Z |
$rev | Number of last topic revision, e.g. 1.4 |
$username | Login name of last topic update, e.g. jsmith |
$wikiname | Wiki user name of last topic update, e.g. JohnSmith |
$wikiusername | Wiki user name of last topic update, like Main.JohnSmith |
$createdate | Time stamp of topic revision 1.1 |
$createusername | Login name of topic revision 1.1, e.g. jsmith |
$createwikiname | Wiki user name of topic revision 1.1, e.g. JohnSmith |
$createwikiusername | Wiki user name of topic revision 1.1, e.g. Main.JohnSmith |
$summary | Topic summary |
$formname | The name of the form attached to the topic; empty if none |
$formfield(name) | The field value of a form field; for example, $formfield(TopicClassification) would get expanded to PublicFAQ. This applies only to topics that have a TWikiForm |
$formfield(name, 10) | Form field value, "- " hyphenated each 10 characters |
$formfield(name, 20, -<br />) | Form field value, hyphenated each 20 characters with separator "-<br />" |
$formfield(name, 30, ...) | Form field value, shortended to 30 characters with "..." indication |
$pattern(reg-exp) | A regular expression pattern to extract some text from a topic (does not search meta data; use $formfield instead). In case of a multiple="on" search, the pattern is applied to the line found in each search hit.• Specify a RegularExpression that covers the whole text (topic or line), which typically starts with .*, and must end in .* • Put text you want to keep in parenthesis, like $pattern(.*?(from here.*?to here).*) • Example: $pattern(.*?\*.*?Email\:\s*([^\n\r]+).*) extracts the email address from a bullet of format * Email: ... • This example has non-greedy .*? patterns to scan for the first occurance of the Email bullet; use greedy .* patterns to scan for the last occurance • Limitation: Do not use .*) inside the pattern, e.g. $pattern(.*foo(.*)bar.*) does not work, but $pattern(.*foo(.*?)bar.*) does • Note: Make sure that the integrity of a web page is not compromised; for example, if you include an HTML table make sure to include everything including the table end tag |
$n or $n() | New line |
$nop or $nop() | Is a "no operation". This variable gets removed; useful for nested search |
$quot | Double quote ("). Alternatively write \" to escape it |
$percnt | Percent sign (%) |
$dollar | Dollar sign ($) |
%SEARCH{ "FAQ" scope="topic" nosearch="on" nototal="on" header=" * *Topic: Summary:*" format=" * [[$topic]]: $summary" }%
To get this:
TopicClassification field, an OperatingSystem field and an OsVersion field we could write:
| *Topic:* | *OperatingSystem:* | *OsVersion:* | %SEARCH{ "[T]opicClassification.*?value=\"[P]ublicFAQ\"" scope="text" regex="on" nosearch="on" nototal="on" format="| [[$topic]] | $formfield(OperatingSystem) | $formfield(OsVersion) |" }%
To get this:
| Topic: | OperatingSystem: | OsVersion: |
|---|---|---|
| IncorrectDllVersionW32PTH10DLL | OsWin | 95/98 |
| WinDoze95Crash | OsWin | 95 |
%SEARCH{ "__Back to\:__ TWikiFAQ" scope="text" regex="on" nosearch="on" nototal="on" header="TWiki FAQs:" format=" * $pattern(.*?FAQ\:[\n\r]*([^\n\r]+).*) [[$topic][Answer...]]" }%
To get this:
TWiki FAQs:
%SEARCH{ "culture" format=" * $topic is referenced by: (list all references)" nosearch="on" nototal="on" }%
%SEARCH{ "(topic found in first search)" format="$topic" nosearch="on" nototal="on" separator=", " }%
$percnt to escape the leading percent of the second search
\" to escape the double quotes
$dollar to escape the $ of $topic
$nop to escape the }% sequence
%SEARCH{ "culture" format=" * $topic is referenced by:$n * $percntSEARCH{ \"$topic\" format=\"$dollartopic\" nosearch=\"on\" nototal=\"on\" separator=\", \" }$nop%" nosearch="on" nototal="on" }%
To get this:
$dollarpercntSEARCH{ for level three, $dollardollarpercntSEARCH{ for level four, etc.
%SEARCH{ "\.*" scope="topic" regex="on" nosearch="on" nototal="on" order="modified" reverse="on" format="| [[$topic]] | $wikiusername | $date |" limit="7" }%
To get this:
| TWikiTemplates | MarkCrowley | 16 Dec 2009 - 21:00 |
| NewUserTemplate | MarkCrowley | 16 Dec 2009 - 20:54 |
| TWikiRegistration | MarkCrowley | 16 Dec 2009 - 20:31 |
| WebBottomBar | MarkCrowley | 15 Jan 2008 - 22:26 |
| WebTopBar | MarkCrowley | 06 Jan 2007 - 23:07 |
| ResetPassword | MarkCrowley | 11 Jul 2006 - 15:09 |
| ChangePassword | MarkCrowley | 11 Jul 2006 - 15:07 |
%CALC{$SET(weekold, $TIMEADD($TIME(), -7, day))}% %SEARCH{ "." scope="topic" regex="on" nosearch="on" nototal="on" order="modified" reverse="on" format="$percntCALC{$IF($TIME($date) < $GET(weekold), <nop>, | [[$topic]] | $wikiusername | $date | $rev |)}$percnt" limit="100" }%
weekold variable to the serialized date of exactly one week ago
$percnt makes sure that the CALC gets executed once for each search hit
weekold date
<nop> is returned, which gets removed at the end of the TWiki rendering process
%URLPARAM{"..."}% variable. Example:
Write this:
<form action="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/TWiki/FormattedSearch">
Find Topics:
<input type="text" name="q" size="32" value="%URLPARAM{"q"}%" />
<input type="submit" value="Search" />
</form>
Result:
%SEARCH{ search="%URLPARAM{"q"}%" format=" * $web.$topic: %BR% $summary" nosearch="on" }%
To get this:
Result:
Number of topics: 0
-- TWiki:Main.PeterThoeny - 26 Jul 2004-- Main.TWikiGuest - 12 Aug 2013
-- [[Main.TWikiGuestZXQ - 12 Aug 2013
* Initials: ZXQ to your TWikiGuesthome? page.
Contributors: at the end of the page
http://etcete.ra/... - it"ll be clear to anyone where they"re headed on click.
01 Sep 2003 or 2003/09/01 is preferred. It"s clearer than the xx/xx/xx format, where a date like 9/1/01 can mean either Jan or Sep, depending on the local conventions of the readers. For months, use the first three letters: Jan, Feb, Mar, Apr,...
Edit on the lower toolbar. To see earlier versions, click More, then check Raw text format and click View revision. A bit of HTML experience can"t hurt, but you"ll soon see with TWikiShorthand how far that is from necessary.
%INCLUDE{...}% Variable %INCLUDE{...}% variable to embed the content of another topic or web page inside a UAIWiki topic. The whole content or only parts of a page can be included. If needed, set a proxy server in TWikiPreferences.
%INCLUDE{ "page" pattern="reg-exp" rev="1.2" }%
"page": %INCLUDE{"WebNotify"}%
Web.Topic name specifying a topic in another web, e.g., %INCLUDE{"TWiki.SiteMap"}%
http protocol, domain name and optional port number, e.g., %INCLUDE{"http://twiki.org:80/index.html"}%. Supported content types are text/html and text/plain. The full page is included by default, but the HTML header and scripts are stripped in case it is a web page.
pattern="reg-exp": '^') to end and contains the text you want to keep in parenthesis, e.g., pattern="^.*?(from here.*?to here).*". You need to make sure that the integrity of a web page is not compromised; for example, if you include a table, make sure to include everything including the table end tag.
rev="1.x": %STARTINCLUDE%, %STOPINCLUDE% and/or a pattern parameter. A pattern will only search between %STARTINCLUDE% and %STOPINCLUDE%.
<pre>
%INCLUDE{"http://domain/~qa/v1.1/REDTest.log.txt"}%
</pre>
%INCLUDE{"http://www.google.com/robots.txt"}%
Tokyo: %INCLUDE{"http://TWiki.org/cgi-bin/xtra/tzdate?tz=Asia/Tokyo" pattern="^.*<\!--tzdate:date--<(.*?)<\!--/tzdate:date-->.*"}%</b<&/code>
*_text_* as bold italic text.
"$SUM( $ABOVE() )" to tables located in UAIWiki topics.
ExternalSite:Page text to external sites based on aliases defined in the InterWikis topic
:-) for
or :cool: for
| earlyInitPlugin | earlyInitPlugin | ||
| initPlugin | initPlugin | TWiki::Plugins::DefaultPlugin::initPlugin TWiki::Plugins::SpreadSheetPlugin::initPlugin TWiki::Plugins::CommentPlugin::initPlugin TWiki::Plugins::EditTablePlugin::initPlugin TWiki::Plugins::InterwikiPlugin::initPlugin TWiki::Plugins::LatexModePlugin::initPlugin TWiki::Plugins::RenderListPlugin::initPlugin TWiki::Plugins::SlideShowPlugin::initPlugin TWiki::Plugins::SmiliesPlugin::initPlugin TWiki::Plugins::TablePlugin::initPlugin | |
| initializeUserHandler | initializeUserHandler | ||
| registrationHandler | registrationHandler | ||
| beforeCommonTagsHandler | beforeCommonTagsHandler | ||
| commonTagsHandler | commonTagsHandler | TWiki::Plugins::DefaultPlugin::commonTagsHandler TWiki::Plugins::SpreadSheetPlugin::commonTagsHandler TWiki::Plugins::CommentPlugin::commonTagsHandler TWiki::Plugins::EditTablePlugin::commonTagsHandler TWiki::Plugins::LatexModePlugin::commonTagsHandler TWiki::Plugins::SlideShowPlugin::commonTagsHandler TWiki::Plugins::SmiliesPlugin::commonTagsHandler | |
| afterCommonTagsHandler | afterCommonTagsHandler | ||
| startRenderingHandler | startRenderingHandler | TWiki::Plugins::DefaultPlugin::startRenderingHandler TWiki::Plugins::InterwikiPlugin::startRenderingHandler TWiki::Plugins::RenderListPlugin::startRenderingHandler | |
| outsidePREHandler | outsidePREHandler | TWiki::Plugins::DefaultPlugin::outsidePREHandler TWiki::Plugins::SmiliesPlugin::outsidePREHandler TWiki::Plugins::TablePlugin::outsidePREHandler | |
| insidePREHandler | insidePREHandler | ||
| endRenderingHandler | endRenderingHandler | TWiki::Plugins::EditTablePlugin::endRenderingHandler TWiki::Plugins::LatexModePlugin::endRenderingHandler TWiki::Plugins::TablePlugin::endRenderingHandler | |
| beforeEditHandler | beforeEditHandler | ||
| afterEditHandler | afterEditHandler | ||
| beforeSaveHandler | beforeSaveHandler | ||
| afterSaveHandler | afterSaveHandler | ||
| beforeAttachmentSaveHandler | beforeAttachmentSaveHandler | ||
| afterAttachmentSaveHandler | afterAttachmentSaveHandler | ||
| writeHeaderHandler | writeHeaderHandler | ||
| redirectCgiQueryHandler | redirectCgiQueryHandler | ||
| getSessionValueHandler | getSessionValueHandler | ||
| setSessionValueHandler | setSessionValueHandler | ||
| renderFormFieldForEditHandler | renderFormFieldForEditHandler | ||
| renderWikiWordHandler | renderWikiWordHandler | ||
NoneNote: The diagnostics are provided by the
%FAILEDPLUGINS% variable
Related Topics: TWikiPlugins, TWikiPreferences
-- TWiki:Main.MikeMannix - 12 May 2002 view.tmpl (in the templates directory). In the HTML at the top, the body tag has the page background hardcoded to white bgcolor="#ffffff". You can change that color value to new variable. First, define a new preferences variable in the site-level TWikiPreferences, e.g. * Set =PAGEBGCOLOR = #d0d0d0, then edit the view.tmpl template file and change bgcolor="#ffffff" to bgcolor="%PAGEBGCOLOR%". If you want you can set the page background color individualy per web, simple add a * Set =PAGEBGCOLOR = #d0d0d0 bullet to the WebPreferences to overload the site-level preferences. (Without font color control, you"ll have to stick to light colors.
WebIndex with WebTopicList, and save.
Edit is disabled. Instead, go to More and view the topic in raw format.
HELP, WARN etc. You can also add your own images, e.g. a NEW, or a ASK to ask question.
of course) can help them. On HELP pages, most people tend to jump around looking for answers rather than reading through - icons help point out the most important bits.
How to create your own set of icons:
Preferences topic: TWikiPreferences for site-wide use, or WebPreferences for use in one web only.
Attach a graphic (the ones on this page are 16x16 pixels), then define a Preference Variable with a short but recognizable name.
%TEST% to get %TEST% - see how it"s WebPreferences#DefineIcondone.
---++ , see TWikiShorthand).
For example, you may want to put all your custom variables in TWikiPreferences right on top of the page, and generate table of contens, like:
w3m pager/browser for Linux. This is a text based version similar to lynx but it includes text editor features and a configurable command set to act like lynx if you are more accustomed to it.
__Here"s a list of topics I"ve been involved in recently:__
---++++ Codev
%SEARCH{ "InstantEnhancements" web="Codev" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" order="modified" reverse="on" limit="20"}%
---++++ Support
%SEARCH{ "InstantEnhancements" web="Support" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" order="modified" reverse="on" limit="20"}%
---++++ TWiki
%SEARCH{ "InstantEnhancements" web="TWiki" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" order="modified" reverse="on" limit="10"}%
End Copy
The SEARCH variable has many more formatting options, see TWikiVariables.
<table>
%SEARCH{ "\.*" scope="topic" regex="on" nosearch="on" nototal="on" order="modified" reverse="on" format="<tr><td> $topic$topic </td><td> $wikiusername </td><td> $date </td></tr>" limit="15" }%
</table>
Edit.
Set ALLOWTOPICCHANGE = Main.UserName, Main.GroupName
<!-- on the line _above the setting, and --> on the line below.
Set WIKILOGOIMG = %PUBURL%/TWiki/MyLogo/mylogo.gif
[Add] button, and select the form if it isn"t alredy enabled. Then, click the title to get to the actual form, [Edit], and carefully change values, probably basic page classifications. You"ll get some increased value, and hands-on experience with TWikiForms, without having to read up about them first. view.tmpl (in the templates directory) for some dramatic effects. The top of the template is mostly regular HTML with some variables. Open up some space in the <head> area, and you can drop in reliable JavaScripts - a pop-up window script, for example - or tag it as an external script.
ExternalSite:Page it will be linked automatically to the page on the external site. The link points to the URL corresponding to the ExternalSite alias below, concatenated to the Page you choose. Example: Type Wiki:RecentChanges to get Wiki:RecentChanges, the RecentChanges page at the original Wiki site.
| External site alias | URL | Tooltip help text |.
$page variables; the variable gets expanded to the page name.
<nop> escape code), no internal WikiWord links, and no external links. Hint: Escape 'WikiWords' and '$page'.
| Alias: | URL: | Tooltip Text: |
|---|---|---|
| Acronym | http://www.acronymfinder.com/af-query.asp?Acronym=$page&String=exact | Look up '$page' on Acronym Finder site |
| Dictionary | http://www.dictionary.com/cgi-bin/dict.pl?term= | Look up '$page' at Dictionary.com |
| http://google.com/search?q= | Search for '$page' on Google | |
| Group | http://groups.google.com/groups?hl=en&safe=off&group= | News group '$page' at Google.com |
| ISBN | http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38704253&bfpid= | Book with ISBN#$page (One click patent? Say no to Amazon!) |
| RFC | http://www.faqs.org/rfcs/rfc$page.html | IETF RFC #$page |
| Alias: | URL: | Tooltip Text: |
|---|---|---|
| Advogato | http://www.advogato.org/ | '$page' on Advogato community site (with peer review) |
| C2find | http://c2.com/cgi/wiki?FindPage&value= | Search '$page' on the original 'WikiWikiWeb' site |
| DolphinWiki | http://www.object-arts.co.uk/wiki/html/Dolphin/$page.htm | '$page' on Dolphin Wiki site |
| FoxWiki | http://fox.wikis.com/wc.dll?Wiki~ | '$page' on Fox Wiki site |
| HammondWiki | http://www.dairiki.org/HammondWiki/index.php3? | '$page' on 'HammondWiki' site |
| LegoWiki | http://www.object-arts.com/wiki/html/Lego-Robotics/ | '$page' on 'LegoWiki' site |
| MbTest | http://www.usemod.com/cgi-bin/mbtest.pl? | '$page' on 'UseMod' Wiki variant |
| MeatBall | http://www.usemod.com/cgi-bin/mb.pl? | '$page' on 'MeatBall' site, a 'UseMod' Wiki variant |
| MoinMoin | http://moin.sourceforge.net/cgi-bin/moin/moin/ | '$page' on 'MoinMoin' Wiki site |
| MuWeb | http://www.dunstable.com/scripts/MuWebWeb? | '$page' on 'MuWeb' site |
| OrgPatterns | http://www.easycomp.org/cgi-bin/OrgPatterns? | '$page' on Organizational Patterns site |
| PhpWiki | http://phpwiki.sourceforge.net/phpwiki/index.php3? | '$page' on Wiki site written in PHP |
| PolitizenWiki | http://www.politizen.com/wiki.asp? | '$page' on 'PolitizenWiki' site |
| PPR | http://c2.com/cgi/wiki? | '$page' on the original 'PortlandPatternRepository' site |
| PyWiki | http://www.voght.com/cgi-bin/pywiki? | '$page' on Wiki site written in Python |
| Squeak | http://minnow.cc.gatech.edu/squeak/ | '$page' on Squeak Smalltalk Wiki |
| TWiki | http://twiki.org/cgi-bin/view/ | '$page' on TWiki.org |
| UseMod | http://www.usemod.com/cgi-bin/wiki.pl? | '$page' on 'UseMod' Wiki site |
| VisualWorks | http://wiki.cs.uiuc.edu/VisualWorks/ | '$page' on 'VisualWorks' site |
| Wiki | http://c2.com/cgi/wiki? | '$page' on the original 'WikiWikiWeb' site |
| Wikipedia | http://en.wikipedia.org/wiki/ | '$page' on 'Wikipedia' |
| ZWiki | http://joyful.com/zwiki/ | '$page' on Zope's Wiki |
ExternalSite:Page text to external sites based on aliases defined in the InterWikis topic. This plugin is inspired by UseMod Wiki's inter-wiki links, http://www.usemod.com/cgi-bin/wiki.pl?InterWiki.
ExternalSite:Page to create a link that points to the Page on the ExternalSite server.
ExternalSite aliases are defined in the InterWikis topic.
TWikisite:Webname/SomePage
%<plugin>_<setting>%, for example, %INTERWIKIPLUGIN_SHORTDESCRIPTION%
ExternalSite:Page text to external sites based on aliases defined in the InterWikis topic
0 or 1, default is 0)
data/debug.txt)
InterwikiPlugin.zip in your TWiki installation directory. Content:
| File: | Description: |
|---|---|
data/TWiki/InterwikiPlugin.txt | Plugin topic |
data/TWiki/InterWikis.txt | Link rules topic for inter-site links |
lib/TWiki/Plugins/InterwikiPlugin.pm | Plugin Perl module |
| Plugin Author: | TWiki:Main.AndreaSterbini, TWiki:Main.PeterThoeny |
| Plugin Version: | 25 Aug 2004, 1.005 |
| Change History: | |
| 25 Aug 2004: | Updated InterWikis link rules (no code change) |
| 09 Mar 2004: | Internal changes: Use only official TWiki::Func Plugin API; for increased speed, moved Interwiki link handling from outsidePREHandler to startRenderingHandler |
| 16 Feb 2004: | Support [[Site:Page][label]] Interwiki links (PTh); use TWiki::Func interface for I18N regular expressions (Walter Mundt) |
| 18 Jan 2003: | Allow number sign # in Page name (PTh) |
| 31 Aug 2002: | Allow percent sign % in page name (PTh) |
| 27 Jul 2001: | Allow numbers 0-9 in site name |
| 26 Jul 2001: | Fixed alternating missed link bug due to greedy $postfixPattern (fix by Richard Donkin) |
| 14 Jul 2001: | Changed to plug & play |
| 16 Jun 2001: | Made tooltips optional; prevent Module::Sub type of link |
| 12 Jun 2001: | Added optional tool tips (IE only); added the link rules topic name variable; added flexible link patterns; optional $page in URL |
| 10 Jun 2001: | Changed rules topic to table-based syntax |
| 20 Feb 2001: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.0 |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/InterwikiPlugin (TWiki:Plugins/InterwikiPlugin) |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/InterwikiPluginDev (TWiki:Plugins/InterwikiPluginDev) |
png images from the mark up. These images are then included in the rendered TWiki page. The first time a particular image is generated, there may be a significant lag in page rendering as the images are generated on the server. Once rendered, the image is saved as an attached file for the page, so subsequent viewings will not require re-renders. When you remove a math expression from a page, its image is deleted.
This plugin expands the functionality provided by the (older) TWiki:Plugins.MathModePlugin.
\int_{-\infty}^\infty e^{-\alpha x^2} dx = \sqrt{\frac{\pi}{\alpha}} will render as an image
%BEGINLATEX%
\begin{<environment>}
_latex markup_
\end{<environment>}
%ENDLATEX%
Typically, the declared <environment> will be displaymath, although there is no limitation.
Additional options can be included to modify the rendered result. These include
| option | possible values | default | description |
|---|---|---|---|
| inline | 0 or 1 | 0 | controls inline vs ownline rendering |
| label | alpha-numeric | --- | produces a linkable equation number for ownline markup |
| density | positive integer | 116 (set below) | controls rendered font size |
| scale | positive number | 1.0 (set below) | sets post-rendered image scaling |
| gamma | positive number | 0.6 (set below) | controls rendered font darkness |
| color | --- | 'black' | sets foreground font color (details below) |
<label> can be generated using %REFLATEX{<label>}%.
eqn:, fig:, and tbl: as the first four characters in any declared label.
color.sty
package in the intermediate latex file.
Latex is able to render colors defined in 3 color spaces: gray, rgb, and
cmyk. A limited number of colors are predefined in Latex. These include:
| color | color space | color space value |
|---|---|---|
black | gray | 0 |
white | gray | 1 |
red | rgb | 1,0,0 |
green | rgb | 0,1,0 |
blue | rgb | 0,0,1 |
cyan | cmyk | 1,0,0,0 |
magenta | cmyk | 0,1,0,0 |
yellow | cmyk | 0,0,1,0 |
* #Set PREAMBLE = \usepackage{color} \definecolor{Aqua}{rgb}{0,1,1}
or as a multi-line declaration, using the tags:
%BEGINLATEXPREAMBLE% and %ENDLATEXPREAMBLE%
For convenience, the following TWiki colors are pre-defined in the LatexModePlugin
\definecolor{Red}{rgb}{1,0,0}
\definecolor{Blue}{rgb}{0,0,1}
\definecolor{Yellow}{rgb}{1,1,0}
\definecolor{Orange}{rgb}{1,0.4,0}
\definecolor{Pink}{rgb}{1,0,1}
\definecolor{Purple}{rgb}{0.5,0,0.5}
\definecolor{Teal}{rgb}{0,0.5,0.5}
\definecolor{Navy}{rgb}{0,0,0.5}
\definecolor{Aqua}{rgb}{0,1,1}
\definecolor{Lime}{rgb}{0,1,0}
\definecolor{Green}{rgb}{0,0.5,0}
\definecolor{Olive}{rgb}{0.5,0.5,0}
\definecolor{Maroon}{rgb}{0.5,0,0}
\definecolor{Brown}{rgb}{0.6,0.4,0.2}
\definecolor{Black}{gray}{0}
\definecolor{Gray}{gray}{0.5}
\definecolor{Silver}{gray}{0.75}
\definecolor{White}{gray}{1}
One does not need to declare a preamble to use these colors.
This is an example of the The singular value decomposition of a matrix |
| density = 116, scale = 2.0 : | |
| density = 232, scale = 1.0 : | |
%<plugin>_<setting>%, i.e. %LATEXMODEPLUGIN_SHORTDESCRIPTION%
data/debug.txt)
EQN, FIG, TBL, to override the counter reset. (i.e. if * Set EQN = 3 is declared in a topic, the first labeled equation will be given the number 4).
Digest::MD5 and Image::Info perl modules.
LatexModePlugin.zip file from the Plugin web
| File: | Description: |
|---|---|
lib/TWiki/Plugins/LatexModePlugin.pm | Plugin Perl module |
data/TWiki/LatexModePlugin.txt | Plugin topic and documentation |
pub/TWiki/LatexModePlugin/expl-v1.4.png | example image of rendered latex |
latex, dvips and convert
latex2html, consequently
latex2html is eliminated, which was a source of many problems in the TWiki:Plugins.MathModePlugin.
preview screen, but not during the standard view. The motivation for this is that, in general, authors care about the error but readers do not.
| Plugin Author: | TWiki:Main.ScottHoge |
| Plugin Version: | 11 Nov 2005 (v 2.2) |
| Change History: | |
| 11 Nov 2005 (v 2.2) | more mods for GenPDFLatexAddOn?: protect newlines, moved float handler, moved float label checker |
| 15 Oct 2005 (v 2.1) | minor modifications for GenPDFLatexAddOn? support |
| unreleased (v 2.0) | Major rewrite for Dakar |
| 30 Sep 2005 (v 1.41) | relaxed the scrubing a little bit... previous version caused problems with REFLATEX |
| 29 Sep 2005 (v 1.4) | more robust scrubing of convert input parameters. errors on save now reported. |
| 5 Sep 2005 (v 1.3) | added image scale parameter, color rendering, and preamble hooks |
| 22 Aug 2005 (v 1.2) | Forked from the TWiki:Plugins.MathModePlugin by TWiki:Main.GraemeLufkin |
| TWiki Dependency: | $TWiki::Plugins::VERSION 1.025 |
| CPAN Dependencies: | Digest::MD5, File::Basename, Image::Info |
| Other Dependencies: | A working installation of latex and convert |
| Perl Version: | 5.8.0 |
| License: | GPL (GNU General Public License) |
| TWiki:Plugins/Benchmark: | GoodStyle 100%, FormattedSearch 100%, LatexModePlugin 100% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/LatexModePlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/LatexModePluginDev |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/LatexModePluginAppraisal |
| \alpha | | \theta | | o | | \tau | |
| \beta | | \vartheta | | \pi | | \upsilon | |
| \gamma | | \varpi | | \phi | | \xi | |
| \delta | | \kappa | | \rho | | \varphi | |
| \epsilon | | \lambda | | \varrho | | \chi | |
| \varepsilon | | \mu | | \sigma | | \psi | |
| \zeta | | \nu | | \varsigma | | \omega | |
| \eta | |
| \Lambda | | \Sigma | | \Psi | | \Phi | |
| \Delta | | \Xi | | \Upsilon | | \Omega | |
| \Theta | | \Pi | |
| \pm | | \cap | | \diamond | | \oplus | |
| \mp | | \cup | | \bigtriangleup | | \ominus | |
| \times | | \uplus | | \bigtriangledown | | \otimes | |
| \div | | \sqcap | | \triangleleft | | \oslash | |
| \ast | | \sqcup | | \triangleright | | \odot | |
| \star | | \vee | | \lhd | | \bigcirc | |
| \circ | | \wedge | | \rhd | | \dagger | |
| \bullet | | \setminus | | \unlhd | | \ddagger | |
| \cdot | | \wr | | \unrhd | | \amalg | |
| + | | - | |
| \leq | | \geq | | \equiv | | \models | |
| \prec | | \succ | | \sim | | \perp | |
| \preceq | | \succeq | | \simeq | | \mid | |
| \ll | | \gg | | \asymp | | \parallel | |
| \subset | | \supset | | \approx | | \bowtie | |
| \subseteq | | \supseteq | | \cong | | \Join | |
| \sqsubset | | \sqsupset | | \neq | | \smile | |
| \sqsubseteq | | \sqsupseteq | | \doteq | | \frown | |
| \in | | \ni | | \propto | | = | |
| \vdash | | \dashv | | > | | > | |
| : | |
| , | | ; | | \colon | | \ldotp | | \cdotp | |
| \leftarrow | | \longleftarrow | | \uparrow | |
| \Leftarrow | | \Longleftarrow | | \Uparrow | |
| \rightarrow | | \longrightarrow | | \downarrow | |
| \Rightarrow | | \Longrightarrow | | \Downarrow | |
| \leftrightarrow | | \longleftrightarrow | | \updownarrow | |
| \Leftrightarrow | | \Longleftrightarrow | | \Updownarrow | |
| \mapsto | | \longmapsto | | \nearrow | |
| \hookleftarrow | | \hookrightarrow | | \searrow | |
| \leftharpoonup | | \rightharpoonup | | \swarrow | |
| \leftharpoondown | | \rightharpoondown | | \nwarrow | |
| \rightleftharpoons | |
| \ldots | | \cdots | | \vdots | | \ddots | |
| \aleph | | \prime | | \forall | | \infty | |
| \hbar | | \emptyset | | \exists | | \imath | |
| \nabla | | \neg | | \Diamond | | . | |
| \jmath | | \surd | | \flat | | \triangle | |
| \ell | | \top | | \natural | | \clubsuit | |
| \wp | | \bot | | \sharp | | \diamondsuit | |
| \Re | | \backslash | | \heartsuit | | \spadesuit | |
| \Im | | \angle | | \partial | |
| \sum | | \bigcap | | \bigodot | |
| \prod | | \bigcup | | \bigotimes | |
| \coprod | | \bigsqcup | | \bigoplus | |
| \int | | \bigvee | | \biguplus | |
| \oint | | \bigwedge | |
| \arccos | | \cos | | \csc | | \exp | |
| \ker | | \limsup | | \min | | \sinh | |
| \arcsin | | \cosh | | \deg | | \gcd | |
| \lg | | \ln | | \Pr | | \sup | |
| \arctan | | \cot | | \det | | \hom | |
| \lim | | \log | | \sec | | \tan | |
| \arg | | \coth | | \dim | | \inf | |
| \liminf | | \max | | \sin | | \tanh | |
| ( | | ) | | \uparrow | | \Uparrow | |
| [ | | ] | | \downarrow | | \Downarrow | |
| \{ | | \} | | \updownarrow | | \Updownarrow | |
| \lfloor | | \rfloor | | \lceil | | \rceil | |
| \langle | | \rangle | | / | | \backslash | |
| \rmoustache | | \lmoustache | | \rgroup | | \lgroup | |
| \arrowvert | | \Arrowvert | |
| \hat{a} | | \acute{a} | | \bar{a} | |
| \dot{a} | | \breve{a} | | \check{a} | |
| \grave{a} | | \vec{a} | | \ddot{a} | |
| \tilde{a} | |
| \widetilde{abc} | |
| \widehat{abc} | |
| \overleftarrow{abc} | |
| \overrightarrow{abc} | |
| \overline{abc} | |
| \underline{abc} | |
| \overbrace{abc} | |
| \underbrace{abc} | |
| \sqrt{abc} | |
| \sqrt[n]{abc} | |
| \frac{abc}{xyz} | |
Edit link at the bottom of the page.
Trash web.
[More] (bottom right of page) on the topic to be changed, then, in the new screen, on [Rename/move]. You can now rename and/or move/delete in one operation:
Trash to delete a topic.
[Rename/Move]: the topic will be renamed and links to the topic updated as requested.
[Rename/Move].
Rename/Move/Delete - an instruction line and undo link will appear at the bottom of the modified topic. This allows you to revert from the last modification only.
Trash web - they are NOT physically erased from the server. All webs share Trash - in case of a name conflict with a topic already Trash, the user is alerted and asked to choose a new name.
The Trash web should be be cleared periodically, by archiving (saving) the text and RCS files if required (recommended), then deleting them from the Trash directory.
Trash directory is all that's required for maintenance, it's possible to grant Trash admin privileges to multiple users, while strictly limiting server access.
%<nop>METASEARCH{type="topicmoved" web="TWiki" topic="ManagingTopics"
title="This topic used to exist and was moved to: "}%
<pre> and <verbatim> are honoured - no changes are made to text within these areas.
searchrenameview.tmpl. First, matching topics in the current web are listed - matches are to topic. Next, all webs (including the current one) are listed that match web.topic. Because %SEARCH% is used, webs marked in WebPreferences as NOSEARCHALL will not show up in the search for references to the topic being changed.
Changed references are kept are as short as possible, ex: topic is used in preference to web.topic.
ALLOWTOPICCHANGE and ALLOWTOPICRENAME permission for that topic. To alter referring topics, you need change permission. See TWikiAccessControl for information on setting up access permissions.
search can show matches that will not be updated due to case differences. Other mismatches with actual rendered output are also possible as the approaches are so different.
The following shows some limitations of square bracket processing.
-- TWiki:Main.MikeMannix - 27 Dec 2001[[Old Topic]] => [[NewTopic][Old Topic]] [[old topic]] => [[NewTopic][old topic]] [[old t opic]] => not changed [[OldTopic]] => [[NewTopic]]
data/.htpasswd file to delete their entry (only applies if you are using a .htpasswd file)
FredQuimby line from the Main.TWikiUsers topic
ALLOWWEB/ALLOWTOPIC... declarations, if any.data/Main/FredQuimby.txt and data/Main/FredQuimby.txt,v
WEBBGCOLOR, SITEMAPLIST, SITEMAPWHAT, SITEMAPUSETO and NOSEARCHALL. These variables are used to dynamically generate the SiteMap
WIKIWEBLIST. This must be done by hand
UPPER or UPPERlower. A side effect of this is that if you do use a wiki name, %WEB% must be written as <nop>%WEB% or else it will try to link to a non-existing topic of that name
Oldwebname., including the dot so you"ll find references like Oldwebname.SomeTopic
Newwebname.SomeTopic or better yet, to %MAINWEB%.SomeTopic
WIKIWEBLIST variable
twiki/data and rename or remove the web directory
twiki/templates and rename or remove the web directory if present
twiki/pub and rename or remove the web directory if present
%MAINWEB%, default named Main. That means, every WikiName signature - Main.SomeUserName - points to it and would need updating (unless the variable, %MAINWEB%.SomeUserName, is used throughout).
-- TWiki:Main.MikeMannix - 14 Sep 2001 view, preview and edit scripts.
At present support is fairly basic:
| Variable usage: | Comment: |
|---|---|
%META{"form"}% | Show form data, see Form Templates |
%META{"attachments"}% | Show attachments, excluding hidden ones. Options: all="on": Show all attachments i.e. including hidden ones |
%META{"moved"}% | Details of any topic moves |
%META{"parent"}% | Show topic parent. Options: dontrecurse="on": By default recurses up tree, this has some cost. nowebhome="on": Suppress WebHome. prefix="...": Prefix that goes before parents, but only if there are parents, default "". suffix="...": Suffix, only appears if there are parents, default "". separator="...": Separator between parents, default is " > ". |
width: 99% for full window width (default), width: auto to disable.
PatternSkin.zip in your twiki installation directory
pattern and you still don't see the layout as on the screenshot, a few settings in may have been disabled.
Check these variables here:
* %TWIKIWEB%.PatternSkin settings:
* Set TWIKILAYOUTURL = %PUBURL%/%TWIKIWEB%/PatternSkin/layout.css
* Set TWIKISTYLEURL = %PUBURL%/%TWIKIWEB%/PatternSkin/style.css
If this still does not work, contact the administrator who installs skins.
For further troubleshooting and feedback, go to TWiki:Plugins/PatternSkinDev.
layout.css and style.css attachment files for this topic (upload updated versions)
TWIKILAYOUTURL and TWIKISTYLEURL to other attachments, perhaps in another topic (your new skin topic?)
| Description: | Provides a CSS based default look and feel for TWiki - flexible and W3C-compliant |
| Screenshot: | |
| Base Name: | pattern |
| Skin Author: | TWiki:Main/ArthurClemens |
| Skin Version: | 28 Aug 2004 (v1.0.9) |
| History: | |
| 28 Aug 2004: | v.1.0.9 - CAIRO RELEASE VERSION - Removed twikiTopic div from attach template |
| 24 Aug 2004: | v.1.0.8 - Fix for disabled TablePlugin; added plain.pattern.tmpl |
| 23 Aug 2004: | v.1.0.7 - Change to checkboxes in edit and preview screen; removed REVINFO at bottom; style changes |
| 22 Aug 2004: | v.1.0.6b - Removed files from zip that are now part of the TWiki distribution; removed .DS_Store files |
| 17 Aug 2004: | v.1.0.6 - Support for twikiMoved css class |
| 17 Aug 2004: | v.1.0.5 - Fix for not showing SEARCHSTRING |
| 16 Aug 2004: | v.1.0.4 - Fixes search results layout with noheader="on" |
| 14 Aug 2004: | v.1.0.3 - Update to attach template, css fix to edit template |
| 14 Aug 2004: | v.1.0.2 - Fixes print template, table paddings in topics, minor changes to style.css |
| 13 Aug 2004: | v.1.0.1 - Updated /data/TWiki/WebLeftBarPersonalTemplate and style.css |
| 08 Aug 2004: | Initial version (v1.0.0) |
| Dependencies: | |
| Skin Home: | http://TWiki.org/cgi-bin/view/Plugins/PatternSkin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/PatternSkinDev |
| Download: | http://TWiki.org/cgi-bin/view/Plugins/PatternSkin |
twiki: twikiEditPage, twikiTopicAction, etcetera. ID names are not used, only class names, to allow multipe class names. See also: TWikiCss.
<body class="twikiViewPage">. All CSS elements specific to the view template thus can be defined as .twikiViewPage .someClassName.
<body class="twikiNoViewPage twikiEditPage">.
-- TWiki:Main.ArthurClemens - 08 Aug 2004USERLAYOUTURL and USERSTYLEURL settings to your home page
* Personal TWiki.PatternSkin CSS settings
* Set USERLAYOUTURL = %PUBURL%/%MAINWEB%/%WIKINAME%/layout.css
* Set USERSTYLEURL = %PUBURL%/%MAINWEB%/%WIKINAME%/style.css
* *Group* * [[SomeTopic][Link 1]] * [[AnotherTopic][Link 2]] * [[ThirdTopic][Link 3]]The left bar may contain a Go box instead of the top bar. Use:
* <input type="text" name="topic" size="16" />The personal left bar block is formatted like the rest of the left bar.
Add this to layout.css:This CSS is also attached to this topic, LowRes.css. To use this style, add this to your home page:.twikiMain { margin-left:0px; } .twikiLeftBar { margin-left:100%; } .twikiBottomBar { margin-left:1em; margin-right:0; padding:0; }Add this to style.css:.twikiMain { padding-left:1em; padding-right:1em; } .twikiBottomBarContents { padding-left:0em; }
* Personal TWiki.PatternSkin CSS settings
* Set USERLAYOUTURL = %PUBURL%/%SYSTEMWEB%/PatternSkinCustomization/LowRes.css
style.css (.twikiTopBarContents) or change the top bar height in layout.css (look for the comment setting the height of the top bar).
You can also choose to set a background image for the top bar. In style.css, add this to .twikiTopBar:
background-position:top left; background-attachment:fixed; background-repeat:no-repeat; background-image:url(http://absolute_path_to_your_image);and set the correct image file path.
style.css in these places:
html body {
font-family:"Lucida Grande", verdana, lucida, helvetica, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
font-family:"Lucida Grande", helvetica, lucida, verdana, sans-serif;
}
textarea {
font-family:monospace;
}
input, select {
font-family:verdana,arial,sans-serif;
}
.twikiSeparator {
font-family:Arial,sans-serif;
}
.twikiEditPage .twikiSig input {
font-family:monospace;
}
html body {
... (keep)
}
html>body {
... (keep)
}
html body {
font-size:11px;
}
TABLEATTRIBUTES. Without TablePlugin (if not installed, or disabled in TWikiPreferences under DISABLEDPLUGINS), the tables have a default appearance that is hardcoded in Render.pm. Styles of topic text tables are not set in a style sheet. If you want to have control over the design of tables, for instance if you work with a style guide, you should add table styles under .twikiTopic. See for an example below.
.twikiTopic code in style.css:
.twikiTopic table {
border-collapse:collapse;
padding:0px;
border-spacing:0px;
empty-cells:show;
border:0px;
}
.twikiTopic table th {
background-color:#ccc;
padding:0.5em 1em;
}
.twikiTopic table td {
border:1px solid #eee;
}
/* override hardcoded font color */
.twikiTopic table font {
color:#1e5bbd;
}
.twikiTopic table th a:link,
.twikiTopic table th a:visited {
color:#1e5bbd;
text-decoration:none;
}
/* don't show hover background color because we have a table header background */
.twikiTopic table th a:hover {
background-color:transparent;
text-decoration:underline;
border-width:1px;
}
/* no underline if a sort indicator (line) is displayed */
.twikiTopic table th.twikiSortedDescendingCol a:hover,
.twikiTopic table th.twikiSortedAscendingCol a:hover {
text-decoration:none;
}
/* hide sort icons */
.twikiTopic table th img,
.twikiTopic table th a:link img,
.twikiTopic table th a:visited img {
display:none;
}
.twikiForm and .twikiAttachments. Text in these tables is set to wrap, so often the dates are wrapped to two lines. If you prefer to have text on one line and are not disturbed by an extra wide attachment table (or when you screen resolution is big enough), add this code to .twikiAttachments td, .twikiForm td {:
white-space:nowrap;
view use the style .twikiVersatileTable for, as the name says, tables with versatile functions. Versatile tables appear a little diffent in each template page (differences are created using multiple classes). Versatile tables are mostly used to format forms to highlight important parts and to dim less important parts. See style.css for specific settings for each template.
-- TWiki:Main.ArthurClemens - 28 Aug 2004USERSTYLEURL setting to your home page
* Plugins.PatternSkin CSS Settings (change colour palette)
* Set USERSTYLEURL = %PUBURL%/%MAINWEB%/%WIKINAME%/PatternSkinPalette.css
You can also change the colors in a modified version of style.css. See PatternSkinCustomization for instructions.
#e24628 |
header h1 |
||
#990000 |
header h2, h3, h4, h5, h6 |
||
#F3EDE7 |
background header h2 |
||
#8490A1 |
grayed out text .twikiGrayText |
||
#1e5bbd |
link :link, :visited |
||
#b4d5ff |
background hover link (note: the link color becomes #1559B3 on hover) :link:hover |
||
#666666 |
visited link in topic text .twikiTopic a:visited |
||
#7A4707 |
code pre, code, tt |
||
#000000 |
body text |
#f8f8f8 |
page body |
||
#ffffff |
main page .twikiMain |
||
#dddddd |
main page border .twikiMain |
#880000 |
body text in left bar .twikiLeftBar |
||
#22638C |
top border left bar contents .twikiLeftBarContents |
||
#DFEDFD |
personal left bar background .twikiLeftBarPersonal |
||
#cccccc |
personal left bar border .twikiLeftBarPersonal |
#98A2B0 |
action buttons background view page .twikiTopicAction |
||
#ffffff |
action buttons text and links | ||
#cccccc |
action buttons links bottom border |
#22638c |
action buttons background non-view page .twikiTopicAction |
||
#698FA8 |
action buttons links bottom border | ||
#DFEDFD |
action buttons secondary row (top) background .twikiTopicActionSecondary |
||
#22638c |
action buttons secondary row text | ||
#A3BCF1 |
action buttons secondary row links bottom border | ||
#D4E6FC |
action buttons submit options .twikiSubmitOptions |
||
#B6C6D9 |
action buttons submit options border .twikiSubmitOptions |
#041D3A |
submit button .twikiSubmit |
||
#f2f2f2 |
button background .twikiSubmit |
||
#05264D |
submit button .twikiButton |
||
#E8F1F9 |
topic submit button .twikiTopic .twikiSubmit |
||
#B9D6FA |
secondary submit button .twikiTopic .twikiSubmit |
||
#eeeeee |
cancel button .twikiCancel |
#FCFAF7 |
textarea background .twikiEditPage textarea |
||
#888888 |
.twikiChangeFormButton |
||
#E0E9F7 |
edit form header background .twikiEditPage .twikiEditForm th |
||
#F5F7FD |
edit form row background .twikiEditPage .twikiEditForm td |
||
#EFEDEA |
signature area background .twikiEditPage .twikiSig input |
||
#cccccc |
help text .twikiEditPage .twikiHelp |
||
#990000 |
help text code text .twikiEditPage .twikiHelp code |
#F5F7FD |
background .twikiVersatileTable td |
||
#E0E9F7 |
background .twikiVersatileTable th |
||
#ffffff |
background main part .twikiVersatileTable .twikiMainCol |
||
#E9E9E9 |
background .twikiVersatileTable .twikiOldCol |
||
#E9E9E9 |
background .twikiVersatileTable .twikiOldCol |
||
#8490A1 |
help text .twikiHelpCol |
#888e9c |
text color | ||
#000000 |
text color previous attachments .twikiAttachPage .twikiPrevious .twikiAttachments table |
||
#cccccc |
borders | ||
#334455 |
sort indicator line .twikiAttachments a, .twikiForm a |
||
#ffffff |
background color | ||
#f1f1f1 |
background color view page | ||
#DADADA |
sort indicator background .twikiAttachments th.twikiSortedAscendingCol |
#FF3000 |
deleted header background .twikiDiffPage .twikiDiffDeletedHeader, -twikiDiffDeletedMarker |
||
#FFEAE5 |
deleted header background .twikiDiffPage .twikiDiffDeletedText |
||
#3DB234 |
added header background .twikiDiffPage .twikiDiffAddedHeader, -twikiDiffAddedMarker |
||
#EBF7EA |
added header background .twikiDiffPage .twikiDiffAddedText |
||
#98A2B0 |
changed header and row background .twikiDiffPage th.twikiDiffChangedHeader |
||
#dddddd |
.twikiDiffPage .twikiDiffLineNumberHeader |
#9E9E70 |
horizontal line hr |
||
#cccccc |
left bar horizontal line hr |
||
#dddddd |
TOC border .twikiToc |
||
#666666 |
TOC title .twikiToc .twikiTocTitle |
||
#F3EDE7 |
background search results header .twikiSearchResultsHeader, .twikiSearchString |
||
#cccccc |
bottom border search results header .twikiSearchResultsHeader, .twikiSearchString |
||
#ff0000 |
alert .twikiAlert |
||
#990000 |
alert in search results .twikiSearchResults .twikiSummary .twikiAlert |
||
#22638c |
search results in book view, top row background .twikiBookViewList .twikiTopRow |
||
#cccccc |
search results in book view, top row .twikiBookViewList .twikiTopRow |
||
#ffff00 |
broadcast message background .twikiBroadcastMessage |
||
#ff0000 |
broadcast message bold text .twikiBroadcastMessage strong |
| rgb | colour sample |
|---|---|
| #000000 | |
| #041d3a | |
| #05264d | |
| #333333 | |
| #334455 | |
| #880000 | |
| #990000 | |
| #844f0c | |
| #22638c | |
| #666666 | |
| #3db234 | |
| #1559b3 | |
| #1e5bbd | |
| #808080 | |
| #888888 | |
| #e24628 | |
| #698fa8 | |
| #9e9e70 | |
| #888e9c | |
| #8490a1 | |
| #ff0000 | |
| #ff3000 | |
| #98a2b0 | |
| #aaaaaa | |
| #bbbbbb | |
| #a3bcf1 | |
| #cccccc | |
| #ffff00 | |
| #b9d6fa | |
| #dadada | |
| #b4d5ff | |
| #dddddd | |
| #e9e9e9 | |
| #e0e9f7 | |
| #efedea | |
| #f3ede7 | |
| #dfedfd | |
| #eeeeee | |
| #ebf7ea | |
| #efefef | |
| #ffeae5 | |
| #e8f1f9 | |
| #f1f1f1 | |
| #f2f2f2 | |
| #f8f8f8 | |
| #f5f7fd | |
| #fcfaf7 | |
| #ffffff |
| Description: | The plain skin can be used to get the rendered topic text without any page decoration |
| Screenshot: | |
| Base Name: | plain |
| Skin Author: | TWiki:Main/PeterThoeny |
| Skin Version: | 27 Jul 2004 (v1.000) |
| Change History: | |
| 27 Jul 2004: | Initial version (v1.000) |
| Dependencies: | |
| Skin Home: | http://TWiki.org/cgi-bin/view/Plugins/PlainSkin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/PlainSkinDev |
| Description: | The print skin, useful to print pages with a small header and footer |
| Screenshot: | |
| Base Name: | |
| Skin Author: | TWiki:Main/PeterThoeny |
| Skin Version: | 27 Jul 2004 (v1.000) |
| Change History: | |
| 27 Jul 2004: | Initial version (v1.000) |
| Dependencies: | |
| Skin Home: | http://TWiki.org/cgi-bin/view/Plugins/PrintSkin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/PrintSkinDev |
awk, grep, lex, perl, and sed ).
compan(y|ies) | Search for company, companies |
(peter|paul) | Search for peter, paul |
bug* | Search for bug, bugg, buggg or simply bu (a star matches zero or more instances of the previous character) |
bug.* | Search for bug, bugs, bugfix (a dot-star matches zero or more instances of any character) |
[Bb]ag | Search for Bag, bag |
b[aiueo]g | Second letter is a vowel. Matches bag, bug, big |
b.g | Second letter is any letter. Matches also b&g |
[a-zA-Z] | Matches any one letter (but not a number or a symbol) |
[^0-9a-zA-Z] | Matches any symbol (but not a number or a letter) |
[A-Z][A-Z]* | Matches one or more uppercase letters |
[0-9]{3}-[0-9]{2}-[0-9]{4} | US social security number, e.g. 123-45-6789 |
PNG;Chart | Search for topics containing the words PNG and Chart. The ";" and separator is TWiki-specific and is not a regular expression; it is a useful facility that is enabled when regular expression searching is enabled. |
;. Example search for "form" and "template": form;template
site:twiki.org +form +template
A regular expression is a pattern that describes a set of strings. Regular expressions are constructed analogously to arithmetic expressions, by using various operators to combine smaller expressions. The fundamental building blocks are the regular expressions that match a single character. Most characters, including all letters and digits, are regular expressions that match themselves. Any metacharacter with special meaning may be quoted by preceding it with a backslash. A bracket expression is a list of characters enclosed by [ and ]. It matches any single character in that list; if the first character of the list is the caret ^ then it matches any character not in the list. For example, the regular expression [0123456789] matches any single digit. Within a bracket expression, a range expression consists of two characters separated by a hyphen. It matches any single character that sorts between the two characters, inclusive, using the locale's collating sequence and character set. For example, in the default C locale, [a-d] is equivalent to [abcd]. Many locales sort characters in dictionary order, and in these locales [a-d] is typically not equivalent to [abcd]; it might be equivalent to [aBbCcDd], for example. Finally, certain named classes of characters are predefined within bracket expressions, as follows. Their names are self explanatory, and they are [:alnum:], [:alpha:], [:cntrl:], [:digit:], [:graph:], [:lower:], [:print:], [:punct:], [:space:], [:upper:], and [:xdigit:]. For example, [[:alnum:]] means [0-9A-Za-z], except the latter form depends upon the C locale and the ASCII character encoding, whereas the former is independent of locale and character set. (Note that the brackets in these class names are part of the symbolic names, and must be included in addition to the brackets delimiting the bracket list.) Most metacharacters lose their special meaning inside lists. To include a literal ] place it first in the list. Similarly, to include a literal ^ place it anywhere but first. Finally, to include a literal - place it last. The period . matches any single character. The symbol \w is a synonym for [[:alnum:]] and \W is a synonym for [^[:alnum]]. The caret ^ and the dollar sign $ are metacharacters that respectively match the empty string at the beginning and end of a line. The symbols \< and \> respectively match the empty string at the beginning and end of a word. The symbol \b matches the empty string at the edge of a word, and \B matches the empty string provided it's not at the edge of a word. A regular expression may be followed by one of several repetition operators:Two regular expressions may be concatenated; the resulting regular expression matches any string formed by concatenating two substrings that respectively match the concatenated subexpressions. Two regular expressions may be joined by the infix operator |; the resulting regular expression matches any string matching either subexpression. Repetition takes precedence over concatenation, which in turn takes precedence over alternation. A whole subexpression may be enclosed in parentheses to override these precedence rules. The backreference \n, where n is a single digit, matches the substring previously matched by the nth parenthesized subexpression of the regular expression.
? The preceding item is optional and matched at most once. * The preceding item will be matched zero or more times. + The preceding item will be matched one or more times. {n} The preceding item is matched exactly n times. {n,} The preceding item is matched n or more times. {n,m} The preceding item is matched at least n times, but not more than m times.
%RENDERLIST{ <parameters> }% before any bullet list
%TOC%, or the result of a FormattedSearch
"name" ortheme="name" | Select a rendering theme |
focus="any text" | Focus list on a bullet with specified text |
depth="2" | Remove bullets with an indent greater then the depth. The depth is relative to the highlighted bullet in case focus is specified |
<name>_THEME Plugin settings
Set <name>_THEME = tree, <0/1 flag to suppress/show lines of first level>
Set <name>_THEME = icon, <0/1 flag to suppress/show lines of first level>, <icon width>, <icon height>, <spacer graph>, <T-line graph>, <I-line graph>, <L-line graph>, <icon image>
[[][]] links on bullet where text is found
* bullets
Like this
Align continuation lines with leading spaces linke this
myicon.gif, or
globe.gif,
home.gif,
virtualhome.gif,
group.gif,
persons.gif,
virtualpersons.gif,
person.gif,
virtualperson.gif,
email.gif,
trend.gif,
folder.gif,
file.gif,
doc.gif,
image.gif,
pdf.gif,
ppt.gif,
sound.gif,
xls.gif,
zip.gif,
see.gif
icon:myicon Followed by normal bullet text
| You type: | You get: (simulated) | You get: (if installed) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
%RENDERLIST{"thread"}%
* one
* one.a
* one.a.x
* one.b
* one.b.x
continue
* one.b.y
* icon:person Tim
* icon:person Mico
* two
* three
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
%RENDERLIST{"org"}%
* one
* one.a
* one.a.x
* one.b
* one.b.x
continue
* one.b.y
* icon:person Tim
* icon:person Mico
* two
* three
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
%RENDERLIST{ "org" focus="one.b" }%
* one
* one.a
* one.a.x
* one.b
* one.b.x
continue
* one.b.y
* icon:person Tim
* icon:person Mico
* two
* three
|
|
|
%<plugin>_<setting>%, i.e. %RENDERPLUGIN_SHORTDESCRIPTION%
data/debug.txt)
<SOMETHING>_THEME and contain a comma delimited list of render type with parameters:
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
RenderListPlugin.zip in your twiki installation directory. Content:
| File: | Description: |
|---|---|
data/TWiki/RenderListPlugin.txt | Plugin topic |
data/TWiki/RenderListPlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/RenderListPlugin.pm | Plugin Perl module |
pub/TWiki/RenderListPlugin/*.gif | Image files for themes |
| Plugin Author: | TWiki:Main/PeterThoeny |
| Plugin Version: | 21 Mar 2004 (V1.031) |
| Change History: | |
| 21 Mar 2004: | Internal change: Fixed inofficial function call |
| 01 Mar 2004: | Added FILE_THEME and folder/file icons |
| 29 Dec 2003: | Fixed rendering issue if focus bullet contains icon:name; added TREND_THEME |
| 16 Dec 2003: | Specify icons with icon:name syntax |
| 11 Dec 2003: | Added focus and depth parameters |
| 05 Dec 2003: | Fixed rendering issue with IE; added EMAIL_THEME |
| 02 Dec 2003: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/RenderListPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/RenderListPluginDev |
egrep and fgrep commands on your system. Check the $egrepCmd and $fgrepCmd variables in twiki/lib/TWiki.cfg.
Back to: TWikiFAQ
-- TWiki:Main.PeterThoeny - 26 Jan 2001 intranet web service returns all pages that have the three words anywhere in the page
intranet +web +service
"web service"
soap -shampoo
"-nowarn"
"how" and "where", defined in the SEARCHSTOPWORDS setting in the TWikiPreferences
"SOAP", "WSDL", a literal "web service", but not "shampoo",soap +wsdl "web service" -shampoo
keyword: The basic search type
literal: Simple search where text is searched literally
regex: A RegularExpression search for power users
!web service
\!shampoo
"SOAP", "WSDL", a literal "web service", but not "shampoo",soap;wsdl;web service;!shampoo
%SEARCH{}% variable described in TWikiVariables.
SEARCHDEFAULTTTYPE: Default search type for search forms which calls the search script
SEARCHVARDEFAULTTYPE: Default search type for %SEARCH{} variable
SEARCHSTOPWORDS: List of stop words
| Web | UAIWiki Site Map | Use to... |
|---|---|---|
| Main |
The UAIWiki, be sure to see ... | UAI researchers can use to colaborate and inform each other about ongoing research. |
| TWiki |
Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs... | ...discover TWiki details, and how to start your own site. |
| Sandbox |
Sandbox test area with all features enabled. | ...experiment in an unrestricted hands-on web. |
| You can use color coding by web for identification and reference. This table is updated automatically based on WebPreferences settings of the individual webs. Contact uaiwebmaster@gmail.com if you need a separate collaboration web for your team. See also AdminTools. | ||
| Legend of icons: |
|
|
$doLogTopicView, $doLogTopicSave and $doLogTopicUpload in wikicfg.pm are set. This will generate log entries in file twiki/data/log<date>.txt .
twiki/bin/statistics script from a cron job, once a day is recommended. This will update the WebStatistics topics in all webs.
nobody on most systems. Example crontab entry: 0 0 * * * (cd /path/to/TWiki/bin; ./statistics >/dev/null 2>&1)
nobody : Run the utility twiki/bin/geturl in your cron job and specify the URL of the twiki/bin/statistics script as a parameter. Example: 0 0 * * * (cd /path/to/TWiki/bin; ./geturl mydomain.com /urlpath/to/TWiki/bin/statistics >/dev/null 2>&1)
twiki/bin/statistics script can also be executed as a CGI script, just enter the URL in your browser. Examples:
http://mydomain.com/twiki/bin/statistics
http://mydomain.com/twiki/bin/statistics/Main
http://mydomain.com/twiki/bin/statistics/Main?logdate=200001
"---++" heading. There are two modes to view a topic:
%SLIDESHOWSTART%
template parameter to specify your own slide template topic, e.g. %SLIDESHOWSTART{ template="MyOwnSlideTemplate" }%
"---++" heading and add text like paragraphs, bullets, tables and images.
%SLIDESHOWEND%
TEMPLATE setting, or per slide show with the %SLIDESHOWSTART{ template="MyOwnSlideTemplate" }% setting.
| Keyword | What it means |
|---|---|
%SLIDETITLE% | The heading of the slide |
%SLIDETEXT% | The text of the slide |
%SLIDENUM% | The current slide number |
%SLIDEMAX% | The last slide number |
%SLIDENAV% | The navigation buttons for "First", "Previous", "Next" slide |
%SLIDENAVALL% | The navigation buttons for "First", "Previous", "Next", "Last" slide |
%SLIDENAVFIRST% | The navigation button for "First slide" |
%SLIDENAVPREV% | The navigation button for "Previous slide" |
%SLIDENAVNEXT% | The navigation button for "Next slide" |
%SLIDENAVLAST% | The navigation button for "Last slide" |
%STARTINCLUDE% and %STOPINCLUDE% is used for the template.
%<plugin>_<setting>%, i.e. %SLIDESHOWPLUGIN_SHORTDESCRIPTION%
data/debug.txt)
---+++ Comments heading:
|
%SLIDETITLE% | %SLIDENAVNEXT% |
|
|
%SLIDETEXT% |
| %SLIDENAVALL% | Slide %SLIDENUM% of %SLIDEMAX% | COPYRIGHT © 2013 by the contributing authors |
SlideShowPlugin.zip in your twiki installation directory. Content:
| File: | Description: |
|---|---|
data/TWiki/SlideShowPlugin.txt | Plugin topic |
data/TWiki/SlideShowPlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/SlideShowPlugin.pm | Plugin Perl module |
pub/TWiki/*.gif | Various button image files |
| Plugin Author: | TWiki:Main/PeterThoeny |
| Plugin Version: | 21 Mar 2004 (V1.003) |
| Change History: | |
| 21 Mar 2004: | Internal change: Fixed inofficial function call |
| 14 Dec 2002: | Added %SLIDENAVALL% template keyword; added HIDECOMMENTS setting |
| 23 Nov 2002: | Added %SLIDENAVLAST% template keyword; using print Skin for presentation mode |
| 19 Nov 2002: | Added "Start presentation" and "End presentation" buttons; added %SLIDENAVFIRST%, %SLIDENAVPREV%, %SLIDENAVNEXT% template keywords |
| 17 Nov 2002: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/SlideShowPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/SlideShowPluginDev |
| You type | You see | Emotion |
|---|---|---|
| :-) | | "smile" |
| :) | | "smile" |
| 8-) | | "cool!" |
| :cool: | | "cool!" |
| :-I | | "indifferent" |
| :( | | "frown" |
| :-( | | "frown" |
| :o | | "embarrassment" |
| :D | | "big grin" |
| :-D | | "big grin" |
| ;) | | "wink" |
| ;-) | | "wink" |
| :p | | "stick out tongue" |
| :-p | | "stick out tongue" |
| :rolleyes: | | "roll eyes (sarcastic)" |
| :mad: | | "mad!" |
| :eek: | | "eek!" |
| :confused: | | "confused" |
| >:-) | | "hehe!" |
| :devil: | | "hehe!" |
| >;-) | | "hehe! (friendly)" |
| :devilish: | | "hehe! (friendly)" |
| :-X | | "sealed lips" |
| :ok: | | "thumbs up" |
| :yes: | | "yes" |
| :no: | | "no" |
| :love: | | "in love" |
| :scull: | | "scull" |
%<plugin>_<setting>%, for example, %INTERWIKIPLUGIN_SHORTDESCRIPTION%
:-) for
or :cool: for
data/debug.txt. Default: 0
TWiki.SmiliesPlugin
$emoticon (e.g. :D), $url (e.g. %ATTACHURL%/biggrin.gif) and $tooltip (e.g. "big grin"). Default: <img src="$url" alt="$tooltip" title="$tooltip" border="0" />
* #Set FORMAT = <img src="$url" alt="$emoticon" title="$emoticon" border="0" />
SmiliesPlugin.zip in your twiki installation directory. Content:
| File: | Description: |
|---|---|
data/TWiki/SmiliesPlugin.txt | Plugin topic |
data/TWiki/SmiliesPlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/SmiliesPlugin.pm | Plugin Perl module |
pub/TWiki/SmiliesPlugin/*.gif | Plugin icon files |
| Plugin Author: | TWiki:Main.AndreaSterbini, TWiki:Main.PeterThoeny |
| Plugin Version: | 21 Aug 2004 (v1.003) |
| Change History: | |
| 21 Aug 2004: | Fixed tooltip for Netscape; added "sealed lips", "thumbs up", "yes" "no", "in love", "scull" |
| 16 Feb 2004: | Added "devil" and "devilwink" smilies (by TWiki:Main.CrawfordCurrie) |
| 26 Feb 2003: | Added "indifferent" smilie |
| 20 Oct 2002: | Fixed STDERR warning for non-initialized Plugin |
| 20 Apr 2002: | Improved performance; removed non-standard Plugin API dependencies; added standard plugin topic content -- TWiki:Main.PeterThoeny |
| 23 Nov 2001: | Added TOPIC and FORMAT setting |
| 10 Jun 2001: | Packaged into ZIP |
| 28 Feb 2001: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.0 |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/SmiliesPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/SmiliesPluginDev |
%CALC{"$INT(7/3)"}% are evaluated at page view time. They can be placed in table cells and outside of tables. In other words, this Plugin provides general formula evaluation capability, not just classic spreadsheet functions.
Example:
| Interactive example: | |||||||||||||||
The formula next to "Total" is %CALC{"$SUM( $ABOVE() )"}%. (you see the formula instead of the sum in case the Plugin is not installed or not enabled.) | ||||||||||||||||
%CALC{"..."}% variable, which gets rendered according to the built-in function(s) found between the quotes.
$FUNCNAME(parameter)
%CALC{"$SUM( R2:C$COLUMN(0)..R$ROW(-1):C$COLUMN(0) )"}%
%CALC{"$SUM( 3, 5, 7 )"}%
R1:C1. Table address matrix:
R1:C1 | R1:C2 | R1:C3 | R1:C4 |
R2:C1 | R2:C2 | R2:C3 | R2:C4 |
"..", e.g. "row 1 through 20, column 3" is: R1:C3..R20:C3
%CALC{"$SUM( 3, 5, $T(R1:C7), R1:C11..R1:C15 )"}%
( bold )
( bold italic )
$ABOVE( )
%CALC{"$SUM($ABOVE())"}% returns the sum of cells above the current cell
$LEFT(), $RIGHT()
$ABS( num )
%CALC{"$ABS(-12.5)"}% returns 12.5
$SIGN()
$AVERAGE( list )
%CALC{"$AVERAGE(R2:C5..R$ROW(-1):C5)"}% returns the average of column 5, excluding the title row
$LIST(), $MAX(), $MEDIAN(), $MIN()
$CHAR( number )
%CALC{"$CHAR(97)"}% returns a
$CODE()
$CODE( text )
%CALC{"$CODE(abc)"}% returns 97
$CHAR()
$COLUMN( offset )
%CALC{"$COLUMN()"}% returns 2 for the second column
$ROW(), $T()
$COUNTITEMS( list )
%CALC{"$COUNTITEMS($ABOVE())"}% returns Closed: 1, Open: 2 assuming one cell above the current cell contains Closed and two cells contain Open
$COUNTSTR(), $LIST()
$COUNTSTR( list, str )
%CALC{"$COUNTSTR($ABOVE())"}% counts the number of non empty cells above the current cell
%CALC{"$COUNTSTR($ABOVE(), DONE)"}% counts the number of cells equal to DONE
$COUNTITEMS(), $LIST()
$DEF( list )
%CALC{"$DEF(R1:C1..R1:C3)"}%
$COUNTSTR(), $LISTIF(), $LIST()
$EVAL( formula )
%CALC{"$EVAL( (5 * 3) / 2 + 1.1 )"}% returns 8.6
$INT(), $MOD(), $ROUND(), $VALUE()
1 if they are exactly the same, or 0 if not
$EXACT( text1, text2 )
%CALC{"$EXACT(foo, Foo)"}% returns 0
%CALC{"$EXACT(foo, $LOWER(Foo))"}% returns 1
$IF(), $TRIM()
string, within another text, and returns the number of the starting position of string, from the first character of text. This search is case sensitive and is not a regular expression search; use $SEARCH() for regular expression searching. Starting position is 1; a 0 is returned if nothing is matched.
$FIND( string, text, start )
%CALC{"$FIND(f, fluffy)"}% returns 1
%CALC{"$FIND(f, fluffy, 2)"}% returns 4
%CALC{"$FIND(@, fluffy, 1)"}% returns 0
$REPLACE(), $SEARCH()
$FORMAT( type, prec, number )
%CALC{"$FORMAT(COMMA, 2, 12345.6789)"}% returns 12,345.68
%CALC{"$FORMAT(DOLLAR, 2, 12345.67)"}% returns $12,345.68
%CALC{"$FORMAT(NUMBER, 1, 12345.67)"}% returns 12345.7
%CALC{"$FORMAT(PERCENT, 1, 0.1234567)"}% returns 12.3%
$ROUND()
text are expanded: $second (seconds, 00..59); $minute (minutes, 00..59); $hour (hours, 00..23); $day (day of month, 01..31); $month (month, 01..12); $mon (month in text format, Jan..Dec); $year (4 digit year, 1999); $ye (2 digit year, 99), $wd (day number of the week, 1 for Sunday, 2 for Monday, etc), $wday (day of the week, Sun..Sat), $weekday (day of the week, Sunday..Saturday), $yearday (day of the year, 1..365, or 1..366 in leap years). Date is assumed to be server time; add GMT to indicate Greenwich time zone.
$FORMATTIME( serial, text )
%CALC{"$FORMATTIME(0, $year/$month/$day GMT)"}% returns 1970/01/01 GMT
$FORMATGMTIME(), $TIME(), $TIMEADD(), $TIMEDIFF(), $TODAY()
$FORMATTIME().
$FORMATGMTIME( serial, text )
%CALC{"$FORMATGMTIME(1041379200, $day $mon $year)"}% returns 01 Jan 2003
$FORMATTIME(), $TIME(), $TIMEADD(), $TIMEDIFF(), $TODAY()
$SET() to set a variable first. Unlike table ranges, variables live for the time of the page view and persist across tables, i.e. you can use it to summarize results across several tables.
$GET( name )
%CALC{"$GET(my_total)"}% returns the value of the my_total variable
$SET(), $SETM()
0 means condition not met), or two numbers with a comparison operator < (less than), <= (less than or equal), == (equal), != (not equal), >= (greater than or equal), > (greater than).
$IF( condition, value if true, value if 0 )
%CALC{"$IF($T(R1:C5) > 1000, Over Budget, OK)"}% returns Over Budget if value in R1:C5 is over 1000, OK if not
%CALC{"$IF($EXACT($T(R1:C2),), empty, $T(R1:C2))"}% returns the content of R1:C2 or empty if empty
%CALC{"$SET(val, $IF($T(R1:C2) == 0, zero, $T(R1:C2)))"}% sets a variable conditionally
$AND(), $EXACT(), $LISTIF(), $NOT(), $OR()
$INT( formula )
%CALC{"$INT(10 / 4)"}% returns 2
$EVAL(), $ROUND(), $VALUE()
$LEFT( )
%CALC{"$SUM($LEFT())"}% returns the sum of cells to the left of the current cell
$ABOVE(), $RIGHT()
$LENGTH( text )
%CALC{"$LENGTH(abcd)"}% returns 4
$LISTSIZE()
$LIST( range )
%CALC{"$LIST($LEFT())"}% returns Apples, Lemons, Oranges, Kiwis assuming the cells to the left contain | Apples | Lemons, Oranges | Kiwis |
$AVERAGE(), $COUNTITEMS(), $COUNTSTR(), $DEF(), $LISTIF(), $LISTITEM(), $LISTMAP(), $LISTREVERSE(), $LISTSIZE(), $LISTSORT(), $LISTUNIQUE(), $MAX(), $MEDIAN(), $MIN(), $PRODUCT(), $SUM(), $SUMDAYS(), $SUMPRODUCT()
$IF(), you can use $item to indicate the current element, and $index for the list index, starting at 1
$LISTIF( condition, list )
%CALC{"$LISTIF($item > 12, 14, 7, 25)"}% returns 14, 25
%CALC{"$LISTIF($NOT($EXACT($item,)), A, B, , E)"}% returns non-empty elements A, B, E
%CALC{"$LISTIF($index > 2, A, B, C, D)"}% returns C, D
$IF(), $LIST(), $LISTITEM(), $LISTMAP(), $LISTREVERSE(), $LISTSIZE(), $LISTSORT(), $LISTUNIQUE(), $SUM()
$LISTITEM( index, list )
%CALC{"$LISTITEM(2, Apple, Orange, Apple, Kiwi)"}% returns Orange
%CALC{"$LISTITEM(-1, Apple, Orange, Apple, Kiwi)"}% returns Kiwi
$COUNTITEMS(), $COUNTSTR(), $LIST(), $LISTIF(), $LISTMAP(), $LISTREVERSE(), $LISTSIZE(), $LISTSORT(), $LISTUNIQUE(), $SUM()
$item to indicate the element; $index to show the index of the list, starting at 1
$LISTMAP( formula, list )
%CALC{"$LISTMAP($index: $EVAL(2 * $item), 3, 5, 7, 11)"}% returns 1: 6, 2: 10, 3: 14, 4: 22
$COUNTITEMS(), $COUNTSTR(), $LIST(), $LISTIF(), $LISTITEM(), $LISTREVERSE(), $LISTSIZE(), $LISTSORT(), $LISTUNIQUE(), $SUM()
$LISTREVERSE( list )
%CALC{"$LISTREVERSE(Apple, Orange, Apple, Kiwi)"}% returns Kiwi, Apple, Orange, Apple
$COUNTITEMS(), $COUNTSTR(), $LIST(), $LISTIF(), $LISTITEM(), $LISTMAP(), $LISTSIZE(), $LISTSORT(), $LISTUNIQUE(), $SUM()
$LISTSIZE( list )
%CALC{"$LISTSIZE(Apple, Orange, Apple, Kiwi)"}% returns 4
$COUNTITEMS(), $COUNTSTR(), $LIST(), $LISTIF(), $LISTITEM(), $LISTMAP(), $LISTREVERSE(), $LISTSORT(), $LISTUNIQUE(), $SUM()
$LISTSORT( list )
%CALC{"$LISTSORT(Apple, Orange, Apple, Kiwi)"}% returns Apple, Apple, Kiwi, Orange
$COUNTITEMS(), $COUNTSTR(), $LIST(), $LISTIF(), $LISTITEM(), $LISTMAP(), $LISTREVERSE(), $LISTSIZE(), $LISTUNIQUE(), $SUM()
$LISTUNIQUE( list )
%CALC{"$LISTUNIQUE(Apple, Orange, Apple, Kiwi)"}% returns Apple, Orange, Kiwi
$COUNTITEMS(), $COUNTSTR(), $LIST(), $LISTIF(), $LISTITEM(), $LISTMAP(), $LISTREVERSE(), $LISTSIZE(), $LISTSORT(), $SUM()
$LOWER(text)
%CALC{"$LOWER( $T(R1:C5) )"}% returns the lower case string of the text in cell R1:C5
$PROPER(), $PROPERSPACE(), $TRIM(), $UPPER()
$MAX( list )
%CALC{"$MAX($LEFT())"}%
$LIST(), $MEDIAN(), $MIN()
$MEDIAN( list )
%CALC{"$MEDIAN(3, 9, 4, 5)"}% returns 4.5
$LIST(), $MAX(), $MIN()
$MIN( list )
%CALC{"$MIN(15, 3, 28)"}% returns 3
$LIST(), $MAX(), $MEDIAN()
num by divisor %SEARCH{}% is evaluated. The percent character '%' can be escaped with $per
$NOP( text )
num is not zero, 1 if zero
$NOT( num )
%CALC{"$NOT(0)"}% returns 1
$AND(), $IF(), $OR()
$PRODUCT( list )
%CALC{"$PRODUCT($LEFT())"}%
$LIST(), $PRODUCT(), $SUM(), $SUMPRODUCT()
$PROPER( text )
%CALC{"PROPER(a small STEP)"}% returns A Small Step
%CALC{"PROPER(f1 (formula-1))"}% returns F1 (Formula-1)
$LOWER(), $PROPERSPACE(), $TRIM(), $UPPER()
][. Words listed in the DONTSPACE TWikiPreferences variable or DONTSPACE Plugins setting are excluded
$PROPERSPACE( text )
%CALC{"PROPERSPACE(Old MacDonald had a ServerFarm, EeEyeEeEyeOh"}% returns Old MacDonald had a Server Farm, Ee Eye Ee Eye Oh
$LOWER(), $PROPER(), $TRIM(), $UPPER()
max, or 0 and 1 if max is not specified
$RAND( max )
$EVAL()
$REPEAT( text )
%CALC{"$REPEAT(/\, 5)"}% returns /\/\/\/\/\
num number of characters of text string text, starting at start, with new text new. Starting position is 1; use a negative start to count from the end of the text
$REPLACE( text, start, num, new )
%CALC{"$REPLACE(abcdefghijk,6,5,*)"}% returns abcde*k
$FIND(), $SEARCH(), $SUBSTITUTE(), $TRANSLATE()
$RIGHT( )
%CALC{"$SUM($RIGHT())"}% returns the sum of cells to the right of the current cell
$ABOVE(), $LEFT()
formula and rounds the result up or down to the number of digits if digits is positive; to the nearest integer if digits is missing; or to the left of the decimal point if digits is negative
$ROUND( formula, digits )
%CALC{"$ROUND(3.15, 1)"}% returns 3.2
%CALC{"$ROUND(3.149, 1)"}% returns 3.1
%CALC{"$ROUND(-2.475, 2)"}% returns -2.48
%CALC{"$ROUND(34.9, -1)"}% returns 30
$INT(), $FORMAT()
$ROW( offset )
%CALC{"$ROW(-2)"}%
$COLUMN(), $T()
string, within another text, and returns the number of the starting position of string, from the first character of text. This search is a RegularExpression search; use $FIND() for non-regular expression searching. Starting position is 1; a 0 is returned if nothing is matched
$SEARCH( string, text, start )
%CALC{"$SEARCH([uy], fluffy)"}% returns 3
%CALC{"$SEARCH([uy], fluffy, 3)"}% returns 6
%CALC{"$SEARCH([abc], fluffy,)"}% returns 0
$FIND(), $REPLACE()
$GET() to retrieve variables. Unlike table ranges, variables live for the time of the page view and persist across tables, i.e. you can use it to summarize results across several tables
$SET( name, value )
%CALC{"$SET(my_total, $SUM($ABOVE()))"}% sets the my_total variable to the sum of all table cells located above the current cell and returns an empty string
$GET(), SETM()
+ (add), - (subtract), * (multiply), or / (divide) something to the variable. This function returns no output. Use $GET() to retrieve variables
$SETM( name, formula )
%CALC{"$SETM(total, + $SUM($LEFT()))"}% adds the sum of all table cells on the left to the total variable, and returns an empty string
$GET(), $SET()
num is negative, 0 if zero, or 1 if positive
$SIGN( num )
%CALC{"$SIGN(-12.5)"}% returns -1
$ABS(), $EVAL(), $INT(), $NOT()
new text for old text in a text string. instance specifies which occurance of old you want to replace. If you specify instance, only that instance is replaced. Otherwise, every occurance is changed to the new text. A literal search is performed by default; a RegularExpression search if the option is set to r
$SUBSTITUTE( text, old, new, instance, option )
%CALC{"$SUBSTITUTE(Good morning, morning, day)"}% returns Good day
%CALC{"$SUBSTITUTE(Q2-2002,2,3)"}% returns Q3-3003
%CALC{"$SUBSTITUTE(Q2-2002,2,3,3)"}% returns Q2-2003
%CALC{"$SUBSTITUTE(abc123def,[0-9],9,,r)"}% returns abc999def
$REPLACE(), $TRANSLATE()
$SUM( list )
%CALC{"$SUM(R2:C5..R$ROW(-1):C5)"}% in the last row; or simply %CALC{"$SUM($ABOVE())"}%
$LIST(), $PRODUCT(), $SUMPRODUCT(), $WORKINGDAYS()
h, hours, d, days, w, weeks suffix. One week is assumed to have 5 working days, one day 8 hours
$SUMDAYS( list )
%CALC{"$SUMDAYS(2w, 1, 2d, 4h)"}% returns 13.5, the evaluation of (2*5 + 1 + 2 + 4/8)
$SUM(), $TIME(), $FORMATTIME()
$SUMPRODUCT( list, list, list... )
%CALC{"$SUM(R2:C1..R4:C1, R2:C5..R4:C5)"}% evaluates and returns the result of ($T(R2:C1) * $T(R2:C5) + $T(R3:C1) * $T(R3:C5) + $T(R4:C1) * $T(R4:C5))
$LIST(), $PRODUCT(), $SUM()
$T( address )
%CALC{"$T(R1:C5)"}% returns the text in cell R1:C5
$COLUMN(), $ROW()
from a set to a set, one character by one. The text may contain commas; all three parameters are required. In the from and to parameters you can write $comma to escape comma, $sp to escape space
$TRANSLATE( text, from, to )
%CALC{"$TRANSLATE(boom,bm,cl)"}% returns cool
%CALC{"$TRANSLATE(one, two,$comma,;)"}% returns one; two
$REPLACE(), $SUBSTITUTE()
31 Dec 2009; 31 Dec 2009 GMT; 31 Dec 09; 31-Dec-2009; 31/Dec/2009; 2009/12/31; 2009-12-31; 2009/12/31; 2009/12/31 23:59; 2009/12/31 - 23:59; 2009-12-31-23-59; 2009/12/31 - 23:59:59; 2009.12.31.23.59.59. Date is assumed to be server time; add GMT to indicate Greenwich time zone
$TIME( text )
%CALC{"$TIME(2003/10/14 GMT)"}% returns 1066089600
$FORMATTIME(), $FORMATGMTIME(), $TIMEADD(), $TIMEDIFF(), $TODAY(), $WORKINGDAYS()
second, minute, hour, day, week, month, year. Note: An approximation is used for month and year calculations
$TIMEADD( serial, value, unit )
%CALC{"$TIMEADD($TIME(), 2, week)"}%
$(), $() returns the serialized date two weeks from now
$FORMATTIME(), $FORMATGMTIME(), $TIME(), $TIMEDIFF(), $TODAY()
$TIMEADD(). Note: An approximation is used for month and year calculations. Use $FORMAT() or $INT() to format real numbers
$TIMEDIFF( serial_1, serial_2, unit )
%CALC{"$TIMEDIFF($TIME(), $EVAL($TIME()+90), minute)"}% returns 1.5
$FORMAT(), $FORMATTIME(), $FORMATGMTIME(), $INT(), $TIME(), $TIMEADD(), $TODAY(), $WORKINGDAYS()
$TIME() returns the serialized date of today at the current time, e.g. it includes the number of seconds since midnight GMT
$TODAY( )
%CALC{"$TODAY()"}% returns the number of seconds since Epoch
$FORMATTIME(), $FORMATGMTIME(), $TIME(), $TIMEADD(), $TIMEDIFF()
$TRIM( text )
%CALC{"$TRIM( eat spaces )"}% returns eat spaces
$EXACT(), $PROPERSPACE()
$UPPER( text )
%CALC{"$UPPER($T(R1:C5))"}% returns the upper case string of the text in cell R1:C5
$LOWER(), $PROPER(), $PROPERSPACE(), $TRIM()
text. Returns 0 if not found
$VALUE( text )
%CALC{"$VALUE(US$1,200)"}% returns 1200
%CALC{"$VALUE(PrjNotebook1234)"}% returns 1234
%CALC{"$VALUE(Total: -12.5)"}% returns -12.5
$EVAL(), $INT()
$WORKINGDAYS( serial_1, serial_2 )
%CALC{"$WORKINGDAYS($TIME(2004/07/15), $TIME(2004/08/03))"}% returns 13
$SUMDAYS(), $TIME(), $TIMEDIFF()
| Bug#: | Priority: | Subject: | Status: | Days to fix |
|---|---|---|---|---|
| Bug:1231 | Low | File Open ... | Open | 3 |
| Bug:1232 | High | Memory Window ... | Fixed | 2 |
| Bug:1233 | Medium | Usability issue ... | Assigned | 5 |
| Bug:1234 | High | No arrange ... | Fixed | 1 |
| Total: 4 | High: 2 Low: 1 Medium: 1 | . | Assigned: 1 Fixed: 2 Open: 1 | Total: 11 |
| Total: %CALC{"$ROW(-2)"}% \
| %CALC{"$COUNTITEMS( R2:C$COLUMN()..R$ROW(-1):C$COLUMN() )"}% | . \
| %CALC{"$COUNTITEMS( R2:C$COLUMN()..R$ROW(-1):C$COLUMN() )"}% \
| Total: %CALC{"$SUM( R2:C$COLUMN()..R$ROW(-1):C$COLUMN() )"}% |
Above table is created manually. Another Plugin could build the table dynamically, e.g. by pulling data out of a bug tracking system. The Spreadsheet Plugin can be used to display table data statistics.
%<plugin>_<setting>%, i.e. %SPREADSHEETPLUGIN_SHORTDESCRIPTION%
"$SUM( $ABOVE() )" to tables located in UAIWiki topics.
data/debug.txt)
%CALC{}% tag in included topic while including topic: (default: 1)
$PROPERSPACE(text) function. This comma delimited list can be overloaded by a DONTSPACE preferences variable:
SpreadSheetPlugin.zip in your twiki installation directory. Content:
| File: | Description: |
|---|---|
data/TWiki/SpreadSheetPlugin.txt | Plugin topic |
data/TWiki/SpreadSheetPlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/SpreadSheetPlugin.pm | Plugin Perl module |
| Plugin Author: | TWiki:Main/PeterThoeny |
| Plugin Version: | 17 Jul 2004 |
| Change History: | |
| 17 Jul 2004: | Added $WORKINGDAYS(), contributed by TWiki:Main/CrawfordCurrie |
| 24 May 2004: | Refactored documentation (no code changes) |
| 03 Apr 2004: | Added $ABS(), $LISTIF(); fixed $VALUE() to remove leading zeros; changed $FIND() and $SEARCH() to return 0 instead of empty string if no match |
| 21 Mar 2004: | Added $LISTITEM(); fixed call to unofficial function |
| 16 Mar 2004: | Added $LISTMAP(), $LISTREVERSE(), $LISTSIZE(), $LISTSORT(), $LISTUNIQUE(), $SETM(); retired $COUNTUNIQUE() in favor of $COUNTITEMS($LISTUNIQUE()); fixed evaluation order issue of $IF(); fixed missing eval error messages suppressed since version 06 Mar 2004; redirect stderr messages to warning |
| 08 Mar 2004: | Added $LIST() |
| 06 Mar 2004: | Added $AND(), $MOD(), $NOT(), $OR(), $PRODUCT(), $PROPER(), $PROPERSPACE(), $RAND(), $REPEAT(), $SIGN(), $VALUE(); added digits parameter to $ROUND(); renamed $MULT() to $PRODUCT(); $MULT() is deprecated and undocumented |
| 27 Feb 2004: | Added $COUNTUNIQUE() |
| 24 Oct 2003: | Added $SET(), $GET(), $MEDIAN(); added $SUMPRODUCT(), inspired by TWiki:Main/RobertWithrow; added $SUMDAYS(), contributed by TWiki:Main/SvenDowideit |
| 21 Oct 2003: | Added support for lists (1, 2, 3) and lists of table ranges (R1:C1..R1:C5, R3:C1..R3:C5) for all functions that accept a table range; added $TIMEADD(); in $TIMEDIFF() added week unit; in $FORMATTIME() changed $weekday to $wd and added $wday and $weekday |
| 14 Oct 2003: | Added $TIME(), $TODAY(), $FORMATTIME(), $FORMATGMTIME(), $TIMEDIFF() |
| 13 Oct 2003: | Added $MULT(), contributed by TWiki:Main/GerritJanBaarda |
| 30 Jul 2003: | Added $TRANSLATE() |
| 19 Jul 2003: | Added $FIND(), $NOP(), $REPLACE(), $SEARCH(), $SUBSTITUTE(), contributed by TWiki:Main/PaulineCheung |
| 19 Apr 2003: | Added $COUNTSTR(), $EXACT(), $IF(), $ROUND(), $TRIM(); added $FORMAT(), contributed by TWiki:Main/JimStraus; support % modulus operator in $EVAL, $INT, and $ROUND; fixed bug in $DEF |
| 07 Jun 2002: | Added $DEF(), contributed by TWiki:Main/MartinFuzzey; allow values with HTML formatting like <u>102</u>, suggested by TWiki:Main/GladeDiviney; added SKIPINCLUDE setting |
| 12 Mar 2002: | Support for multiple functions per nesting level |
| 15 Jan 2002: | Added $CHAR(), $CODE() and $LENGTH() |
| 12 Nov 2001: | Added $RIGHT() |
| 12 Aug 2001: | Fixed bug of disappearing multi-column cells |
| 19 Jul 2001: | Fixed incorrect $SUM calculation of cell with value 0 |
| 14 Jul 2001: | Changed to plug & play |
| 01 Jun 2001: | Fixed insecure dependencies for $MIN and $MAX |
| 16 Apr 2001: | Fixed div by 0 bug in $AVERAGE |
| 17 Mar 2001: | Initial version |
| CPAN Dependencies: | none |
| TWiki:Plugins/Benchmark: | GoodStyle 99%, FormattedSearch 99%, SpreadSheetPlugin 95% |
| Other Dependencies: | none |
| Perl Version: | 5.000 and up |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/SpreadSheetPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/SpreadSheetPluginDev |
| #000000 | #000033 | #000066 | #000099 | #0000CC | #0000FF |
| #003300 | #003333 | #003366 | #003399 | #0033CC | #0033FF |
| #006600 | #006633 | #006666 | #006699 | #0066CC | #0066FF |
| #009900 | #009933 | #009966 | #009999 | #0099CC | #0099FF |
| #00CC00 | #00CC33 | #00CC66 | #00CC99 | #00CCCC | #00CCFF |
| #00FF00 | #00FF33 | #00FF66 | #00FF99 | #00FFCC | #00FFFF |
| #330000 | #330033 | #330066 | #330099 | #3300CC | #3300FF |
| #333300 | #333333 | #333366 | #333399 | #3333CC | #3333FF |
| #336600 | #336633 | #336666 | #336699 | #3366CC | #3366FF |
| #339900 | #339933 | #339966 | #339999 | #3399CC | #3399FF |
| #33CC00 | #33CC33 | #33CC66 | #33CC99 | #33CCCC | #33CCFF |
| #33FF00 | #33FF33 | #33FF66 | #33FF99 | #33FFCC | #33FFFF |
| #660000 | #660033 | #660066 | #660099 | #6600CC | #6600FF |
| #663300 | #663333 | #663366 | #663399 | #6633CC | #6633FF |
| #666600 | #666633 | #666666 | #666699 | #6666CC | #6666FF |
| #669900 | #669933 | #669966 | #669999 | #6699CC | #6699FF |
| #66CC00 | #66CC33 | #66CC66 | #66CC99 | #66CCCC | #66CCFF |
| #66FF00 | #66FF33 | #66FF66 | #66FF99 | #66FFCC | #66FFFF |
| #990000 | #990033 | #990066 | #990099 | #9900CC | #9900FF |
| #993300 | #993333 | #993366 | #993399 | #9933CC | #9933FF |
| #996600 | #996633 | #996666 | #996699 | #9966CC | #9966FF |
| #999900 | #999933 | #999966 | #999999 | #9999CC | #9999FF |
| #99CC00 | #99CC33 | #99CC66 | #99CC99 | #99CCCC | #99CCFF |
| #99FF00 | #99FF33 | #99FF66 | #99FF99 | #99FFCC | #99FFFF |
| #CC0000 | #CC0033 | #CC0066 | #CC0099 | #CC00CC | #CC00FF |
| #CC3300 | #CC3333 | #CC3366 | #CC3399 | #CC33CC | #CC33FF |
| #CC6600 | #CC6633 | #CC6666 | #CC6699 | #CC66CC | #CC66FF |
| #CC9900 | #CC9933 | #CC9966 | #CC9999 | #CC99CC | #CC99FF |
| #CCCC00 | #CCCC33 | #CCCC66 | #CCCC99 | #CCCCCC | #CCCCFF |
| #CCFF00 | #CCFF33 | #CCFF66 | #CCFF99 | #CCFFCC | #CCFFFF |
| #FF0000 | #FF0033 | #FF0066 | #FF0099 | #FF00CC | #FF00FF |
| #FF3300 | #FF3333 | #FF3366 | #FF3399 | #FF33CC | #FF33FF |
| #FF6600 | #FF6633 | #FF6666 | #FF6699 | #FF66CC | #FF66FF |
| #FF9900 | #FF9933 | #FF9966 | #FF9999 | #FF99CC | #FF99FF |
| #FFCC00 | #FFCC33 | #FFCC66 | #FFCC99 | #FFCCCC | #FFCCFF |
| #FFFF00 | #FFFF33 | #FFFF66 | #FFFF99 | #FFFFCC | #FFFFFF |
.htpasswd if authentication is enabled.
Main web, like the TWikiAdminGroup. To create a new group:
Edit TWikiGroups by entering a new topic with a name that ends in Group. Example:
SomeGroup
Set GROUP = < list of Users and/or Groups >
Set ALLOWTOPICCHANGE = < list of Users and/or Groups >
Set GROUP = Main.SomeUser, Main.OtherUser, Main.SomeGroup
Set ALLOWTOPICCHANGE = Main.TWikiAdminGroup
Set DENYTOPICCHANGE = < list of Users and Groups >
Set ALLOWTOPICCHANGE = < list of Users and Groups >
Set DENYTOPICCHANGE = Main.SomeBadBoy, Main.SomeBadGirl, Main.SomeHackerGroup
Set ALLOWTOPICCHANGE = Main.SomeGoodGuy, Main.SomeGoodGirl, Main.TWikiAdminGroup
Set DENYWEBCHANGE = < list of Users and Groups >
Set ALLOWWEBCHANGE = < list of Users and Groups >
Set DENYTOPICRENAME = < list of Users and Groups >
Set ALLOWTOPICRENAME = < list of Users and Groups >
Set DENYTOPICRENAME = Main.SomeBadBoy, Main.SomeBadGirl, Main.SomeHackerGroup
Set ALLOWTOPICRENAME = Main.SomeGoodGuy, Main.SomeGoodGirl, Main.TWikiAdminGroup
Set DENYWEBRENAME = < list of Users and Groups >
Set ALLOWWEBRENAME = < list of Users and Groups >
DENYTOPICVIEW / ALLOWTOPICVIEW preferences variables, provided that the view script is authenticated. However this setup is not recommended since all content is searchable within a web - a search will turn up view restricted topics.
all webs search option from accessing obfuscated webs. Do so by enabling the NOSEARCHALL variable in WebPreferences:
Set NOSEARCHALL = on
Set DENYWEBVIEW = < list of Users and Groups >
Set ALLOWWEBVIEW = < list of Users and Groups >
DENYWEBVIEW is evaluated before ALLOWWEBVIEW. Access is denied if the authenticated person is in the DENYWEBVIEW list, or not in the ALLOWWEBVIEW list. Access is granted in case DENYWEBVIEW and ALLOWWEBVIEW is not defined.
NOSEARCHALL variable in its WebPreferences topic:
Set NOSEARCHALL = on
view to the list of authenticated scripts in the .htaccess file.
view script is authenticated, which means that all Users have to login, even for read-only access. (An open guest account, like TWikiGuest, can get around this, allowing anyone to login to a common account with, for example, view-only access for public webs.) TWikiInstallationGuide has more on Basic Authentication, using the .htaccess file.
Set DENYWEBVIEW = < list of Users and Groups >
Set ALLOWWEBVIEW = < list of Users and Groups >
DENYWEBVIEW is evaluated before ALLOWWEBVIEW. Access is denied if the authenticated person is in the DENYWEBVIEW list, or not in the ALLOWWEBVIEW list. Access is granted in case DENYWEBVIEW and ALLOWWEBVIEW is not defined.
NOSEARCHALL variable in its WebPreferences topic:
Set NOSEARCHALL = on
$doRememberRemoteUser flag in lib/TWiki.cfg as described in TWikiUserAuthentication. UAIWiki will now remember the IP address of an authenticated user.
view script to viewauth (or better, create a symbolic link)
viewauth to the list of authenticated scripts in the .htaccess file. The view script should not be listed in the .htaccess file.
view script to the viewauth script once (this happens only if the user has never edited a topic). Doing so will ask for authentication. The viewauth script shows the requested topic if the user could log on and if the user is authorized to see that web.
$superAdminGroup variable in lib/TWiki.cfg to the name of a group of Users who are always allowed to edit/view topics.
$superAdminGroup = "TWikiAdminGroup";
Main web to User. It will make WikiWord links to usernames more meaningful (User.UserName instead of Main.UserName); but does not bring much gain for other types of topics like (User.EngineeringGroup or User.TokyoOffice). Just rename data/Main to data/User, and change $mainWebname variable in lib/TWiki.cfg file. Signatures in all existing topics need to be fixed as well.
See also TWiki:Codev.RenameMainWebToHome, TWiki:Codev.RenameTheMainWeb, TWiki:Codev.SeparateHowtoWeb for arguments pro and con.
.htaccess file.
AuthName 'TWiki UserName (i.e. TWikiGuest/guest)'
Edit, without losing Wiki spirit. Comments can be entered in a conventional Web form style with a text box and a submit button. This is all displayed on a TWiki page without having to use TWiki's Edit. Text added appears exactly as if edited normally, and topic can be edited also using the full TWiki Edit. This is useful to encourage participation among your users who are not yet comfortable with TWiki capabilities.
"$SUM( $ABOVE() )" to tables located in TWiki topics.
twiki. So: twikiEditPage, twikiTopicAction, etcetera. Remember that CSS class names are case sensitive - TWiki CSS uses lowercase tw.
twiki prefix to prevent undesired overriding effects.
| .twikiNew | Changes.pm |
| .twikiChangeFormButtonHolder | Edit.pm |
| .twikiChangeFormButton | Form.pm |
| .twikiForm | Form.pm |
| .twikiEditFormTextField | Form.pm |
| .twikiEditFormLabelField | Form.pm |
| .twikiEditFormTextAreaField | Form.pm |
| .twikiEditFormCheckboxButton | Form.pm |
| .twikiEditFormCheckboxButton | Form.pm |
| .twikiEditFormCheckboxField | Form.pm |
| .twikiEditFormRadioField | Form.pm |
| .twikiEditFormError | Form.pm |
| .twikiRadioButton | Form.pm |
| .twikiCheckbox | Form.pm |
| .twikiEditFormError | Form.pm |
| .twikiDiffTable | RDiff.pm |
| .twikiDiffDeletedHeader | RDiff.pm |
| .twikiDiffDeletedMarker | RDiff.pm |
| .twikiDiffDeletedText | RDiff.pm |
| .twikiDiffAddedHeader | RDiff.pm |
| .twikiDiffAddedMarker | RDiff.pm |
| .twikiDiffAddedText | RDiff.pm |
| .twikiDiffChangedHeader | RDiff.pm |
| .twikiDiffChangedText | RDiff.pm |
| .twikiDiffUnchangedText | RDiff.pm |
| .twikiDiffLineNumberHeader | RDiff.pm |
| .twikiForm | Render.pm |
| .twikiAnchorLink | Render.pm |
| .twikiLink | Render.pm |
| .twikiNewLink | Render.pm |
| .twikiNew | Search.pm |
| .twikiAlert | Search.pm |
| .twikiAlert | Statistics.pm |
| .twikiAlert | TWiki.pm |
| .twikiToc | TWiki.pm |
| .twikiTocTitle | TWiki.pm |
| .twikiSortedAscendingCol | TablePlugin.pm |
| .twikiSortedDescendingCol | TablePlugin.pm |
| .twikiFirstCol | TablePlugin.pm |
%PUBURL%/%TWIKIWEB%/TWikiDocGraphics/help.gif to show the
icon
%VARIABLES%, may be worth checking out for extended use
%ICON{"pdf"}% to show the | Icon | File Name | Comment ![]() |
|---|---|---|
| | arrowbdown.gif | Arrow blue down |
| | arrowbleft.gif | Arrow blue left |
| | arrowbright.gif | Arrow blue right |
| | arrowbup.gif | Arrow blue up |
| | arrowdown.gif | Arrow red down |
| | arrowleft.gif | Arrow red left |
| | arrowright.gif | Arrow red right |
| | arrowup.gif | Arrow red up |
| | attachfile.gif | Attach file |
| | target.gif | Blue target |
| | cachetopic.gif | Cache topic |
| | choice-cancel.gif | Cancel |
| | changes.gif | Changes |
| | days.gif | Days |
| | dot_ld.gif | Dot graph left-down |
| | dot_lr.gif | Dot graph left-right |
| | dot_lrd.gif | Dot graph left-right-down |
| | dot_rd.gif | Dot graph right-down |
| | dot_ud.gif | Dot graph up-down |
| | dot_udl.gif | Dot graph up-down-left |
| | dot_udlr.gif | Dot graph up-down-left-right |
| | dot_udr.gif | Dot graph up-down-right |
| | dot_ul.gif | Dot graph up-left |
| | dot_ulr.gif | Dot graph up-left-right |
| | dot_ur.gif | Dot graph up-right |
| | edittopic.gif | Edit topic |
| | empty.gif | Empty transparent 16x16 spacer |
| | stargold.gif | Favorites (gold star) |
| | folder.gif | Folder |
| | gear.gif | Gear |
| | globe.gif | Globe |
| | go_back.gif | Go back |
| | go_end.gif | Go end |
| | go_fb.gif | Go fast back |
| | go_ff.gif | Go fast forward |
| | go_forward.gif | Go forward |
| | go_start.gif | Go start |
| | group.gif | Group |
| | help.gif | Help |
| | starred.gif | Highlight (positive) |
| | home.gif | Home |
| | hourglass.gif | Hour glass |
| | index.gif | Index |
| | indexlist.gif | Index list |
| | line_ld.gif | Line graph left-down |
| | line_lr.gif | Line graph left-right |
| | line_lrd.gif | Line graph left-right-down |
| | line_rd.gif | Line graph right-down |
| | line_ud.gif | Line graph up-down |
| | line_udl.gif | Line graph up-down-left |
| | line_udlr.gif | Line graph up-down-left-right |
| | line_udr.gif | Line graph up-down-right |
| | line_ul.gif | Line graph up-left |
| | line_ulr.gif | Line graph up-left-right |
| | line_ur.gif | Line graph up-right |
| | lock.gif | Lock |
| | lockfolder.gif | Locked folder |
| | lockfoldergray.gif | Locked folder, gray |
| | locktopic.gif | Locked topic |
| | locktopicgray.gif | Locked topic, gray |
| | mail.gif | |
| | arrowdot.gif | Meet here (arrows to red dot) |
| | new.gif | New |
| | newtopic.gif | New topic |
| | choice-no.gif | No |
| | note.gif | Note |
| | notify.gif | Notify |
| | person.gif | Person |
| | persons.gif | Persons |
| | hand.gif | Pointing hand |
| | printtopic.gif | Print topic |
| | recentchanges.gif | Recent changes |
| | pencil.gif | Refactor / Edit |
| | refreshtopic.gif | Refresh topic |
| | rfc.gif | Request for comments |
| | rss-feed.gif | RSS feed 36x14 |
| | xml-feed.gif | RSS feed 36x14 |
| | searchtopic.gif | Search topic |
| | bubble.gif | Speech bubble |
| | statistics.gif | Statistics |
| | stop.gif | Stop |
| | tip.gif | Tip / Idea |
| | topicbacklinks.gif | Topic back-links |
| | topicdiffs.gif | Topic difference |
| | trash.gif | Trash |
| | updated.gif | Updated |
| | viewtopic.gif | View topic |
| | warning.gif | Warning / Important |
| | watch.gif | Watch |
| | wip.gif | Work in progress |
| | wrench.gif | Wrench |
| | choice-yes.gif | Yes / Done |
| Resource | Required Server Environment * |
|---|---|
| Perl | 5.005_03 or higher (5.6.1 recommended, 5.8.x does work in most cases, but see TWiki:Codev.IssuesWithPerl5dot8) |
| Non-standard Perl modules | • Unix: Net::SMTP (or sendmail) • Windows: Net::SMTP, MIME::Base64, Digest::SHA1 • Internationalisation: Unicode::MapUTF8 (only for non-ISO-8859-1 sites using TWiki:Codev.EncodeURLsWithUTF8 with Perl 5.6 or lower) |
| RCS | 5.7 or higher (including GNU diff) Optional, but the all-Perl RCS replacement is not currently recommended for live sites - see TWiki:Codev.RcsLite |
GNU diff | GNU diff 2.7 or higher is required when not using the all-Perl RcsLite. Install on PATH if not included with RCS (check version with diff -v) Must be the version used by RCS, to avoid problems with binary attachments - RCS may have hard-coded path to diff |
| Other external programs | fgrep, egrep |
| Cron/scheduler | • Unix: cron • Windows: cron equivalents |
| Web server | Apache 1.3 is well supported; Apache 2.0 is not recommended yet (see TWiki:Codev.IssuesWithApache2dot0). For other servers, CGI support, authentication, extended path info required; also, the register script is likely to need significant changes |
mod_perl, web hosts, etc.
diff and grep tools if in doubt!) and TWiki:Codev/TWikiOnLinux.
/home/httpd/twiki and http://www.info-zip.org/pub/infozip/UnZip.htmlunzip the TWiki distribution into this directory.
twiki/bin directory of TWiki must be set as a cgi-bin directory. Add /home/httpd/twiki/bin to file httpd.conf (typcially located in /etc/httpd/) with only ExecCGI option.
twiki/pub directory of TWiki must be set so that it is visible as a URL. Add /home/httpd/twiki to file httpd.conf with normal access options (copy from /home/httpd/html ).
ScriptAlias for /twiki/bin and Alias for /twiki to file httpd.conf .
ScriptAlias must come before the Alias, otherwise, Apache will fail to correctly set up /twiki/bin/, by treating it as just another subdirectory of the /twiki/ alias.
twiki/data and twiki/templates directories should be set so that they are not visible as URLs. Add them to httpd.conf with deny from all.
Examplehttpd.confentries:ScriptAlias /twiki/bin/ "/home/httpd/twiki/bin/" Alias /twiki/ "/home/httpd/twiki/" <Directory "/home/httpd/twiki/bin"> Options +ExecCGI SetHandler cgi-script Allow from all </Directory> <Directory "/home/httpd/twiki/pub"> Options FollowSymLinks +Includes AllowOverride None Allow from all </Directory> <Directory "/home/httpd/twiki/data"> deny from all </Directory> <Directory "/home/httpd/twiki/templates"> deny from all </Directory>
service httpd restart (or as appropriate to your flavor of UNIX or Linux).
twiki/bin directory is CGI-enabled by trying visiting it in your browser:
bin directory, http://yourdomain.com/twiki/bin/
"Forbidden. You don"t have permission to access /twiki/bin/ on this server".
"Index of /twiki/bin" - recheck your httpd.conf file.
pub)
Note: Don"t worry if you are not able to put the
TWiki dir: What it is: Where to copy: Example: twikistart-up pages root TWiki dir /home/smith/twiki/twiki/binCGI bin CGI-enabled dir /home/smith/twiki/bintwiki/liblibrary files same level as twiki/bin/home/smith/twiki/libtwiki/pubpublic files htdoc enabled dir /home/smith/twiki/pubtwiki/datatopic data dir secure from public access /home/smith/twiki/datatwiki/templatesweb templates dir secure from public access /home/smith/twiki/templates
twiki/lib directory at the same level as the twiki/bin directory (e.g. because CGI bin directories can"t be under your home directory and you don"t have root access). You can create this directory elsewhere and configure the /twiki/bin/setlib.cfg file (done in Step 3)
/usr/bin/perl. If it"s elsewhere, change the path to Perl in the first line of each script in the twiki/bin directory, or create a symbolic link from /usr/bin/perl.
.cgi extension to run. Some systems need .pl, the regular Perl extension. Rename all twiki/bin scripts if necessary.
twiki/bin/.htaccess that contains the single line SetHandler cgi-script, which tells Apache to treat all files in this directory as CGI scripts.
twiki/bin directory as executable to -rwxr-xr-x (755).
.tmpl files it is necessary to chown and chgrp -R twiki so all the files have the owner you want.
nobody ownership for all files manipulated by the CGI scripts (executed by the Web server), and user twiki for all other files. You can:
nobody with another user if your server executes scripts under a different name (ex: default for Debian is www-data).
testenv script from your browser: http://yourdomain.com/twiki/bin/testenv. It will show you the user name of the CGI scripts, a table listing all CGI environment variables, and a test of your twiki/lib/TWiki.cfg configuration file (you"ll configure that in a minute).
twiki with your own username
twiki/data so that they are writable by user nobody. A simple way is to chmod them to -rw-rw-r-- (664) and to chown them to nobody.
twiki/data directory and its subdirectories so that files in there are writable by user nobody. A simple way is to chmod them to drwxrwxr-x (775) and to chown them to nobody.
twiki/pub directory and all its subdirectories so that files in there are writable by user nobody. A simple way is to chmod them to drwxrwxr-x (775) and to chown them to nobody.
twiki/data/*/*.txt,v RCS repository files in the installation package are locked by user nobody. If your CGI scripts are not running as user nobody, it"s not possible to check in files (you"ll see that the revision number won"t increase after saving a topic). In this case, you need to unlock all repository files (check the RCS man pages) and lock them with a different user, such as www-data, or delete them all - new files will be automatically created the first time each topic is edited. You have two options to change ownership of the RCS lock user:
testenv script from your browser; in the Fix line you can relock all the rcs files (recommended)
cd twiki/data find . -name *,v -exec perl -pi~ -e "$. <= 10 && s/nobody:/www-data:/ " {} \; *,v~ backup files which you should remove after verification: find . -name *,v~ -exec rm -f {} \;
/twiki/bin/setlib.cfg
$twikiLibPath to the absolute file path of your /twiki/lib as seen by the web server.
"../lib" path or Plugins might fail to initialize properly
$localPerlLibPath if you are not root and need to install additional CPAN modules, but can"t update the main Perl installation files on the server. Just set this variable to the full pathname to your local lib directory, typically under your home directory.
setlib.cfg file.
twiki/lib/TWiki.cfg, setting the variables to your needs.
$scriptSuffix variable to cgi or pl if required.
$storeTopicImpl = "RcsWrap"; for the RCS executables and make sure RCS is installed. Set $rcsDir in twiki/lib/TWiki.cfg to match the location of your RCS binaries. You can check this by issuing the command rcs at the prompt, it should result in something like "rcs: no input file".
diff, by typing diff -v - an error indicates you have a non-GNU diff, so install the GNU diffutils package and make sure that diff is on the PATH used by TWiki (see $safeEnvPath in the TWiki.cfg file).
$storeTopicImpl = "RcsLite"; for the Perl based RCS
twiki/data , twiki/templates and all their subdirectories should be set so that they are not visible through URLs. (Alternatively, move the directories to a place where they are not visible, and change the variables in twiki/lib/TWiki.cfg accordingly)
testenv script from your browser: http://yourdomain.com/twiki/bin/testenv. Check if your twiki/lib/TWiki.cfg configuration file settings are correct.
TWiki.cfg file"s Internationalisation section to set the $useLocale parameter to 1. TWiki will now use the I18N parameters set in the rest of this section.
locale -a to find a suitable "locale" for your use of TWiki. A locale that includes a dot followed by a character set is recommended, e.g. pl_PL.ISO-8859-2 for Poland. Consult your system administrator if you are not sure which locale to use.
TWiki.cfg, set the $siteLocale parameter to your chosen locale, e.g. pl_PL.ISO-8859-2 for Poland.
testenv (download the latest testenv from TWiki:Support/SupportGuidelines if possible) - this provides some diagnostics for I18N setup, and in particular checks that your locale can be used successfully.
TWiki.cfg parameter $localeRegexes to 0 - this disables some features but enables TWiki to work even if your system has locales that do not work. Then, set the $upperNational and $lowerNational parameters to the valid upper and lower case accented letters for your locale.
$useLocale set to 1 and set $localeRegexes to 0, then set $upperNational and $lowerNational - if testenv generates the lists of characters for you, your locales are working so there is no need to set $localeRegexes to 0 in this case. See the comments in TWiki.cfg for more information.
WIKIWEBMASTER email address, and other email settings required for registration and WebChangesAlert to work:
WIKIWEBMASTER should be set to the email address of the TWiki administrator
SMTPMAILHOST is typically set on Windows or other non-Unix/Linux systems, where sendmail or similar is not available. When this is set and the Perl module Net::SMTP is installed, TWiki will connect to this SMTP server (e.g. mail.yourdomain.com) to send email for user registration and WebChangesAlerts. If you do have a sendmail-type program, leave SMTPMAILHOST unset so that the external sendmail program is used instead (defined by $mailProgram in TWiki.cfg).
SMTPSENDERHOST is optional, and set to the domain name sending the email (e.g. twiki.yourdomain.com). For use where the SMTP server requires that you identify the TWiki server sending mail. If not set, Net::SMTP will guess it for you.
http://yourdomain.com/twiki/bin/view and start TWiki-ing away!
http://yourdomain.com/twiki/ to get the pre-TWiki index.html page, with a link to the view script. Customize this page if you want a public intro screen with a login link, instead of immediately calling up the .htaccess login dialog by going directly to view.
WEBCOPYRIGHT messages, and other preferences.
%VARIABLES%. Define site-level variables in the TWikiPreferences topic. See also: TWikiVariables.
.htaccess.txt in the twiki/bin directory to .htaccess and change it to your needs. The comment at the top of the file explains what need to be done, basically replace !FILE_path_to_TWiki! and !URL_path_to_TWiki! with paths specific to your installation. For the details of how this file works, consult the HTTP server documentation (for Apache server: [1], [2]).
.cgi or .pl file extension to the bin scripts, make sure to do the same for edit, view, preview, and all the other script names in .htaccess.
.htaccess does not have the desired effect, you need to enable it: Add "AllowOverride All" to the Directory [3] section of access.conf for your twiki/bin directory.
twiki/data/.htpasswd.txt file contains several TWiki core team user accounts and a guest user account. You probably want to remove those accounts by deleting the entries in .htpasswd. Do not remove the guest user if you want to allow guest logins.
$htpasswdFormatFamily, $htpasswdEncoding and $htpasswdFilename in the TWiki.cfg file. The supported options are htpasswd:plain, htpasswd:crypt, htpasswd:sha1, htdigest:md5
.txt and .txt,v files in the twiki/data/TWiki directory.
name="" parameter of the input tags must start with: "Twk0..." (if this is an optional entry), or "Twk1..." (if this is a required entry). This ensures that the fields are carried over into the user home page correctly.
data/.htpasswd file. The .htpasswd file that comes with the TWiki installation includes user accounts for TWiki core team members that are used for testing on TWiki.org. You can edit the file and delete those lines.
Main.UserName or %MAINWEB%.UserName format. (The %MAINWEB% variable is an advantage if you ever change the Main web name, but the standard Main.UserName is easier for users to enter, which is the bottom line!)
HOME since this is not always picked up by Cygwin
register script edits to Dec 2001 release
binutils to list of Cygwin packages, and added warning not to use Apache 2.0
SMTPMAILHOST for user registration and notification
| Component | Name, version | Comment |
|---|---|---|
| Operating System | Windows 2000 | Should also work for Windows NT |
| Web Server | Apache 1.3.27 | Windows-specific security holes fixed in this build (check latest version at http://httpd.apache.org, but don't use Apache 2.0 yet) |
| Unix tools | Cygwin 1.3.9 | Simplest way to get a whole set of required tools |
| Perl | Cygwin perl-5.6.1-2 | Comes with Cygwin, don't use Perl 5.8.0 yet |
| RCS | Cygwin rcs-5.7-2 | Comes with Cygwin, includes a file corruption bugfix |
CGI.pm. Even though the Apache group says that Apache 2.0 is the best version, that's not true for TWiki at present. For more information, see TWiki:Codev.IssuesWithApache2dot0 and TWiki:Codev.IssuesWithPerl5dot8.
TWiki.cfg, and is probably a simpler choice if you need an easy way to install mod_perl (see TWiki:Codev.ModPerl). TWiki:Codev.ActiveState Perl can be substituted without too much hassle, and in fact the same TWiki.cfg can be used for both TWiki:Codev.ActiveState and Cygwin Perl.
mod_perl, you may want to try TWiki:Codev.WindowsModPerlInstallCookbook.
$ : Cygwin DLL version is the number in 1.3.x format $ uname -r $ less c:/your-apache-dir/Announcement $ perl -v $ rcs -VIf you have an older version of any component, do yourself a favour and upgrade it as part of the install process.
nano, a very simple text editor, installed optionally during Cygwin installation. Always launch nano with the -w command-line option to turn off wrapping of long lines.
vi, a more sophisticated editor that should be familiar to most UNIX users
c:/apache almost everywhere in Windows - try it in a File Open dialogue box. The main exception is the Windows "DOS" command line shell - here, you must use double quotes around forward slashes, e.g. dir "c:/apache" will work fine.
The reason this matters is that '\' is a special character to Perl and other tools, so it's much easier to use '/' everywhere.
c:/apache format, but it also provides a more Unixlike syntax, e.g. /usr/bin/rcs.exe, because some Unix tools ported onto Cygwin only support the Unix format.
When you launch a Cygwin shell, your existing PATH variable is translated from the Windows format to the Unix format, and the ';' separators in the Windows PATH are changed into ':' separators as required by Unix. A Cygwin tool (e.g. Cygwin Perl or Cygwin RCS) will always use the Unix PATH format, and will accept Unix format pathnames.
httpd.conf file. There have been some security-related bugs in Apache with long pathnames, which are a bit more likely if you use spaces, so it's best to just avoid long names and using spaces.
ls, egrep, and the RCS tools that it (typically) launches with the bash shell.
If you need to use spaces in file names (not recommended), you may be able to put double quotes around the file name in the TWiki.cfg file - however, it's not clear whether all the TWiki code would work with this.
apache_1.3.X-win32-x86-no_src.msi where 'X' is 20 or higher
instmsi.exe) from the Apache Win32 download page - this enables you to install .MSI files. You may need to update the .MSI Installer if you have an old version under NT.
c:\ as the installation directory - this actually installs Apache into c:\apache (if you specify c:\apache, it installs into c:\apache\Apache). Putting Apache into c:\Program Files is not recommended for easy editing of Apache config files from Cygwin.
apache -k restart for standalone Apache process running in another window
apache -k restart -n apache for Apache running as a Win2000 service (-n gives name of service)
apache -k stop.
setup.exe in a directory, e.g. c:\download\cygwin-dist.
Now run the Cygwin setup.exe file - this will also install Perl and RCS in one fell swoop.
c:\download\cygwin-dist as the local package directory, and suitable proxy settings, then pick a local mirror site
bash
binutils
diffutils
gcc
grep
gzip
make
nano (or vim if you prefer the vi editor)
ncftp
pcre
perl (5.6.1-2 or higher, but not 5.8.0)
rcs (5.7-2 or higher)
tar
textutils
unzip
w32api
wget (optional, useful for Perl install and TWiki:Codev.ReadWriteOfflineWiki)
lynx if you are upgrading from an older Cygwin installation (to avoid annoying DLL messages) - if you want Lynx, read the Cygwin FAQ entry and upgrade libncurses5.
gcc, which is required for simple installation of Perl modules that use the C language. Something like 20 to 30 MB of free disk space should be enough for Cygwin, but I didn't test this (try a du -k / after a new install and let me know the last figure).
HOME environment variable to c:\cygwin\home\YOURUSER, where YOURUSER is your userid, e.g. jsmith or administrator.
HOME (must be upper case) as the variable name, and c:\cygwin\home\YOURUSER as the value, and hit OK.
TEMP to c:\temp at this point, if you prefer this to editing the Cygwin ~/.profile file. (HOME can't be set in the ~/.profile file.)
c:\cygwin\home\YOURUSER directory
bash shell, which has command line editing features
bash will 'complete' the name. If bash beeps at you, hit TAB again to see the files/directories that match the name so far, and type a bit more before hitting TAB. This saves a lot of time!
rcs -V - you should see the RCS version, 5.7
perl -v - you should see cygwin mentioned in the first line, and the Perl version, 5.6.1
grep home /etc/passwd - you should see some output.
$ mkdir /twiki /c c:/twiki $ mount -b -s c:/twiki /twiki $ mount -b -s c:/ /c $ mount -b -c /cygdrive $ mount Device Directory Type Flags C:\cygwin\bin /usr/bin system binmode C:\cygwin\lib /usr/lib system binmode C:\cygwin / system binmode c:\twiki /twiki system binmode c: /c system binmode
/twiki (known as a 'mount point') to map onto c:/twiki and for that directory tree to always be in binary mode, and does the same for /c, mapping it onto c:/. The last-but-one command sets binary as the default for any unmounted drives (e.g. z:/, aka /cygdrive/z).
mount say 'binmode' under Flags
C:\cygwin directories do not, you should uninstall and then re-install Cygwin to ensure that binary attachment uploads will work.
/twiki/bin/view or /c/apache/Announcement - see the Cygwin documentation for more details on this.
cd /twiki
echo hi >t
cat -v t - you should see hi as the output
hi^M as output, your /twiki directory is not in binary mode
rm t
.profile file. For more information on binary vs text mode, see this User Guide section and this FAQ entry.
c:/twiki directory.
8. Install TWiki
Unzip the ZIP file under c:/twiki using WinZip, or by going into Cygwin and doing the following - you can hit the TAB key to complete filenames after you've typed the first part:
$ cd /twiki $ unzip TWiki20011201.zip
c:/apache/conf/httpd.conf as follows - this tells Apache where TWiki lives, and removes the need to tinker with the Windows environment settings.
c:\temp directory, by typing mkdir c:\temp in a DOS command line window
# Change this to point to the Apache administrator (e.g. you) ServerAdmin you@yourdomain.com # Replaces DocumentRoot "C:/apache/htdocs" DocumentRoot "C:/twiki" # Replaces <Directory "C:/apache/htdocs"> <Directory "C:/twiki">
# Alias /twiki/ "C:/twiki/"
# ScriptAlias /twiki/bin/ "C:/twiki/bin/"
<Directory "C:/twiki/bin/">
# RD: Changed None to All in next line, to enable .htaccess
AllowOverride All
Allow From All
Options ExecCGI
SetHandler cgi-script
</Directory>
# Environment setup required to run Apache as service or as a
# standalone process.
<IfModule mod_env.c>
# Adjust TZ for your server timezone, e.g. EST5EDT - put the non-daylight-savings
# timezone code first (e.g. EST or GMT), followed by the number of hours that it's behind GMT
# during non-daylight-savings time (use '-5' for timezones in advance of GMT).
SetEnv TZ GMT0BST
SetEnv RCSINIT -x,v/
# Adjust TEMP and TMP for your server and create directories if necessary
SetEnv TEMP c:/temp
SetEnv TMP c:/temp
SetEnv LOGNAME system
SetEnv HOME c:/twiki
</IfModule>
2. Configure Apache (part 2)
Add an AddHandler line to the <IfModule mod_mime.c> section of httpd.conf - this removes the need to rename all the TWiki CGI scripts later in the installation.
#
# Document types
#
<IfModule mod_mime.c>
# TWiki setup - avoid renaming scripts
AddHandler cgi-script .
...
c:/twiki/lib/TWiki.cfg (or in Cygwin terms, /twiki/lib/TWiki.cfg) as follows:
c:/twiki format pathnames for Cygwin, given the above binmode setup, but I have not tested this fully - a Cygwin Perl test script does generate binary mode files in this configuration, so it should work with RCS as well (really need a small RCS file corruption test case). Watch out for RCS file corruption carefully if you do try c:/twiki pathnames with Cygwin, and do report your experiences...
fgrep and egrep to grep, requiring the settings for these commands to point directly to grep (with suitable flags to provide fgrep and egrep behaviour).
# variables that need to be changed when installing on a new server: # ================================================================== # http://uai.cs.ubc.ca/twiki : link of TWiki icon in upper left corner : $wikiHomeUrl = "http://yourdomain.com/bin/view"; # Host of TWiki URL : (Example "http://myhost.com:123") $defaultUrlHost = "http://yourdomain.com"; # /cgi-bin/twiki : cgi-bin path of TWiki URL: $scriptUrlPath = "/bin"; # /twiki/pub : Public data path of TWiki URL (root of attachments) : $pubUrlPath = "/pub"; # NOTE: Next three settings should be valid absolute pathnames using Cygwin; if using # TWiki:Codev.ActiveState Perl, use z:/twiki format pathnames if your TWiki directory is not on C:. # Public data directory, must match $pubUrlPath : $pubDir = "/twiki/pub"; # Template directory : $templateDir = "/twiki/templates"; # Data (topic files) root directory : $dataDir = "/twiki/data"; .... # Set ENV{'PATH'} explicitly for taint checks ( #!perl -T option ) : # (Note: PATH environment variable is not changed if set to "") # On Windows, $safeEnvPath needs only one component, the directory where RCS is installed # - used by 'rcsdiff' to run 'co' program, so PATH must be correct. # Unix/Linux setting: # $safeEnvPath = "/bin:/usr/bin"; # Using Cygwin perl, so can use Unix-like paths, with ':' as separator. # Note that /usr/bin and /bin are identical due to default /usr/bin mount # in Cygwin. Must NOT use 'c:/foo' type paths, as ':' is taken as separator # meaning that 'c' is interpreted as a pathname, giving Perl taint error. $safeEnvPath = "/bin"; # If using ActiveState perl, use Windows paths instead # $safeEnvPath = "c:/cygwin/bin"; ... # RCS directory (find out by 'which rcs') : $rcsDir = "c:/cygwin/bin"; ... # Unix egrep command : $egrepCmd = "/bin/grep -E"; # Unix fgrep command : $fgrepCmd = "/bin/grep -F";For the cookbook install using Cygwin Perl, there's no more
TWiki.cfg editing to be done, so you can get onto the next section.
# NOTE: When using ActiveState Perl, you must specify # a full Windows-style pathname, using '\\' for backslashes, # for the ls, egrep and fgrep commands, because Cygwin's shell # is not used - forward slashes are OK in Windows everywhere # except in the cmd.exe shell. Drive letters are OK - e.g. # 'c:\\foo\\ls' will work. When using Cygwin perl, just # use the default '/bin/ls' type settings. # # Unix ls command : $lsCmd = "c:\\cygwin\\bin\\ls"; # Unix egrep command : $egrepCmd = "c:\\cygwin\\bin\\grep"; # Unix fgrep command : $fgrepCmd = "c:\\cygwin\\bin\\grep";