Changeset 684


Ignore:
Timestamp:
11/15/08 08:45:37 (4 years ago)
Author:
KennethLavrsen
Message:

Item109: A bit more TWikiVariables to Macros work
Next wave in 3 hours

Location:
trunk
Files:
23 edited

Legend:

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

    r611 r684  
    227227|  01 Dec 2007: | 4.3: Arthur Clemens: added support for TablePlugin =headerrows= and =footerrows=; updated edit button | 
    228228|  16 Oct 2007: | 4.2: Arthur Clemens: refactoring, bug fixes. | 
    229 |  07 Oct 2007: | 15182: PTh: Added %SYSTEMWEB%.VarEDITTABLE to have it listed in %SYSTEMWEB%.TWikiVariables | 
     229|  07 Oct 2007: | 15182: PTh: Added !VarEDITTABLE to have it listed in !TWikiVariables | 
    230230|  15 Mar 2007: | Arthur Clemens: Fixed eating of double newlines; icons for javascript buttons and interface improvements. By default the javascript interface is turned off, set =JAVASCRIPTINTERFACE= to use it in edit mode. | 
    231231|  05 Mar 2007: | Byron Darrah: Added ability to dynamically move and delete rows. | 
  • trunk/PatternSkin/data/TWiki/WebLeftBar.txt

    r682 r684  
    1616   * BeginnersStartHere 
    1717   * TextFormattingRules 
    18    * TWikiVariables 
     18   * [[%SYSTEMWEB%.Macros][Macros]] 
    1919   * FormattedSearch 
    2020   * QuerySearch 
  • trunk/SpreadSheetPlugin/data/TWiki/SpreadSheetPlugin.txt

    r549 r684  
    722722|  13 Oct 2007: | Added $FORMATTIMEDIFF() | 
    723723|  09 Sep 2007: | Enhanced documentation for $EVAL() and $INT() | 
    724 |  02 Jun 2007: | Added %SYSTEMWEB%.VarCALC to have =%<nop>CALC{}%= listed in %SYSTEMWEB%.TWikiVariables | 
     724|  02 Jun 2007: | Added %SYSTEMWEB%.VarCALC to have =%<nop>CALC{}%= listed in [[%SYSTEMWEB%.Macros][Macros]] | 
    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 | 
  • trunk/TipsContrib/data/TWiki/TWikiTip006.txt

    r482 r684  
    33---+ Creating a Table of Contents 
    44 
    5 The TWikiVariables =%<nop>TOC%= will automatically create a table of contents for a topic based on the headers of the topic. To exclude a heading from a =%<nop>TOC%= add =!!= to the end of the syntax for a header, e.g. write =---+!!= for a =---+= heading. 
     5The [[%SYSTEMWEB%.Macros][Macros]] =%<nop>TOC%= will automatically create a table of contents for a topic based on the headers of the topic. To exclude a heading from a =%<nop>TOC%= add =!!= to the end of the syntax for a header, e.g. write =---+!!= for a =---+= heading. 
    66 
    77[[TWikiTipsOfTheDay][See More Tips...]] 
  • trunk/TipsContrib/data/TWiki/TWikiTip007.txt

    r482 r684  
    33---+ Linking to a file attachment 
    44 
    5 One can create a link to a file attachment using one of the following TWikiVariables, =%<nop>ATTACHURL%= or =%<nop>PUBURL%=. 
     5One can create a link to a file attachment using one of the following [[Macros]], =%<nop>ATTACHURL%= or =%<nop>PUBURL%=. 
    66 
    77=%<nop>ATTACHURL%= is the full URL for attachments in the current topic. For example: 
  • trunk/TipsContrib/data/TWiki/TWikiTip018.txt

    r482 r684  
    55To embed a search in a topic, use the =%<nop>SEARCH{ &lt;parameters&gt; }%= TWiki Variable. The search variable is used by many TWiki based applications. 
    66 
    7 [[TWikiVariables#VarSEARCH][More Information...]] 
     7[[Macros#VarSEARCH][More Information...]] 
    88 
    99[[TWikiTipsOfTheDay][See More Tips...]] 
  • trunk/core/data/TWiki/DefaultPreferences.txt

    r674 r684  
    88Preference settings local to your site should be set in [[%LOCALSITEPREFS%]] (this topic is pointed to by {LocalSitePreferences}, which is set by the admin in the [[%SCRIPTURLPATH{"configure"}%][configure]] interface). Settings in [[%LOCALSITEPREFS%]] will override settings in this topic, and should be used for defining custom settings and variables. 
    99 
    10 [[TWikiVariables#PreferencesVariables][Read more]] on how to set Preferences Variables. 
     10[[Macros#PreferencesVariables][Read more]] on how to set Preferences Variables. 
    1111 
    1212%TOC% 
     
    338338   * A preference is defined in a TWikiShorthand bullet item: ==[3 spaces] * [space] Set NAME = value== <br /> Example (as a nested bullet item, indented 6 spaces): 
    339339      * S<nop>et WEBBGCOLOR = #FFFFC0 
    340    * Preferences are used as %SYSTEMWEB%.TWikiVariables by enclosing the name in percent signs: ==%==. Example: 
     340   * Preferences are used as [[%SYSTEMWEB%.Macros][Macros]] by enclosing the name in percent signs: ==%==. Example: 
    341341      * When you write variable ==%WEB<nop>BGCOLOR%==, it gets expanded to =%WEBBGCOLOR%= . 
    342342 
     
    355355   * %WEBPREFSTOPIC% has preferences of the <nop>%WEB% web. 
    356356   * User topics in %USERSWEB% can have optional user preferences. 
    357    * %SYSTEMWEB%.TWikiVariables has a list of common =%<nop>VARIABLES%=. 
     357   * [[%SYSTEMWEB%.Macros][Macros]] has a list of common =%<nop>VARIABLES%=. 
    358358   * %SYSTEMWEB%.AccessControl explains how to restrict access by users or groups. 
    359359   * TWiki:Plugins.PreferencesPlugin makes editing preferences a snap. 
  • trunk/core/data/TWiki/EditingShorthand.txt

    r682 r684  
    311311%X% Dots ='.'= are used to separate webs and subwebs from topic names and therefore cannot be used in topic names. 
    312312 
    313 It's generally a good idea to use the TWikiVariables %<nop>SYSTEMWEB% and %<nop>USERSWEB% instead of %SYSTEMWEB% and %USERSWEB%. 
     313It's generally a good idea to use the [[%SYSTEMWEB%.Macros][Macros]] %<nop>SYSTEMWEB% and %<nop>USERSWEB% instead of %SYSTEMWEB% and %USERSWEB%. 
    314314</td><td> 
    315315<verbatim> 
  • trunk/core/data/TWiki/FileAttachment.txt

    r611 r684  
    2222 
    2323   * Through your Web browser, you can easily upload graphics (or sound files, or anything else you want to link to on a page) and place them on a single page, or use them across a web, or site-wide. 
    24       * __NOTE:__ You can also add graphics - any files - directly, typically by FTP upload. This requires FTP access, and may be more convenient if you have a large number of files to load. FTP-ed files can't be managed using browser-based Attachment controls. You can use your browser to create TWikiVariables shortcuts, like this %<nop>H% = %H%. 
     24      * __NOTE:__ You can also add graphics - any files - directly, typically by FTP upload. This requires FTP access, and may be more convenient if you have a large number of files to load. FTP-ed files can't be managed using browser-based Attachment controls. You can use your browser to create [[%SYSTEMWEB%.Macros][Macros]] shortcuts, like this %<nop>H% = %H%. 
    2525 
    2626---++ Uploading Files 
  • trunk/core/data/TWiki/FormattedSearch.txt

    r683 r684  
    202202%SEARCH{ search="%URLPARAM{"q"}%" format="   * $web.$topic: %BR% $summary" nosearch="on" }% 
    203203 
    204 __Related Topics:__ UserDocumentationCategory, SearchHelp, TWikiVariables#VarSEARCH, SearchPatternCookbook, RegularExpression 
     204__Related Topics:__ UserDocumentationCategory, SearchHelp, [[%SYSTEMWEB%.Macros#VarSEARCH][Macros#VarSEARCH]], SearchPatternCookbook, RegularExpression 
  • trunk/core/data/TWiki/GlossaryOfTerms.txt

    r666 r684  
    1010| Plugin: | Prepackaged server-side extension that adds all sorts of additional functions, seamlessly integrated into TWiki. [[Plugins][Details...]] | 
    1111| Plugin API: | The standard interface for creating TWiki _Plugins_ and add-on programs that ensure a perfect integration. [[TWikiFuncDotPm][Details...]] | 
    12 | Preferences: | The site-wide, single _web_ and single user-level preferences settings. The settings are stored in DefaultPreferences, WebPreferences and %USERSWEB%.WikiUsers home pages. [[TWikiVariables#PreferencesVariables][Details...]] | 
     12| Preferences: | The site-wide, single _web_ and single user-level preferences settings. The settings are stored in DefaultPreferences, WebPreferences and %USERSWEB%.WikiUsers home pages. [[Macros#PreferencesVariables][Details...]] | 
    1313| Site: | A TWiki installation consisting of one or more _webs_. [[TWikiSite][Details...]] | 
    1414| Skin: | Skins overlay regular _templates_ with alternate header/footer layout of _pages_; topic text is not affected. Skins are typically enabled site-wide or per _web_. [[Skins][Details...]] | 
     
    1717| TWiki: | A web-based collaboration platform targeting the corporate world. Contraction of "TakeFive Wiki". By chance, also happens to be the name of the AI robot star of the Buck Rogers 1979 movie and TV series. Features include browser based editing, automatic linking of text (based on ideas of the original <nop>WikiWikiWeb), revision control, file _attachments_, _form_ handling, _preferences_ settings, access control and more. [[http://TWiki.org/][Details...]] | 
    1818| TWiki.org: |Official home site, center of all development. [[http://TWiki.org/][Details...]] | 
    19 | Variables: | Text-strings of the form =%VARIABLE%= that are expanded on the fly into text, image, or any other type of embedded content; there are system variables coded into the main TWiki package, _preferences_ settings, and Plugins variables. [[TWikiVariables][Details...]] | 
     19| Variables: | Text-strings of the form =%VARIABLE%= that are expanded on the fly into text, image, or any other type of embedded content; there are system variables coded into the main TWiki package, _preferences_ settings, and Plugins variables. [[Macros][Details...]] | 
    2020| Web: | A collection of _topics_ under a common name. Various features, like search, access privileges, Plugin availability, template design, can be controlled on a web-wide basis. [[ManagingWebs][Details...]] | 
    2121 
  • trunk/core/data/TWiki/IfStatements.txt

    r672 r684  
    1919| defined | True if a preference variable or url parameter of this name is defined. | 
    2020| isempty | True if a preference variable, url parameter or session variable of this name has an empty value. It is equivalent to the expression =(!defined(x) || $x='')= | 
    21 | $ | expands a URL parameter or [[TWikiVariables][TWikiVariable]] name. Plugin handlers *are not called*. Built-in variables and user-defined preferences are supported. You can pass a limited subset of parameters to TWiki variables by enclosing the variable name in single quotes; for example, =$ 'VARIABLE{value}'=. The ='VARIABLE{value}'= string may *not* contain quotes (' or "). | 
     21| $ | expands a URL parameter or [[Macros][Macro]] name. Plugin handlers *are not called*. Built-in variables and user-defined preferences are supported. You can pass a limited subset of parameters to TWiki variables by enclosing the variable name in single quotes; for example, =$ 'VARIABLE{value}'=. The ='VARIABLE{value}'= string may *not* contain quotes (' or "). | 
    2222| {X} | expands to the value of the configuration variable {X} - for example, ={ScriptUrlPath}= | 
    2323 
  • trunk/core/data/TWiki/InstantEnhancements.txt

    r671 r684  
    44These quick enhancements are aimed at improving and customising your TWiki.  New TWiki site administrators are especially encouraged to review this document for ideas before deploying a new TWikiSite. The metaphor of building a house is useful.  The listed enhancements are some of the details possible when moving into a new office or home. These small changes can make a *big* differences for user satisfaction at your site. All modifications can be done through your Web browser, and they don't take more then in a couple of minutes.  No system administration expertise is required. Some of these enhancements are also mentioned in the reference manual and other topics. 
    55 
    6 Many of these tips are based on setting some special TWikiVariables. 
     6Many of these tips are based on setting some special [[Macros]]. 
    77 
    88%S% We recommend implementing at least __some__ of these enhancements __right after installation__ to get a taste for what is possible.  Some of these tips and enhancements _should_ be implemented before or during initial roll-out. 
     
    1515---++ Tips using TWiki Variables 
    1616 
    17 TWikiVariables are a great resource to customize your site. You need to know the variable name and decide where to put it. 
     17[[Macros]] are a great resource to customize your site. You need to know the variable name and decide where to put it. 
    1818 
    1919---+++ Change Colors of Page Header/Footer 
     
    136136*End Copy* 
    137137 
    138 The SEARCH variable has many more formatting options, see TWikiVariables. 
     138The SEARCH variable has many more formatting options, see [[Macros]]. 
    139139 
    140140---+++ Recently changed pages  
  • trunk/core/data/TWiki/MacrosQuickStart.txt

    r659 r684  
    1010Many TWiki variables are built-in, and others are predefined for your convenience. You can also define your own 
    1111TWiki Variables at the entire site, individual web, or individual topic level. For more information, 
    12 go to *[[TWikiVariables]]* 
     12go to *[[Macros]]* 
    1313 
    1414TWiki Variables are fully expanded _before_ any of the TWiki text formatting rules are applied. 
  • trunk/core/data/TWiki/ManagingWebs.txt

    r490 r684  
    1818The second method is to use an existing web as a template web.  This may be useful if you already have a web that you would like to use as a starting point.  Only topics that have names beginning with *Web...* (like "%HOMETOPIC%", "%NOTIFYTOPIC%", etc.) are copied. 
    1919 
    20 In either case you will want to be sure to verify that your new web has all the custom modifications that you desire. Any TWikiVariables defined in the form below will automatically be set in the !WebPreferences of the new web. 
     20In either case you will want to be sure to verify that your new web has all the custom modifications that you desire. Any [[%SYSTEMWEB%.Macros][Macros]] defined in the form below will automatically be set in the !WebPreferences of the new web. 
    2121 
    2222#CreateNewWeb 
  • trunk/core/data/TWiki/MetaData.txt

    r604 r684  
    1818---++ Meta Data Syntax 
    1919 
    20    * Format is the same as in TWikiVariables, except all fields have a key. 
     20   * Format is the same as in [[%SYSTEMWEB%.Macros][Macros]], except all fields have a key. 
    2121      * =%<nop>META:&lt;type&gt;{key1="value1" key2="value2" ...}%= 
    2222 
  • trunk/core/data/TWiki/ShortcutMacros.txt

    r490 r684  
    1212 
    1313__See also:__ 
    14    * TWikiVariables - an alphabetical list of all variables 
     14   * [[%SYSTEMWEB%.Macros][Macros]] - an alphabetical list of all variables 
    1515   * DefaultPreferences#RenderingShortcuts - where shortcuts are defined  
    1616   * TWikiShorthand - summary of the TWiki markup language 
  • trunk/core/data/TWiki/StartingPoints.txt

    r619 r684  
    1616   * TextFormattingFAQ: Common how-to questions about posting in TWiki 
    1717 
    18    * TWikiVariables: How to easily embed text, graphics, dynamic content  
     18   * [[%SYSTEMWEB%.Macros][Macros]]: How to easily embed text, graphics, dynamic content  
    1919 
    2020   * MainFeatures: The main features of the TWiki collaboration platform 
  • trunk/core/data/TWiki/TWikiScripts.txt

    r611 r684  
    273273| ="text"= | Search term. Is a keyword search, literal search or regular expression search, depending on the =type= parameter. SearchHelp has more | required | 
    274274| =search="text"= | (Alternative to above) | N/A | 
    275 | =web="Name"= <br /> =web="%USERSWEB%, Know"= <br /> =web="all"= | Comma-separated list of webs to search. See TWikiVariables#VarSEARCH for more details. | Current web | 
     275| =web="Name"= <br /> =web="%USERSWEB%, Know"= <br /> =web="all"= | Comma-separated list of webs to search. See [[%SYSTEMWEB%.Macros#VarSEARCH][Macros#VarSEARCH]] for more details. | Current web | 
    276276| =topic="%WEBPREFSTOPIC%"= <br /> =topic="*Bug"= | Limit search to topics: A topic, a topic with asterisk wildcards, or a list of topics separated by comma. | All topics in a web | 
    277277| =excludetopic="Web*"= <br /> =excludetopic="%HOMETOPIC%, <nop>WebChanges"= | Exclude topics from search: A topic, a topic with asterisk wildcards, or a list of topics separated by comma. | None | 
  • trunk/core/data/TWiki/UsersGuide.txt

    r622 r684  
    1717      * TWikiShorthand: All of the TWiki shorthand basics 
    1818      * TextFormattingRules: Scan all TWiki text formatting rules on one page 
    19       * TWikiVariables: How to easily embed text, graphics, dynamic content 
     19      * [[%SYSTEMWEB%.Macros][Macros]]: How to easily embed text, graphics, dynamic content 
    2020      * FileAttachments: Browser-upload files for distribution or display 
    2121      * WebChangesAlert: Get e-mail alerts linking to the latest page changes 
  • trunk/core/data/TWiki/WikiName.txt

    r482 r684  
    77%X% Your name is also a potentially valid WikiWord when used within a topic. However the home pages of registered users on this site are stored in the *%USERSWEB%* web. When you sign your username in a topic, prefix it with =%USERSWEB%.= (including the dot). That is, write ==%USERSWEB%.%WIKINAME%== to link to %USERSWEB%.%WIKINAME%, your personal home page in the %USERSWEB% web. For convenience, your signature is also provided for copying and pasting when editing a topic. 
    88 
    9 %Y% Though rarely used in common practice, you can use the special ==%<nop>USERSWEB%== [[TWikiVariables][variable]] prefix for user names, for example, ==%<nop>USERSWEB%.%WIKINAME%==. 
     9%Y% Though rarely used in common practice, you can use the special ==%<nop>USERSWEB%== [[%SYSTEMWEB%.Macros][macro]] prefix for user names, for example, ==%<nop>USERSWEB%.%WIKINAME%==. 
  • trunk/core/data/TestCases/TestCaseSpacedWikiWordPlugin.txt

    r482 r684  
    2727 
    2828<verbatim> 
    29 TWiki.TWikiVariables 
    30 </verbatim> 
    31  
    32    * Core spaced out word: %SPACEOUT{"TWikiVariables"}% 
    33    * Plugin spaced out: TWiki.TWikiVariables 
     29%SYSTEMWEB%.DefaultPreferences 
     30</verbatim> 
     31 
     32   * Core spaced out word: %SPACEOUT{"DefaultPreferences"}% 
     33   * Plugin spaced out: %SYSTEMWEB%.DefaultPreferences 
    3434      * Testing if the T and W don't show a gap 
    3535   * Expected: <a href="#">TWiki Variables</a> 
  • trunk/core/data/TestCases/WebPreferences.txt

    r672 r684  
    5757        * A preference is defined as: <br /> =6 spaces * Set NAME = value= <br /> Example: 
    5858                * S<nop>et WEBBGCOLOR = #FFFFC0 
    59         * Preferences are used as %SYSTEMWEB%.TWikiVariables by enclosing the name in percent signs. Example: 
     59        * Preferences are used as [[%SYSTEMWEB%.Macros][Macros]] by enclosing the name in percent signs. Example: 
    6060                * When you write variable =%WEB<nop>BGCOLOR%= , it gets expanded to =%WEBBGCOLOR%= . 
    6161        * The sequential order of the preference settings is significant. Define preferences that use other preferences first, i.e. set =<nop>WEBCOPYRIGHT= before =<nop>WIKIWEBMASTER= since =%<nop>WEBCOPYRIGHT%= uses the =%<nop>WIKIWEBMASTER%= variable. 
     
    6565        * %SYSTEMWEB%.%WIKIPREFSTOPIC% has site-level preferences. 
    6666        * %USERSWEB%.%WIKIUSERSTOPIC% has a list of user topics. User topics can have optional user preferences. 
    67         * %SYSTEMWEB%.TWikiVariables has a list of common =%<nop>VARIABLES%=. 
     67        * [[%SYSTEMWEB%.Macros][Macros]] has a list of common =%<nop>VARIABLES%=. 
    6868        * %SYSTEMWEB%.AccessControl explains how to restrict access by users or groups. 
    6969 
Note: See TracChangeset for help on using the changeset viewer.