Ignore:
Timestamp:
11/08/08 14:34:13 (4 years ago)
Author:
KoenMartens
Message:

Item110: replace occurences of TWIKIWEB with SYSTEMWEB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SpreadSheetPlugin/data/TWiki/SpreadSheetPlugin.txt

    r14 r464  
    446446#FuncPROPERSPACE 
    447447---+++ PROPERSPACE( text ) -- properly space out <nop>WikiWords 
    448         * Properly spaces out %TWIKIWEB%.WikiWords preceeded by white space, parenthesis, or ==][==. Words listed in the DONTSPACE %TWIKIWEB%.%WIKIPREFSTOPIC% variable or DONTSPACE Plugins setting are excluded 
     448        * Properly spaces out %SYSTEMWEB%.WikiWords preceeded by white space, parenthesis, or ==][==. Words listed in the DONTSPACE %SYSTEMWEB%.%WIKIPREFSTOPIC% variable or DONTSPACE Plugins setting are excluded 
    449449        * Syntax: ==$PROPERSPACE( text )== 
    450450        * Example: Assuming DONTSPACE contains <nop>MacDonald: ==%<nop>CALC{"$PROPERSPACE(Old <nop>MacDonald had a <nop>ServerFarm, <nop>EeEyeEeEyeOh)"}%== returns ==Old <nop>MacDonald had a Server Farm, Ee Eye Ee Eye Oh== 
     
    494494#FuncSEARCH 
    495495---+++ SEARCH( string, text, start ) -- search a string within a text 
    496         * Finds one text =string=, within another =text=, and returns the number of the starting position of =string=, from the first character of =text=. This search is a %TWIKIWEB%.RegularExpression search; use =$FIND()= for non-regular expression searching. Starting position is 1; a 0 is returned if nothing is matched 
     496        * Finds one text =string=, within another =text=, and returns the number of the starting position of =string=, from the first character of =text=. This search is a %SYSTEMWEB%.RegularExpression search; use =$FIND()= for non-regular expression searching. Starting position is 1; a 0 is returned if nothing is matched 
    497497        * Syntax: ==$SEARCH( string, text, _start_ )== 
    498498        * Example: ==%<nop>CALC{"$SEARCH([uy], fluffy)"}%== returns ==3== 
     
    536536#FuncSUBSTITUTE 
    537537---+++ SUBSTITUTE( text, old, new, instance, option ) -- substitute text 
    538         * Substitutes =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 %TWIKIWEB%.RegularExpression search if the =option= is set to ==r== 
     538        * Substitutes =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 %SYSTEMWEB%.RegularExpression search if the =option= is set to ==r== 
    539539        * Syntax: ==$SUBSTITUTE( text, old, _new_, _instance_, _option_ )== 
    540540        * Example: ==%<nop>CALC{"$SUBSTITUTE(Good morning, morning, day)"}%== returns ==Good day== 
     
    638638---+++ Can I use CALC in a formatted search? 
    639639 
    640 Specifically, how can I output some conditional text in a %TWIKIWEB%.FormattedSearch? 
    641  
    642 You need to escape the CALC so that it executes once per search hit. This can be done by escaping the =%= signs of =%<nop>CALC{...}%= with =$percnt=. For example, to execute =$IF($EXACT($formfield(Tested), Yes), %<nop>PUBURL%/%<nop>TWIKIWEB%/TWikiDocGraphics/choice-yes.gif, %<nop>PUBURL%/%<nop>TWIKIWEB%/TWikiDocGraphics/choice-no.gif)= in the =format=""= parameter, write this: 
    643  
    644 =%<nop>SEARCH{ .... format="| $topic | $percntCALC{$IF($EXACT($formfield(Tested), Yes), %<nop>PUBURL%/%<nop>TWIKIWEB%/TWikiDocGraphics/choice-yes.gif, %<nop>PUBURL%/%<nop>TWIKIWEB%/TWikiDocGraphics/choice-no.gif)}$percnt |" }%= 
     640Specifically, how can I output some conditional text in a %SYSTEMWEB%.FormattedSearch? 
     641 
     642You need to escape the CALC so that it executes once per search hit. This can be done by escaping the =%= signs of =%<nop>CALC{...}%= with =$percnt=. For example, to execute =$IF($EXACT($formfield(Tested), Yes), %<nop>PUBURL%/%<nop>SYSTEMWEB%/TWikiDocGraphics/choice-yes.gif, %<nop>PUBURL%/%<nop>SYSTEMWEB%/TWikiDocGraphics/choice-no.gif)= in the =format=""= parameter, write this: 
     643 
     644=%<nop>SEARCH{ .... format="| $topic | $percntCALC{$IF($EXACT($formfield(Tested), Yes), %<nop>PUBURL%/%<nop>SYSTEMWEB%/TWikiDocGraphics/choice-yes.gif, %<nop>PUBURL%/%<nop>SYSTEMWEB%/TWikiDocGraphics/choice-no.gif)}$percnt |" }%= 
    645645 
    646646---+++ How can I easily repeat a formula in a table? 
     
    685685a plugin setting write ==%<nop>&lt;plugin&gt;_&lt;setting&gt;%==, i.e. ==%<nop>SPREADSHEETPLUGIN_SHORTDESCRIPTION%== 
    686686 
    687         * One line description, is shown in the %TWIKIWEB%.TextFormattingRules topic: 
     687        * One line description, is shown in the %SYSTEMWEB%.TextFormattingRules topic: 
    688688                * Set SHORTDESCRIPTION = Add spreadsheet calculation like ="$SUM( $ABOVE() )"= to TWiki tables and other topic text 
    689689 
     
    695695 
    696696<noautolink> 
    697         * [[%TWIKIWEB%.WikiWord][WikiWords]] to exclude from being spaced out by the ==$PROPERSPACE(text)== function. This comma delimited list can be overloaded by a DONTSPACE preferences variable: 
     697        * [[%SYSTEMWEB%.WikiWord][WikiWords]] to exclude from being spaced out by the ==$PROPERSPACE(text)== function. This comma delimited list can be overloaded by a DONTSPACE preferences variable: 
    698698                * Set DONTSPACE = CodeWarrior, MacDonald, McIntosh, RedHat, SuSE 
    699699</noautolink> 
     
    722722|  13 Oct 2007: | Added $FORMATTIMEDIFF() | 
    723723|  09 Sep 2007: | Enhanced documentation for $EVAL() and $INT() | 
    724 |  02 Jun 2007: | Added %TWIKIWEB%.VarCALC to have =%<nop>CALC{}%= listed in %TWIKIWEB%.TWikiVariables | 
     724|  02 Jun 2007: | Added %SYSTEMWEB%.VarCALC to have =%<nop>CALC{}%= listed in %SYSTEMWEB%.TWikiVariables | 
    725725|  14 Apr 2007: | Fixing bug in $EXISTS() that required full =web.topic= instead of just =topic= | 
    726726|  11 Mar 2007: | Fixing bug in $VALUE() and $INT(), introduced by version 09 Mar 2007 | 
     
    761761|  17 Mar 2001: | Initial version with $ABOVE(), $AVERAGE(), $COLUMN(), $COUNTITEMS(), $EVAL(), $INT(), $LEFT(), $LOWER(), $MAX(), $MIN(), $ROW(), $SUM(), $T(), $UPPER() | 
    762762|  CPAN Dependencies: | none | 
    763 |  TWiki:Plugins/Benchmark: | %TWIKIWEB%.GoodStyle 99%, %TWIKIWEB%.FormattedSearch 99%, %TOPIC% 95% | 
     763|  TWiki:Plugins/Benchmark: | %SYSTEMWEB%.GoodStyle 99%, %SYSTEMWEB%.FormattedSearch 99%, %TOPIC% 95% | 
    764764|  Other Dependencies: | none | 
    765765|  Perl Version: | 5.000 and up | 
     
    768768|  Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Appraisal | 
    769769 
    770 __Related Topics:__ %TWIKIWEB%.TWikiPreferences, %TWIKIWEB%.TWikiPlugins, %TWIKIWEB%.VarCALC 
     770__Related Topics:__ %SYSTEMWEB%.TWikiPreferences, %SYSTEMWEB%.TWikiPlugins, %SYSTEMWEB%.VarCALC 
    771771 
    772772-- TWiki:Main/PeterThoeny - 13 Oct 2007 
Note: See TracChangeset for help on using the changeset viewer.