Changeset 485
- Timestamp:
- 11/09/08 16:04:28 (3 years ago)
- Location:
- trunk/core/data/TWiki
- Files:
-
- 21 edited
-
ExampleTopicTemplate.txt (modified) (1 diff)
-
InstantEnhancements.txt (modified) (2 diffs)
-
MainFeatures.txt (modified) (1 diff)
-
TWikiDocumentation.txt (modified) (1 diff)
-
TWikiForms.txt (modified) (5 diffs)
-
TWikiGlossary.txt (modified) (1 diff)
-
TWikiJavascripts.txt (modified) (1 diff)
-
TWikiReferenceManual.txt (modified) (1 diff)
-
TWikiSkins.txt (modified) (5 diffs)
-
TWikiUserAuthentication.txt (modified) (2 diffs)
-
VarDATE.txt (modified) (1 diff)
-
VarGMTIME.txt (modified) (1 diff)
-
VarGMTIME2.txt (modified) (1 diff)
-
VarNOP.txt (modified) (1 diff)
-
VarSERVERTIME.txt (modified) (1 diff)
-
VarSERVERTIME2.txt (modified) (1 diff)
-
VarSTARTSECTION.txt (modified) (1 diff)
-
VarURLPARAM.txt (modified) (1 diff)
-
VarUSERNAME.txt (modified) (1 diff)
-
VarWIKINAME.txt (modified) (1 diff)
-
VarWIKIUSERNAME.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/data/TWiki/ExampleTopicTemplate.txt
r482 r485 1 1 %META:TOPICINFO{author="ProjectContributor" date="1111929255" format="1.0" version="$Rev: 4516 $"}% 2 (just an example illustrating how to create a new topic based on a specific template topic. T WikiTemplates has more)2 (just an example illustrating how to create a new topic based on a specific template topic. TemplateTopics has more) 3 3 4 4 -- %WIKIUSERNAME% - %DATE% -
trunk/core/data/TWiki/InstantEnhancements.txt
r482 r485 36 36 ---+++ Set Page Background Color 37 37 38 Without getting into the TWikiTemplatessystem yet, you can easily edit the ==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 [[%LOCALSITEPREFS%]], e.g. =* Set =PAGEBGCOLOR = #d0d0d0=, then edit the ==view.tmpl== template file and change ==bgcolor="#ffffff"== to ==bgcolor="%<nop>PAGEBGCOLOR%"==. If you want, you can set the page background color individually 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.)38 Without getting into the [[presentation templates]] system yet, you can easily edit the ==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 [[%LOCALSITEPREFS%]], e.g. =* Set =PAGEBGCOLOR = #d0d0d0=, then edit the ==view.tmpl== template file and change ==bgcolor="#ffffff"== to ==bgcolor="%<nop>PAGEBGCOLOR%"==. If you want, you can set the page background color individually 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.) 39 39 40 40 ---+++ Titles-Only Topic List - !WebTopicList … … 174 174 ---++ Add Your Favorite <nop>JavaScript Features 175 175 176 You're no doubt familiar or better with HTML, JS, and "webmastering". Without getting into the TWikiTemplatessystem yet, you can easily edit the ==view.pattern.tmpl== (if you are using default pattern skin) (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 <nop>JavaScripts - a pop-up window script, for example - or tag it as an external script.176 You're no doubt familiar or better with HTML, JS, and "webmastering". Without getting into the [[presentation templates]] system yet, you can easily edit the ==view.pattern.tmpl== (if you are using default pattern skin) (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 <nop>JavaScripts - a pop-up window script, for example - or tag it as an external script. 177 177 178 178 * %T% Obviously, you can do the same - place a link to an external stylesheet as well. If you set values for standard HTML tags, you can control a good deal of the type size, style and color with out adding CSS tags. __example__ -
trunk/core/data/TWiki/MainFeatures.txt
r482 r485 15 15 * *Variables:* Use [[TWikiVariables][variables]] to dynamically compose your pages. This allows you for example to dynamically build a table of contents, include other pages, or show a search result embedded in a page. 16 16 * *TWiki plugins:* Easily install program enhancements using external [[TWikiPlugins][plug-in modules]]. Developers can create plug-ins in Perl using the TWiki Plugin API. 17 * *Templates and skins:* A flexible [[ TWikiTemplates][templating system]] separates program logic and presentation. [[TWikiSkins][Skins]] overwrite template headers and footers; page content is unaffected.17 * *Templates and skins:* A flexible [[PresentationTemplates][templating system]] separates program logic and presentation. [[Skins]] overwrite template headers and footers; page content is unaffected. 18 18 * *Managing pages:* Individual [[TWikiTopics][pages]] can be renamed, moved and deleted through the browser. 19 19 * *Managing users:* Web-based [[TWikiRegistration][user registration]] and [[ChangePassword][change of password]]. -
trunk/core/data/TWiki/TWikiDocumentation.txt
r482 r485 59 59 60 60 ------ 61 %INCLUDE{"TWikiTemplates"}% 61 %INCLUDE{"TemplateTopics"}% 62 63 [[#PageTop][Back to top]] 64 ------ 65 %INCLUDE{"PresentationTemplates"}% 62 66 63 67 [[#PageTop][Back to top]] -
trunk/core/data/TWiki/TWikiForms.txt
r482 r485 14 14 1. Define a form template 15 15 1. Enable the form for a web 16 1. Add the form to a [[T WikiTemplates#Template_Topics][template topic]]16 1. Add the form to a [[TemplateTopics][template topic]] 17 17 1. Build an HTML form to create new topics based on that template topic 18 18 1. Build a FormattedSearch to list topics that share the same form … … 87 87 ---++ Adding a form to a topic 88 88 89 * Edit the topic and follow the "Add form" button to add a Form. This is typically done to a [[T WikiTemplates#TemplateTopic][template topic]], either to the =WebTopicEditTemplate= topic in a web, or a new topic that serves as an application specific template topic. Initial Form values can be set there.89 * Edit the topic and follow the "Add form" button to add a Form. This is typically done to a [[TemplateTopics][template topic]], either to the =WebTopicEditTemplate= topic in a web, or a new topic that serves as an application specific template topic. Initial Form values can be set there. 90 90 91 91 * Additionally a new topic can be given a Form using the =formtemplate= parameter in the (edit or save) URL. Initial values can then be provided in the URLs or as form values: … … 101 101 </form> 102 102 </verbatim> 103 * __%T% Tip:__ For TWiki applications you can [[T WikiTemplates#AutomaticallyGeneratedTopicname][automatically generate unique topicnames]].103 * __%T% Tip:__ For TWiki applications you can [[TemplateTopics#AutomaticallyGeneratedTopicname][automatically generate unique topicnames]]. 104 104 105 105 * __%X% Note:__ Initial values will *not* be set in the form of a new topic if you _only_ use the formtemplate parameter. … … 202 202 ---++ Hints and Tips 203 203 ---+++ Build an HTML form to create new Form-based topics 204 * New topics with a form are created by simple HTML forms asking for a topic name. For example, you can have a =<nop>SubmitExpenseReport= topic where you can create new expense reports, a =<nop>SubmitVacationRequest= topic, and so on. These can specify the required template topic with its associated form. [[T WikiTemplates#TemplateTopics][Template topics]] has more.204 * New topics with a form are created by simple HTML forms asking for a topic name. For example, you can have a =<nop>SubmitExpenseReport= topic where you can create new expense reports, a =<nop>SubmitVacationRequest= topic, and so on. These can specify the required template topic with its associated form. [[TemplateTopics][Template topics]] has more. 205 205 A Form Template specifies the fields in a form. A Form Template is simply a page containing a TWiki table, where each row of the table specifies one form field. 206 206 #UsingFormData … … 224 224 %STOPINCLUDE% 225 225 226 __Related Topics:__ UserDocumentationCategory, T WikiTemplates226 __Related Topics:__ UserDocumentationCategory, TemplateTopics -
trunk/core/data/TWiki/TWikiGlossary.txt
r482 r485 15 15 | Site: | A TWiki installation consisting of one or more _webs_. [[TWikiSite][Details...]] | 16 16 | 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_. [[TWikiSkins][Details...]] | 17 | Templates: | (1) Regular templates define header/footer layout of _pages_; topic text is not affected. (2) Template topics set the default content for new _topics_. [[ TWikiTemplates][Details...]] |17 | Templates: | (1) Regular templates define header/footer layout of _pages_; topic text is not affected. (2) Template topics set the default content for new _topics_. [[PresentationTemplates][Details...]] | 18 18 | Topic: | The content of a TWiki _page_, consisting of text, an optional _form_ and optional _attachments_. It has a WikiName that's unique within its _web_. [[TWikiTopics][Details...]] | 19 19 | 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...]] | -
trunk/core/data/TWiki/TWikiJavascripts.txt
r14 r485 1 ---+ TWikiJavascripts1 ---+ Javascripts 2 2 3 This topic contains javascript files that are included by TWikitemplates, and may be used by skin templates and in topics.3 This topic contains javascript files that are included by presentation templates, and may be used by skin templates and in topics. 4 4 5 __Related Topics:__ TWikiTemplates, TWikiSkins5 __Related Topics:__ PresentationTemplates, [[Skins]] 6 6 7 * Set ALLOWTOPICCHANGE = %USERSWEB%. TWikiAdminGroup7 * Set ALLOWTOPICCHANGE = %USERSWEB%.AdminGroup 8 8 9 9 %META:FILEATTACHMENT{name="twiki.js" attr="" autoattached="1" comment="" date="1130980328" path="twiki.js" size="2920" user="UnknownUser" version=""}% -
trunk/core/data/TWiki/TWikiReferenceManual.txt
r482 r485 16 16 1. [[TextFormattingRules][Text Formatting Rules]] 17 17 1. [[TWikiVariables][TWiki Variables]] 18 1. [[Template Topics]] 18 19 1. [[FormattedSearch][Formatted Search]] 19 20 1. [[FileAttachment][File Attachment]] 20 21 1. [[TWikiForms][TWiki Forms]] 21 1. [[ TWikiTemplates][TWikiTemplates]]22 1. [[Presentation Templates]] 22 23 1. [[TWikiSkins][TWiki Skins (visual layout)]] 23 24 1. [[TWikiMetaData][TWiki MetaData]] -
trunk/core/data/TWiki/TWikiSkins.txt
r482 r485 9 9 ---++ Overview 10 10 11 TWiki uses TWikiTemplates filesas the basis of all the screens it uses to interact with users. Each screen has an associated template file that contains the basic layout of the screen. This is then filled in by the code to generate what you see in the browser.11 TWiki uses [[presentation templates]] as the basis of all the screens it uses to interact with users. Each screen has an associated template file that contains the basic layout of the screen. This is then filled in by the code to generate what you see in the browser. 12 12 13 13 TWiki ships with a default set of template files that give a very basic, CSS-themable, look-and-feel. TWiki also includes support for _skins_ that can be selected to give different, more sophisticated, look and feels. A default TWiki installation will usually start up with the PatternSkin already selected. Skins may also be defined by third parties and loaded into a TWiki installation to give more options. To see how TWiki looks when *no* skin is selected, [[%SCRIPTURL{"view"}%/%WEB%/%TOPIC%?skin=not_a_skin][view this topic with a non-existant skin]]. … … 32 32 You may want to define your own skin, for example to comply with corporate web guidelines, or because you have a aesthetic vision that you want to share. There are a couple of places you an start doing this. 33 33 34 The TWikiTemplates filesused for skins are located in the =twiki/templates= directory and are named according to the skin: ==<scriptname>.<skin>.tmpl==. Skin files may also be defined in TWiki topics - see TWikiTemplates for details.35 36 To start creating a new skin, copy the default TWikiTemplates (like =view.tmpl=), or copy an existing skin to use as a base for your own skin. You should only need to copy the files you intend to customise, as TWiki can be configured to fall back to another skin if a template is not defined in your skin. Name the files as described above (for example =view.myskin.tmpl=.34 The [[presentation templates]] used for skins are located in the =twiki/templates= directory and are named according to the skin: ==<scriptname>.<skin>.tmpl==. Skin files may also be defined in TWiki topics - see TWikiTemplates for details. 35 36 To start creating a new skin, copy the default presentation templates (like =view.tmpl=), or copy an existing skin to use as a base for your own skin. You should only need to copy the files you intend to customise, as TWiki can be configured to fall back to another skin if a template is not defined in your skin. Name the files as described above (for example =view.myskin.tmpl=. 37 37 38 38 If you use PatternSkin as your starting point, and you want to modify the layout, colors or even the templates to suit your own needs, have a look first at the topics PatternSkinCustomization and PatternSkinCssCookbook. … … 108 108 ---++ Variables in Skins 109 109 110 You can use [[T WikiTemplates#TemplateVariables][template variables]], TWikiVariables, and other predefined variables to compose your skins. Some commonly used variables in skins:110 You can use [[TemplateTopics#TemplateVariables][template variables]], TWikiVariables, and other predefined variables to compose your skins. Some commonly used variables in skins: 111 111 112 112 | *Variable:* | *Expanded to:* | … … 182 182 Controlling the look and feel of attachment tables is a little bit more complex than for the rest of a skin. By default, the attachment table is a standard TWiki table, and the look is controlled in the same way as other tables. In a very few cases you may want to change the _content_ of the table as well. 183 183 184 The format of standard attachment tables is defined through the use of special _TWiki template macros_ which by default, are defined in the =attachtables.tmpl= template using the =%TMPL:DEF= macro syntax described in TWikiTemplates. These macros are:184 The format of standard attachment tables is defined through the use of special _TWiki template macros_ which by default, are defined in the =attachtables.tmpl= template using the =%TMPL:DEF= macro syntax described in PresentationTemplates. These macros are: 185 185 | *Macro* | *Description* | 186 186 | =ATTACH:files:header= | Standard title bar | … … 221 221 TWiki uses a _skin search path_, which lets you combine skins additively. The skin path is defined using a combination of TWikiVariables and URL parameters. 222 222 223 TWiki works by asking for a template for a particular function - for example, 'view'. The detail of how templates are searched for is described in TWikiTemplates, but in summary, the templates directory is searched for a file called <code>view.</code><i>skin</i><code>.tmpl</code>, where _skin_ is the name of the skin e.g. =pattern=. If no template is found, then the fallback is to use =view.tmpl=. Each skin on the path is searched for in turn. For example, if you have set the skin path to =local,pattern= then =view.local.tmpl= will be searched for first, then =view.pattern.tmpl= and finally =view.tmpl=.223 TWiki works by asking for a template for a particular function - for example, 'view'. The detail of how templates are searched for is described in PresentationTemplates, but in summary, the templates directory is searched for a file called <code>view.</code><i>skin</i><code>.tmpl</code>, where _skin_ is the name of the skin e.g. =pattern=. If no template is found, then the fallback is to use =view.tmpl=. Each skin on the path is searched for in turn. For example, if you have set the skin path to =local,pattern= then =view.local.tmpl= will be searched for first, then =view.pattern.tmpl= and finally =view.tmpl=. 224 224 225 225 The basic skin is defined by a =SKIN= setting: -
trunk/core/data/TWiki/TWikiUserAuthentication.txt
r482 r485 85 85 %T% You can create a custom version of the TWikiRegistration form by copying the topic, and then deleting or adding input tags in your copy. The =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. Do *not* modify the version of TWikiRegistration shipped with TWiki, as your changes will be overwritten next time you upgrade. 86 86 87 %T% The default new user template page is in [[%SYSTEMWEB%.NewUserTemplate][%SYSTEMWEB%.NewUserTemplate]]. The same variables get expanded as in the [[ TWikiTemplates#Template_Topics][template topics]]. You can create a custom new user home page by creating the [[%USERSWEB%.NewUserTemplate][%USERSWEB%.NewUserTemplate]] topic, which will then override the default.87 %T% The default new user template page is in [[%SYSTEMWEB%.NewUserTemplate][%SYSTEMWEB%.NewUserTemplate]]. The same variables get expanded as in the [[template topics]]. You can create a custom new user home page by creating the [[%USERSWEB%.NewUserTemplate][%USERSWEB%.NewUserTemplate]] topic, which will then override the default. 88 88 89 89 #ApacheLogin … … 109 109 <br /> %X% At this time TWikiAccessControls do not control access to files in the =pub= area, unless they are only accessed through the =viewfile= script. If your =pub= directory is set up to allow open access you may want to add =.htaccess= files in there as well to restrict access 110 110 1 You can create a custom version of the TWikiRegistration form by copying the default topic, and then deleting or adding input tags in your copy. The =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. Do *not* modify the version of TWikiRegistration shipped with TWiki, as your changes will be overwritten next time you upgrade. 111 <br />The default new user template page is in [[%SYSTEMWEB%.NewUserTemplate][%SYSTEMWEB%.NewUserTemplate]]. The same variables get expanded as in the [[ TWikiTemplates#Template_Topics][template topics]]. You can create a custom new user home page by creating the [[%USERSWEB%.NewUserTemplate][%USERSWEB%.NewUserTemplate]] topic, which will then override the default.111 <br />The default new user template page is in [[%SYSTEMWEB%.NewUserTemplate][%SYSTEMWEB%.NewUserTemplate]]. The same variables get expanded as in the [[template topics]]. You can create a custom new user home page by creating the [[%USERSWEB%.NewUserTemplate][%USERSWEB%.NewUserTemplate]] topic, which will then override the default. 112 112 1 Register yourself in the TWikiRegistration topic. 113 113 <br /> %H% Check that a new line with the username and encrypted password is added to the =.htpasswd= file. If not, you may have got a path wrong, or the permissions may not allow the webserver user to write to that file. -
trunk/core/data/TWiki/VarDATE.txt
r482 r485 6 6 * Expands to: =%DATE%= 7 7 * Date format defined as {DefaultDateFormat} in [[%SCRIPTURLPATH{"configure"}%][configure]] 8 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create a new topic. See T WikiTemplates#TemplateTopicsVars for details.8 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create a new topic. See TemplateTopics#TemplateTopicsVars for details. 9 9 * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarDISPLAYTIME][DISPLAYTIME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarGMTIME2][GMTIME{"format"}]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSERVERTIME][SERVERTIME]] 10 10 -
trunk/core/data/TWiki/VarGMTIME.txt
r482 r485 6 6 * Expands to: =%GMTIME%= 7 7 * Date format defined as {DefaultDateFormat} in [[%SCRIPTURLPATH{"configure"}%][configure]] 8 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create a new topic. See T WikiTemplates#TemplateTopicsVars for details.8 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create a new topic. See TemplateTopics#TemplateTopicsVars for details. 9 9 * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarDISPLAYTIME][DISPLAYTIME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarGMTIME2][GMTIME{"format"}]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSERVERTIME][SERVERTIME]] 10 10 -
trunk/core/data/TWiki/VarGMTIME2.txt
r482 r485 25 25 * Variables can be shortened to 3 characters 26 26 * Example: =%<nop>GMTIME{"$day $month, $year - $hour:$min:$sec"}%= expands to =%GMTIME{"$day $month, $year - $hour:$min:$sec"}%= 27 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create a new topic. See T WikiTemplates#TemplateTopicsVars for details.27 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create a new topic. See TemplateTopics#TemplateTopicsVars for details. 28 28 * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarDISPLAYTIME][DISPLAYTIME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarGMTIME][GMTIME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarREVINFO2][REVINFO]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSERVERTIME][SERVERTIME]] 29 29 -
trunk/core/data/TWiki/VarNOP.txt
r482 r485 8 8 * Syntax: =%<nop>NOP{...}%= *deprecated* 9 9 * In normal topic text, expands to whatever is in the curly braces (if anything). 10 * __%X% Note:__ This is deprecated. Do not use it. Use =%<nop>STARTSECTION{type="templateonly"}%= .. =%<nop>ENDSECTION{type="templateonly"}%= instead (see T WikiTemplates for more details).11 * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSTARTSECTION][STARTSECTION]], T WikiTemplates10 * __%X% Note:__ This is deprecated. Do not use it. Use =%<nop>STARTSECTION{type="templateonly"}%= .. =%<nop>ENDSECTION{type="templateonly"}%= instead (see TemplateTopics for more details). 11 * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSTARTSECTION][STARTSECTION]], TemplateTopics 12 12 -
trunk/core/data/TWiki/VarSERVERTIME.txt
r482 r485 6 6 * Expands to: =%SERVERTIME%= 7 7 * Date format defined as {DefaultDateFormat} in [[%SCRIPTURLPATH{"configure"}%][configure]] 8 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create a new topic. See T WikiTemplates#TemplateTopicsVars for details.8 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create a new topic. See TemplateTopics#TemplateTopicsVars for details. 9 9 * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarDISPLAYTIME][DISPLAYTIME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarGMTIME][GMTIME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSERVERTIME2][SERVERTIME{"format"}]] 10 10 -
trunk/core/data/TWiki/VarSERVERTIME2.txt
r482 r485 6 6 * Syntax: =%<nop>SERVERTIME{"format"}%= 7 7 * Example: =%<nop>SERVERTIME{"$hou:$min"}%= expands to =%SERVERTIME{"$hou:$min"}%= 8 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create a new topic. See T WikiTemplates#TemplateTopicsVars for details.8 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create a new topic. See TemplateTopics#TemplateTopicsVars for details. 9 9 * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarDISPLAYTIME][DISPLAYTIME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarGMTIME][GMTIME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSERVERTIME][SERVERTIME]] 10 10 -
trunk/core/data/TWiki/VarSTARTSECTION.txt
r482 r485 7 7 * =type="section"= - the default, used for a generic section, such as a named section used by [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarINCLUDE][INCLUDE]]. 8 8 * =type="include"= - like =%<nop>STARTINCLUDE%= ... =%<nop>STOPINCLUDE%= except that you can have as many include blocks as you want (=%<nop>STARTINCLUDE%= is restricted to only one). 9 * =type="templateonly"= - start position of text to be removed when a template topic is used. This is used to embed text that you _do not_ want expanded when a new topic based on the template topic is created. See T WikiTemplates for more information.9 * =type="templateonly"= - start position of text to be removed when a template topic is used. This is used to embed text that you _do not_ want expanded when a new topic based on the template topic is created. See TemplateTopics for more information. 10 10 * Syntax: =%<nop>STARTSECTION{"name"}% ................ %<nop>ENDSECTION{"name"}%= 11 11 * Syntax: =%<nop>STARTSECTION{type="include"}% ........ %<nop>ENDSECTION{type="include"}%= -
trunk/core/data/TWiki/VarURLPARAM.txt
r482 r485 19 19 * URL parameters passed into HTML form fields must be entity [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarENCODE][ENCODEd]]. 20 20 * Double quotes in URL parameters must be escaped when passed into other TWiki variables.%BR% Example: =%<nop>SEARCH{ "%<nop>URLPARAM{ "search" encode="quotes" }%" noheader="on" }%= 21 * When used in a template topic, this variable will be expanded when the template is used to create a new topic. See T WikiTemplates#TemplateTopicsVars for details.21 * When used in a template topic, this variable will be expanded when the template is used to create a new topic. See TemplateTopics#TemplateTopicsVars for details. 22 22 * Watch out for TWiki internal parameters, such as =rev=, =skin=, =template=, =topic=, =web=; they have a special meaning in TWiki. Common parameters and view script specific parameters are documented at TWikiScripts. 23 23 * If you have =%<nop>URLPARAM{= in the value of a URL parameter, it will be modified to =%<nop>URLPARAM{=. This is to prevent an infinite loop during expansion. -
trunk/core/data/TWiki/VarUSERNAME.txt
r482 r485 6 6 * Syntax: =%<nop>USERNAME%= 7 7 * Expands to: =%USERNAME%= 8 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create a new topic. See T WikiTemplates#TemplateTopicsVars for details.8 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create a new topic. See TemplateTopics#TemplateTopicsVars for details. 9 9 * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarREMOTEUSER][REMOTE_USER]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarUSERINFO][USERINFO]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarWIKINAME][WIKINAME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarWIKIUSERNAME][WIKIUSERNAME]], TWikiUserAuthentication 10 10 -
trunk/core/data/TWiki/VarWIKINAME.txt
r482 r485 6 6 * Syntax: =%<nop>WIKINAME%= 7 7 * Expands to: =%WIKINAME%= 8 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create new topic. See T WikiTemplates#TemplateTopicsVars for details.8 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create new topic. See TemplateTopics#TemplateTopicsVars for details. 9 9 * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarREMOTEUSER][REMOTE_USER]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarUSERINFO][USERINFO]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarUSERNAME][USERNAME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarWIKIUSERNAME][WIKIUSERNAME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarWIKIUSERSTOPIC][WIKIUSERSTOPIC]] 10 10 -
trunk/core/data/TWiki/VarWIKIUSERNAME.txt
r482 r485 6 6 * Syntax: =%<nop>WIKIUSERNAME%= 7 7 * Expands to: =%WIKIUSERNAME%=, renders as %WIKIUSERNAME% 8 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create a new topic. See T WikiTemplates#TemplateTopicsVars for details8 * __%X% Note:__ When used in a template topic, this variable will be expanded when the template is used to create a new topic. See TemplateTopics#TemplateTopicsVars for details 9 9 * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarREMOTEUSER][REMOTE_USER]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarUSERINFO][USERINFO]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarUSERNAME][USERNAME]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarWIKINAME][WIKINAME]] 10 10
Note: See TracChangeset
for help on using the changeset viewer.
